Switched sensor detail chart to 24 hours

This commit is contained in:
Ziver Koc 2016-05-26 16:51:26 +02:00
parent 15555ea7eb
commit eee2af5799
2 changed files with 3 additions and 2 deletions

View file

@ -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 {