diff options
Diffstat (limited to 'ebus/webapp/static/ebus.js')
-rw-r--r-- | ebus/webapp/static/ebus.js | 6 |
1 files changed, 3 insertions, 3 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 +}); |