From: Dirk Koopman Date: Fri, 24 Jul 2015 13:44:36 +0000 (+0100) Subject: fix humidity updating X-Git-Url: http://scm.dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=9b5d862ac17d07b815f9ce05f9adc52ba078be1c;p=dweather.git fix humidity updating --- diff --git a/templates/index.html.ep b/templates/index.html.ep index e5a7c09..1b907ee 100644 --- a/templates/index.html.ep +++ b/templates/index.html.ep @@ -624,17 +624,20 @@ var rainfall = daychart.series[0].data.length > (days * 48); var pressure = daychart.series[1].data.length > (days * 48); var temp = daychart.series[2].data.length > (days * 48); + var humidity = daychart.series[3].data.length > (days * 48); var hr = js.h; var t = js.t * 1000; var ra = [t, hr.Rain_1h]; var pr = [t, hr.Pressure]; var te = [t, hr.Temp_Out]; + var hu = [t, hr.Humidity_Out]; // do_debug(js.tm + " " + t + " " + te + "
"); daychart.series[0].addPoint(ra, true, rainfall); daychart.series[1].addPoint(pr, true, pressure); daychart.series[2].addPoint(te, true, temp); + daychart.series[3].addPoint(hu, true, humidity); } var conv = 2.23694;