Egyras / HeishaMon

Panasonic Aquarea air-water H, J, K and L series protocol decrypt
231 stars 118 forks source link

Time synchronization fails. #483

Closed McMagellan closed 3 weeks ago

McMagellan commented 4 months ago

Since last year the variables %hour and %minute have been implemented in rules. The values ​​correspond to the same time as the timestamp in the console.

I have a power outage about every 6 weeks. When heishamon restarts (uptime starts new) the date is set to January 1st. 1970 and the time restarts at 1:00. Obviously the synchronization fails and no further attempt is made. I suspect that at the time of synchronization my Fritzbox (WLAN to Internet connection) had not yet established a working connection. This usually takes me about 6 minutes. If I reboot Heishamon later, the time is correct again.

Would it be possible to carry out further synchronization attempts at appropriate intervals if, for example, the year internally is still set to 1970?

Screenshot 2024-05-09 at 20-02-45 Heisha monitor

RichieB2B commented 4 months ago

Even for systems that are able to do successful time synchronization at boot, it is good practice repeat the synchronization regularly. Clocks tend to drift which is why time synchronization was invented.

CurlyMoo commented 4 months ago

https://github.com/IgorYbema/HeishaMon/pull/134

stumbaumr commented 3 weeks ago

@McMagellan, you could close this now, right?