MUWS API is freely available to developers in XML, JSON, HTML, Javascript and jQuery format. Developers are able to access/parse weather parameters officially available at the McMaster University Weather Station.

Disclaimer: Data from the McMaster Weather Station in Hamilton, ON are made freely available to students, faculty and public with no guarantee of accuracy or availability.

XML | JSON | HTML | Javascript | jQuery

Available Formats


{"weather":
{"TIMESTAMP":"2019-08-01 23:15:00.0 ",
"RECORD":"141437",
"DayofYear":"213",
"CM3Up_Avg":"-0.199",
"CM3Up_Max":"0.526",
"CM3Up_Min":"-1.272",
"CM3Dn_Avg":"2.898",
"CM3Dn_Max":"3.485",
"CM3Dn_Min":"2.296",
"CG3Up_Avg":"-71.340",
"CG3Up_Max":"-70.290",
"CG3Up_Min":"-72.310",
"CG3Dn_Avg":"-16.430",
"CG3Dn_Max":"-15.550",
"CG3Dn_Min":"-17.370",
"CG3UpCo_Avg":"324.200",
"CG3DnCo_Avg":"379.100",
"CNR1TC_Avg":"15.820",
"NetRs_Avg":"-3.097",
"NetRl_Avg":"-54.910",
"Albedo_Avg":"9.780",
"UpTot_Avg":"324.000",
"DnTot_Avg":"382.000",
"NetRad_Avg":"-58.010",
"CR3000Temp_Avg":"19.390",
"AirTC_Avg":"17.410",
"AirTC_Max":"17.610",
"AirTC_Min":"17.240",
"WindChillT_Avg":"17.410",
"RH":"86.500",
"RH_Max":"88.600",
"RH_Min":"86.500","DewPt_Avg":"15.360",
"VapPres_Avg":"1.743",
"SatVapPres_Avg":"21.610",
"Humidex_Avg":"21.610",
"WS_ms_S_WVT":"0.420",
"WindDir_D1_WVT":"228.100",
"WindDir_SD1_WVT":"36.800",
"WS_kmph_S_WVT2":"1.512",
"WindDir_D1_WVT2":"228.100",
"WindDir_SD1_WVT2":"36.800",
"WS_kmph_Max":"3.105",
"WindDir_WSMax":"226.900",
"WS_kmph_Min":"0.000",
"WindDir_WSMin":"49.880",
"BP_kPa":"100.600",
"BP_Corrected":"102.000",
"BP_Corrected_Max":"102.000",
"BP_Corrected_Min":"101.900",
"Rain_mm_Tot":"0.000"}}


<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Hamilton Weather">
<meta name="author" content="MUWS API">
<title>Hamilton Weather | MUWS API</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/weather.css">
</head>
<body>
<div class="weathercontainer">
<div class="weather">Temperature: 17 °C</div>
<div class="weather">Wind Chill: 17 °C</div>
<div class="weather">Humidity: 87 %</div>
<div class="weather">Wind: SW 3 km/h</div>
<div class="weather">Precipitation: 0 mm</div>
<div class="weather">Updated: 2019-08-01 23:15</div>
</body>
</html>


function getmuwsparameters(){ 
	if(document.getElementById("muws_temperature")){
		document.getElementById("muws_temperature").innerHTML = "17 °C"; 
	}
	
	if(document.getElementById("muws_wind_chill")){ 
		document.getElementById("muws_wind_chill").innerHTML = "17 °C"; 
	}
	 
	if(document.getElementById("muws_humidity")){ 
		document.getElementById("muws_humidity").innerHTML = "87 %";
	}
	
	if(document.getElementById("muws_wind")){ 
		document.getElementById("muws_wind").innerHTML = "SW 3 km/h"; 
	}
	
	if(document.getElementById("muws_Rain_mm")){ 
		document.getElementById("muws_Rain_mm").innerHTML = "0 mm"; 
	}
	
	if(document.getElementById("muws_stamp")){ 
		document.getElementById("muws_stamp").innerHTML = "2019-08-01 23:15"; 
	}
}

window.onload = getmuwsparameters;


$(function(){

	if($('#muws_temperature').length > 0){ 
		$('#muws_temperature').html('17 °C'); 
	}
	
	if($('#muws_wind_chill').length > 0){ 
		$('#muws_wind_chill').html('17 °C'); 
	}
	
	if($('#muws_humidity').length > 0){ 
		$('#muws_humidity').html('87 %'); 
	}
	
	if($('#muws_wind').length > 0){ 
		$('#muws_wind').html('SW 3 km/h'); 
	}
	
	if($('#muws_Rain_mm').length > 0){ 
		$('#muws_Rain_mm').html('0 mm'); 
	}
	
	if($('#muws_stamp').length > 0){ 
		$('#muws_stamp').html('2019-08-01 23:15'); 
	}

});