# HG changeset patch # User Daniel O'Connor # Date 1340162850 -34200 # Node ID bfe6ed563ffc3f2bbc7053d7b133abf7343573c3 # Parent e5ba2e76d1b0faa353139389eeaefd1607df1f09 Convert to kph before display as such (oops). diff -r e5ba2e76d1b0 -r bfe6ed563ffc static/iwws.js --- 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]]);