Logic Machine Forum
Get time and date from KNX to LM - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Get time and date from KNX to LM (/showthread.php?tid=5163)



Get time and date from KNX to LM - savaskorkmaz - 19.12.2023

Hi,
There is an example about how we can write LM's time and date to group address. 

But i need a revers example. I wan to read from KNX group address and write to LM's date and time.

Do you have an example ?

Regards,


RE: Get time and date from KNX to LM - Daniel - 19.12.2023

The correct way is to use NTP as if you use the script from link below you will make jump in time and if a schedule event happen in the meantime you will miss the event.
https://openrb.com/example-change-timedate-from-lua-script-on-lm2/