LogicMachine Forum
KNX IP features by script - Printable Version

+- LogicMachine 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: KNX IP features by script (/showthread.php?tid=4988)



KNX IP features by script - toujour - 26.09.2023

Hi,

 is it possible turn on or off this function by the script ?
I'm thinking for a redundant use with two LM (both connected with the KNX TP-UART...and only one by IP)

Thanks,
Alberto


RE: KNX IP features by script - Daniel - 26.09.2023

Code:
require('uci') -- disable uci.set('eibd.@eibd[0].knxip=0') -- enable uci.set('eibd.@eibd[0].knxip=1') uci.commit('eibd') os.execute('/etc/init.d/eibd restart')