diff static/iwws.js @ 12:bfe6ed563ffc

Convert to kph before display as such (oops).
author Daniel O'Connor <darius@dons.net.au>
date Wed, 20 Jun 2012 12:57:30 +0930
parents 6edb93c20971
children a0213f0e707b
line wrap: on
line diff
--- a/static/iwws.js	Fri Feb 03 23:48:17 2012 +1030
+++ b/static/iwws.js	Wed Jun 20 12:57:30 2012 +0930
@@ -56,8 +56,8 @@
 	if (datacache['hum_out'][i] != null && datacache['temp_out'][i] != null) {
 	    dewpt.push([t * 1000.0, hum2dp(datacache['hum_out'][i], datacache['temp_out'][i])]);
 	}
-	wavg.push([t * 1000.0, datacache['wind_ave'][i], wind2angle(datacache['wind_dir'][i])]);
-	wgust.push([t * 1000.0, datacache['wind_gust'][i], wind2angle(datacache['wind_dir'][i])]);
+	wavg.push([t * 1000.0, datacache['wind_ave'][i] * 60.0 * 60.0 / 1000.0, wind2angle(datacache['wind_dir'][i])]);
+	wgust.push([t * 1000.0, datacache['wind_gust'][i] * 60.0 * 60.0 / 1000.0, wind2angle(datacache['wind_dir'][i])]);
 	pressure.push([t * 1000.0, datacache['abs_pressure'][i]]);
 	if (datacache['rain'][i] > 0)
 	    rain.push([t * 1000.0, datacache['rain'][i]]);