Retrieve Domoticz time in API/JSON call
Posted: Wednesday 13 January 2021 21:30
Hi,
I want to synchronize the time on a NodeMCU8266 (*) with the time Domoticz shows in the upper left corner of the dashboard page. This way I can avoid issues with summer and winter time, which are quite difficult to manage when using an NTP-server as source.
Of course I can synchronize with a CustomEvent every X hours, but then I have to maintain code on both the NodeMCU and in Domoticz. Is a JSON call available that I can use to get the time? I looked for it in the API/JSON guide but didn't find it. With a JSON call I only have to maintain the NodeMCU side since the Domoticz side is taken care of by Domoticz itself.
Thanks,
Peter
(*) Great stuff to combine with Domoticz by the way!
I want to synchronize the time on a NodeMCU8266 (*) with the time Domoticz shows in the upper left corner of the dashboard page. This way I can avoid issues with summer and winter time, which are quite difficult to manage when using an NTP-server as source.
Of course I can synchronize with a CustomEvent every X hours, but then I have to maintain code on both the NodeMCU and in Domoticz. Is a JSON call available that I can use to get the time? I looked for it in the API/JSON guide but didn't find it. With a JSON call I only have to maintain the NodeMCU side since the Domoticz side is taken care of by Domoticz itself.
Thanks,
Peter
(*) Great stuff to combine with Domoticz by the way!