Removed unnecessary extra layer in resource folder structure.
This commit is contained in:
parent
94485b5633
commit
d8a1b66738
190 changed files with 11 additions and 11 deletions
29
plugins/hal-powerchallenge/resources/web/pc_overview.tmpl
Normal file
29
plugins/hal-powerchallenge/resources/web/pc_overview.tmpl
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<h1 class="page-header">Overview</h1>
|
||||
|
||||
<div class="row placeholders">
|
||||
<H1>Last 24 hours (kWh/5min)</H1>
|
||||
<div id="minute-power-chart" style="height:450px;"></div>
|
||||
</div>
|
||||
<div class="row placeholders">
|
||||
<H1>Last Week (kWh/h)</H1>
|
||||
<div id="hour-power-chart" style="height:450px;"></div>
|
||||
</div>
|
||||
<div class="row placeholders">
|
||||
<H1>All History (kWh/day)</H1>
|
||||
<div id="day-power-chart" style="height:450px;"></div>
|
||||
</div>
|
||||
<div class="row placeholders">
|
||||
<H1>All History (kWh/week)</H1>
|
||||
<div id="week-power-chart" style="height:450px;"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
$(function(){
|
||||
createChart("#minute-power-chart", "/api/sensor?aggregation=minute", 5*60*1000);
|
||||
createChart("#hour-power-chart", "/api/sensor?aggregation=hour", 60*60*1000);
|
||||
createChart("#day-power-chart", "/api/sensor?aggregation=day", 24*60*60*1000);
|
||||
createChart("#week-power-chart", "/api/sensor?aggregation=week", 7*24*60*60*1000);
|
||||
});
|
||||
</script>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue