diff --git a/pool.js b/pool.js index cf23b12..d943420 100644 --- a/pool.js +++ b/pool.js @@ -16,6 +16,10 @@ let status = { duration: null, schedule: null, + time: null, + uptime: null, + + tick: 0, tick_mqtt: 0, tick_temp: 0, tick_lock: 0, @@ -271,4 +275,22 @@ Shelly.addEventHandler( } ); +// Debug... + +Timer.set( + 60 * 1000, + true, + function() { + status.tick++; + Shelly.call ( + "Sys.GetStatus", + {}, + function (result) { + print("[POOL] tick", result.time); + status.time = result.time; + status.uptime = result.uptime; + } + ); + } +);