Set dateandtime by MQTT in order to avoid ntp after reset/restart #2740
andreas2555
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to run openDTU in an isolated mini-network without Internet access. The date and time can therefore not be set initially via an ntp request. I know the function via Web-API, but I don't want to use it, because then I have to store the admin password for openDTU on another system.
Question: Is there a way to define the timestamp after a restart from outside, e.g. via RTC by MQTT messages, without having to specify a password that also enables other write operations?
My suggestion for a feature request would be to implement an MQTT function analogous to the setdateandtime of the Web API, which works without a password or login as long as openDTU “sees” 1.1.1970, as well as later for correction, as long as the current and target time are only a few seconds apart, e.g. 10 seconds.
Beta Was this translation helpful? Give feedback.
All reactions