save temp_yesterday in KVS upon new day
This commit is contained in:
parent
34143560a7
commit
3da8b1c4d5
8
pool.js
8
pool.js
@ -92,6 +92,14 @@ function update_new_day() {
|
||||
print("[POOL] update_new_day", status.tick_day);
|
||||
status.temp_yesterday = status.temp_today;
|
||||
status.temp_today = null;
|
||||
|
||||
Shelly.call(
|
||||
"KVS.Set",
|
||||
{ key: "pool.temp_yesterday", value: status.temp_yesterday },
|
||||
function (result) {
|
||||
print("[POOL] KVS set: ", JSON.stringify(result));
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// call a chain of API calls
|
||||
|
Loading…
Reference in New Issue
Block a user