diff options
author | yvesf <yvesf-git@xapek.org> | 2011-07-17 16:00:10 +0200 |
---|---|---|
committer | yvesf <yvesf-git@xapek.org> | 2011-07-17 16:00:10 +0200 |
commit | 578f530ca0d0c01166b9a28fd0b2e0ab0ef750cc (patch) | |
tree | c38516b28133bf2c552cdf2756a2726999d01417 /ebus/webapp/static/index.html | |
parent | 314608a4f88b78a84556db9101b004f405534be7 (diff) | |
download | ebus-alt-578f530ca0d0c01166b9a28fd0b2e0ab0ef750cc.tar.gz ebus-alt-578f530ca0d0c01166b9a28fd0b2e0ab0ef750cc.zip |
.js ausgelagert; overview plot - keine selektion
Diffstat (limited to 'ebus/webapp/static/index.html')
-rw-r--r-- | ebus/webapp/static/index.html | 45 |
1 files changed, 10 insertions, 35 deletions
diff --git a/ebus/webapp/static/index.html b/ebus/webapp/static/index.html index 1decced..e883ee4 100644 --- a/ebus/webapp/static/index.html +++ b/ebus/webapp/static/index.html @@ -1,37 +1,12 @@ <html> - <head> - <link rel="stylesheet" type="text/css" href="/static/main.css" /> - <script src="/static/jquery-1.6.2.min.js"></script> - <script src="/static/jquery.flot.js"></script> - <script> - $(document).ready(function(){ - var from = Math.round(new Date().getTime()/1000) - 3*24*60*60; //86400; - var to = Math.round(new Date().getTime()/1000); - var dataset = [] - var replot = function() { - $.plot($("#ebusgraph"), dataset, { xaxis: { mode: "time"}}); - }; - var plotSensor = function(sensorname) { - $.getJSON("/sensor_cached/"+escape(sensorname)+"/"+from, //+"/"+to, - function(response) { - if (response['data']) { - data = response['data']; - dataset.push({'data':data,'label':sensorname}); - replot(); - } else { - alert("Fehler: " + response["error"]); - } - }); - } - plotSensor("heizkreisregler9.solarDaten.tempKollektor"); - plotSensor("heizkreisregler9.solarDaten.tempWarmwasserSolar"); - plotSensor("heizkreisregler10.betriebsdatenRegler1.kesselTemperatur"); - plotSensor("feuerungsautomat1.betriebsdatenRegler1.aussenTemperatur"); - // TODO http://people.iola.dk/olau/flot/examples/annotating.html - }); - </script> - </head> - <body> - <div id="ebusgraph"></div> - </body> + <head> + <link rel="stylesheet" type="text/css" href="/static/main.css" /> + <script src="/static/jquery-1.6.2.min.js"></script> + <script src="/static/jquery.flot.js"></script> + <script src="/static/ebus.js"></script> + </head> + <body> + <div id="ebusgraph"></div> + <div id="overview"></div> + </body> </html> |