Weird problem when asking for the server time from a mySensor node.
Posted: Sunday 27 April 2025 17:32
Version: 2024.7
Platform: Raspberry (latest version
Plugin/Hardware: MySensors
Description:
I'm testing out how I can use the receiveTime - that is on the MySensors side - in a mySensors project. That is the MySensors function to request the server time from Domoticz.
There are two issues I run into:
Platform: Raspberry (latest version
Plugin/Hardware: MySensors
Description:
I'm testing out how I can use the receiveTime - that is on the MySensors side - in a mySensors project. That is the MySensors function to request the server time from Domoticz.
There are two issues I run into:
- Domoticz returns the local time. Not the UTC time as I would expect. It's weird you don't get a utc time, because now you have to translate the local time into UTC on your MySensors node.
- Domoticz - as it seems - goes beserk when a query for the time at a whole hour.
When you request the time at 0 minutes, Domoticz starts spamming your node for a whole minute long. Meaning like every other 40ms I receive the time for 1 minute. I just asked for it once. Also during this DDOS on my Node I sometimes get a time that is 2 january 1970. Which is weird. It took me some time to find out why the time on my node sometimes went from the correct time to a 00:30 time.