diff options
Diffstat (limited to 'ebus/webapp/static/index.html')
-rw-r--r-- | ebus/webapp/static/index.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ebus/webapp/static/index.html b/ebus/webapp/static/index.html index 84db15a..754fd62 100644 --- a/ebus/webapp/static/index.html +++ b/ebus/webapp/static/index.html @@ -5,7 +5,9 @@ <script src="/static/jquery.flot.js"></script> <script> $(document).ready(function(){ - $.getJSON("/sensor/heizkreisregler9.solarDaten.tempKollektor/1/1", + var from = Math.round(new Date().getTime()/1000) - 86400; + var to = Math.round(new Date().getTime()/1000); + $.getJSON("/sensor/heizkreisregler9.solarDaten.tempKollektor/"+from+"/"+to, function(data) { $.plot($("#ebusgraph"), [data], { xaxis: { mode: "time"}}); }); @@ -13,7 +15,7 @@ </script> </head> <body> - <h1>ULTIMATE CONTROL PANEL</h1> + <h1>TEST</h1> <div id="ebusgraph"></div> </body> </html> |