diff options
Diffstat (limited to 'ebus/webapp')
-rw-r--r-- | ebus/webapp/static/ebus.js | 6 | ||||
-rw-r--r-- | ebus/webapp/static/index.html | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ebus/webapp/static/ebus.js b/ebus/webapp/static/ebus.js index afd667f..4563ee9 100644 --- a/ebus/webapp/static/ebus.js +++ b/ebus/webapp/static/ebus.js @@ -45,7 +45,7 @@ $(document).ready(function(){ plotSensorOverview(sensorname); } var plotSensorDetail = function(sensorname) { - $.getJSON("/sensor/"+escape(sensorname)+"/"+from+"/"+to, + $.getJSON("sensor/"+escape(sensorname)+"/"+from+"/"+to, function(response) { if (response['data']) { datasetDetail.push({'data':response['data'], @@ -57,7 +57,7 @@ $(document).ready(function(){ }); }; var plotSensorOverview = function(sensorname) { - $.getJSON("/sensor_cached/"+escape(sensorname)+"/"+fromOverview, //+"/"+to, + $.getJSON("sensor_cached/"+escape(sensorname)+"/"+fromOverview, //+"/"+to, function(response) { if (response['data']) { datasetOverview.push({'data':response['data'], @@ -96,4 +96,4 @@ $(document).ready(function(){ plotSensor("heizkreisregler10.betriebsdatenRegler1.kesselTemperatur"); plotSensor("feuerungsautomat1.betriebsdatenRegler1.aussenTemperatur"); // TODO http://people.iola.dk/olau/flot/examples/annotating.html -});
\ No newline at end of file +}); diff --git a/ebus/webapp/static/index.html b/ebus/webapp/static/index.html index e6ab5b9..16fa3ac 100644 --- a/ebus/webapp/static/index.html +++ b/ebus/webapp/static/index.html @@ -1,10 +1,10 @@ <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 src="/static/jquery.flot.selection.js"></script> - <script src="/static/ebus.js"></script> + <script src="static/jquery-1.6.2.min.js"></script> + <script src="static/jquery.flot.js"></script> + <script src="static/jquery.flot.selection.js"></script> + <script src="static/ebus.js"></script> </head> <body> <div id="ebusgraph"></div> |