bug fixes
Former-commit-id: c1bc39ba77ac319bbda1f55c59c68353c947ac98
This commit is contained in:
parent
2bc92ddc68
commit
2823057e76
3 changed files with 10 additions and 4 deletions
|
|
@ -51,6 +51,12 @@
|
|||
</classpath>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="clear-aggr-data-from-db" depends="">
|
||||
<exec executable="sqlite3">
|
||||
<arg line="hal.db 'DELETE FROM sensor_data_aggr'" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<!--clean all build paths-->
|
||||
<target name="clean">
|
||||
|
|
|
|||
|
|
@ -79,13 +79,13 @@ public class PCOverviewHttpPage extends HalHttpPage {
|
|||
ArrayList<PowerData> dayDataList = DBConnection.exec(stmt, new SQLPowerDataBuilder());
|
||||
|
||||
|
||||
Templator tmpl = new Templator(FileUtil.find("web-resource/index.html"));
|
||||
Templator tmpl = new Templator(FileUtil.find("web-resource/overview.tmpl"));
|
||||
tmpl.set("minData", minDataList);
|
||||
tmpl.set("hourData", hourDataList);
|
||||
tmpl.set("dayData", dayDataList);
|
||||
tmpl.set("username", new String[]{"Ziver", "Daniel"});
|
||||
|
||||
return tmpl;
|
||||
return tmpl;
|
||||
}
|
||||
|
||||
public static class PowerData{
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@
|
|||
<div id="min-power-chart" style="height:450px;"></div>
|
||||
</div>
|
||||
<div class="row placeholders">
|
||||
<H1>Previous two days (kWh/h)</H1>
|
||||
<H1>Last Week (kWh/h)</H1>
|
||||
<div id="hour-power-chart" style="height:450px;"></div>
|
||||
</div>
|
||||
<div class="row placeholders">
|
||||
<H1>Long term (kWh/day)</H1>
|
||||
<H1>All History (kWh/day)</H1>
|
||||
<div id="day-power-chart" style="height:450px;"></div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue