mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Allowed quicker syncing and showing of more recent data synced from ecobee
This commit is contained in:
parent
1490a6a1a3
commit
584dd30eb5
@ -16,7 +16,7 @@ class runtime extends cora\api {
|
||||
];
|
||||
|
||||
public static $cache = [
|
||||
'sync' => 900 // 15 Minutes
|
||||
'sync' => 300 // 5 Minutes
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user