Mercurial > ~darius > hgwebdir.cgi > iwws
comparison 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 |
comparison
equal
deleted
inserted
replaced
11:e5ba2e76d1b0 | 12:bfe6ed563ffc |
---|---|
54 maxt = datacache['temp_out'][i] | 54 maxt = datacache['temp_out'][i] |
55 temp_out.push([t * 1000.0, datacache['temp_out'][i]]); | 55 temp_out.push([t * 1000.0, datacache['temp_out'][i]]); |
56 if (datacache['hum_out'][i] != null && datacache['temp_out'][i] != null) { | 56 if (datacache['hum_out'][i] != null && datacache['temp_out'][i] != null) { |
57 dewpt.push([t * 1000.0, hum2dp(datacache['hum_out'][i], datacache['temp_out'][i])]); | 57 dewpt.push([t * 1000.0, hum2dp(datacache['hum_out'][i], datacache['temp_out'][i])]); |
58 } | 58 } |
59 wavg.push([t * 1000.0, datacache['wind_ave'][i], wind2angle(datacache['wind_dir'][i])]); | 59 wavg.push([t * 1000.0, datacache['wind_ave'][i] * 60.0 * 60.0 / 1000.0, wind2angle(datacache['wind_dir'][i])]); |
60 wgust.push([t * 1000.0, datacache['wind_gust'][i], wind2angle(datacache['wind_dir'][i])]); | 60 wgust.push([t * 1000.0, datacache['wind_gust'][i] * 60.0 * 60.0 / 1000.0, wind2angle(datacache['wind_dir'][i])]); |
61 pressure.push([t * 1000.0, datacache['abs_pressure'][i]]); | 61 pressure.push([t * 1000.0, datacache['abs_pressure'][i]]); |
62 if (datacache['rain'][i] > 0) | 62 if (datacache['rain'][i] > 0) |
63 rain.push([t * 1000.0, datacache['rain'][i]]); | 63 rain.push([t * 1000.0, datacache['rain'][i]]); |
64 } | 64 } |
65 | 65 |