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:
parent
9e59b53546
commit
172975d792
3 changed files with 3 additions and 2 deletions
|
|
@ -119,5 +119,6 @@ function getChartData(json){
|
|||
names: labels,
|
||||
type: 'spline',
|
||||
axes: dataYaxis,
|
||||
unload: true,
|
||||
};
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue