Logic Machine Forum
Cov - 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: Cov (/showthread.php?tid=2290)



Cov - benthoma - 19.10.2019

Hi. Is it possible to change all the cov with a spesific tag or name at once with a script?


RE: Cov - admin - 21.10.2019

Change COV for a single tag:
Code:
covincr = 4.5
tag = 'aaa'

db:query('UPDATE objects SET covincr=? WHERE id IN (SELECT object FROM objecttags WHERE tag=?)', covincr, tag)
os.execute('/etc/init.d/bacnet restart')