]> scm.dxcluster.org Git - dweather.git/commitdiff
fix humidity updating
authorDirk Koopman <djk@tobit.co.uk>
Fri, 24 Jul 2015 13:44:36 +0000 (14:44 +0100)
committerDirk Koopman <djk@tobit.co.uk>
Fri, 24 Jul 2015 13:44:36 +0000 (14:44 +0100)
templates/index.html.ep

index e5a7c09276fb48fadd8f9a014a30096afc3b0b12..1b907ee9ae962b9d7b9d7f449ead6c8d6a357b65 100644 (file)
                        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 + "<br>"); 
                        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;