Switched sensor detail chart to 24 hours
This commit is contained in:
parent
15555ea7eb
commit
eee2af5799
2 changed files with 3 additions and 2 deletions
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default drop-shadow">
|
||||
<div class="panel-heading">Chart</div>
|
||||
<div class="panel-heading">Last 24 hours</div>
|
||||
<div class="panel-body">
|
||||
<div id="chart" style="height:350px;"></div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@ public class SensorOverviewHttpPage extends HalHttpPage {
|
|||
Templator tmpl = new Templator(FileUtil.find(DETAIL_TEMPLATE));
|
||||
tmpl.set("sensor", sensor);
|
||||
tmpl.set("history", history);
|
||||
tmpl.set("aggregation", AggregateDataListSqlResult.getAggregateDataForPeriod(db, sensor, AggregationPeriodLength.HOUR, UTCTimeUtility.WEEK_IN_MS));
|
||||
tmpl.set("aggregation",
|
||||
AggregateDataListSqlResult.getAggregateDataForPeriod(db, sensor, AggregationPeriodLength.FIVE_MINUTES, UTCTimeUtility.DAY_IN_MS));
|
||||
return tmpl;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue