diff options
author | marc <marc@thinkpad.localnet.cc> | 2011-07-12 22:23:14 +0200 |
---|---|---|
committer | marc <marc@thinkpad.localnet.cc> | 2011-07-12 22:23:14 +0200 |
commit | 0362859a8ef5d9a206d7d6910fd7664ec894a2b3 (patch) | |
tree | a80aaaa19b93a4af88e0d80e0bf8aa0815f57190 /ebus/webapp/static/index.html | |
parent | 2d3bebf62bee63c39e49d33180013c5d7f225a38 (diff) | |
download | ebus-alt-0362859a8ef5d9a206d7d6910fd7664ec894a2b3.tar.gz ebus-alt-0362859a8ef5d9a206d7d6910fd7664ec894a2b3.zip |
Ausgabe unabhängig vom Datentyp. Akutellesten Wert.
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> |