From 9b5d862ac17d07b815f9ce05f9adc52ba078be1c Mon Sep 17 00:00:00 2001 From: Dirk Koopman Date: Fri, 24 Jul 2015 14:44:36 +0100 Subject: [PATCH] fix humidity updating --- templates/index.html.ep | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.43.0