summaryrefslogtreecommitdiff
path: root/ebus/webapp/static/index.html
diff options
context:
space:
mode:
authormarc <marc@thinkpad.localnet.cc>2011-07-12 22:23:14 +0200
committermarc <marc@thinkpad.localnet.cc>2011-07-12 22:23:14 +0200
commit0362859a8ef5d9a206d7d6910fd7664ec894a2b3 (patch)
treea80aaaa19b93a4af88e0d80e0bf8aa0815f57190 /ebus/webapp/static/index.html
parent2d3bebf62bee63c39e49d33180013c5d7f225a38 (diff)
downloadebus-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.html6
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>