Logic Machine Forum
LM Date and time - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: LM Date and time (/showthread.php?tid=4855)



LM Date and time - rw_echo - 03.07.2023

LM will not automatically update its date and time after being powered on again. 

The situation on site is like this: LM is not connected to the network or computer, and cannot update the system time automatically through the ntp service. Is it possible to start a script to automatically update the LM time through the knx address?


RE: LM Date and time - admin - 03.07.2023

See this: https://openrb.com/example-change-timedate-from-lua-script-on-lm2/


RE: LM Date and time - rw_echo - 03.07.2023

I may not have expressed it clearly. The function I want to implement is divided into two steps:
Step 1. I need to capture the system log information of LM restart and power on, and based on this information, decide whether to trigger the group address to update the time;
Step 2: I update the time through utilities>Date and time>Time (get from system), rather than setting the time arbitrarily myself.


RE: LM Date and time - admin - 03.07.2023

Use NTP, you won't need any manual operations then.


RE: LM Date and time - rw_echo - 03.07.2023

LM is not connected to the network or any computers, and cannot automatically update the time through NTP. I want to update the date and time through the switch group address on the panel.


RE: LM Date and time - Daniel - 04.07.2023

You need local NTP server, the solution you are looking for is not correct.