summaryrefslogtreecommitdiff
path: root/ebus/webapp/static
diff options
context:
space:
mode:
Diffstat (limited to 'ebus/webapp/static')
-rw-r--r--ebus/webapp/static/.index.html.swpbin12288 -> 0 bytes
-rw-r--r--ebus/webapp/static/index.html6
2 files changed, 4 insertions, 2 deletions
diff --git a/ebus/webapp/static/.index.html.swp b/ebus/webapp/static/.index.html.swp
deleted file mode 100644
index 2a39bee..0000000
--- a/ebus/webapp/static/.index.html.swp
+++ /dev/null
Binary files differ
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>