1
0
mirror of https://github.com/beestat/app.git synced 2025-05-23 18:04:14 -04:00

Allowed quicker syncing and showing of more recent data synced from ecobee

This commit is contained in:
Jon Ziebell 2021-06-14 21:44:04 -04:00
parent 1490a6a1a3
commit 584dd30eb5
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ class runtime extends cora\api {
];
public static $cache = [
'sync' => 900 // 15 Minutes
'sync' => 300 // 5 Minutes
];
/**

View File

@ -68,7 +68,7 @@ beestat.runtime_sensor.get_data = function(thermostat_id, range) {
range.dynamic,
'day'
);
end_m = moment().subtract(1, 'hour');
end_m = moment();
} else {
begin_m = moment(
range.static_begin + ' 00:00:00'

View File

@ -120,7 +120,7 @@ beestat.runtime_thermostat.get_data = function(thermostat_id, range, key) {
range.dynamic,
'day'
);
end_m = moment().subtract(1, 'hour');
end_m = moment();
} else {
begin_m = moment(
range.static_begin + ' 00:00:00'