a couple of bug fixes:

- fixed sensor detail chart not showing data
- fixed? out ouf memory in PowerChalange page
- temporary fix for wrong / redirect
This commit is contained in:
Ziver Koc 2016-12-01 12:57:59 +01:00
parent 9e59b53546
commit 172975d792
3 changed files with 3 additions and 2 deletions

View file

@ -119,5 +119,6 @@ function getChartData(json){
names: labels,
type: 'spline',
axes: dataYaxis,
unload: true,
};
}

View file

@ -10,7 +10,7 @@
</div>
<script>
$(function(){
createChart("#chart", "/data/sensor?aggr=minute&id={{sensor.getID()}}", 5*60*1000);
createChart("#chart", "/data/sensor?aggr=minute&id={{sensor.getId()}}", 5*60*1000);
});
</script>

View file

@ -73,7 +73,7 @@ public class HalServer {
HttpServer http = new HttpServer(HalContext.getIntegerProperty("http_port"));
http.setDefaultPage(new HttpFilePage(FileUtil.find("resource/web/")));
http.setPage("/", new HttpRedirectPage("/"+pages.get(0).getId()));
http.setPage("/", new HttpRedirectPage("/map"));
http.setPage(HalAlertManager.getInstance().getUrl(), HalAlertManager.getInstance());
for(HalHttpPage page : pages){
http.setPage(page.getId(), page);