widapro / wledPixel

Dot matrix panel management
MIT License
66 stars 12 forks source link

WallClock precision #35

Closed martusi61 closed 8 months ago

martusi61 commented 9 months ago

I noticed that the WallClock loses precision after a few days which accumulates over time, upon restarting it synchronizes with the NTP and returns to showing the correct time.

ljpyro commented 9 months ago

I noticed exactly the same problem. Would be nice if it synchronizes every 6 hours with NTP.

mats-nk commented 9 months ago

From what I can see the time get updated at four places, at startup, when config changes is made and if MQTT is disconnected.

Suggestion: Update NTP and OWM at the same time,

So just include timeClient.update(); in the // OWM update part and remove it from the MQTT disconnect part.

widapro commented 9 months ago

I added settings for NTP server and NTP update interval in v.2.6.1

Screen Shot 2023-09-30 at 00 14 48
martusi61 commented 9 months ago

Great!

ljpyro commented 9 months ago

Fantastic.

Thank you.