This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Script change of Bacnet COV settings
#2
Use this:
Code:
--Best way is to tag your objects with a specific tag for each different COV value and then run this script once:

covincr = 0.1
tag = 'mycovtag1'
db:query('UPDATE objects SET covincr=? WHERE id IN (SELECT object FROM objecttags WHERE tag=?)', covincr, tag)

covincr = 0.5
tag = 'mycovtag2'
db:query('UPDATE objects SET covincr=? WHERE id IN (SELECT object FROM objecttags WHERE tag=?)', covincr, tag)

os.execute('/etc/init.d/bacnet restart')
script.disable(_SCRIPTNAME)

--or

covincr = 0.1
db:query('UPDATE objects SET covincr=? WHERE export = 1', covincr)
os.execute('/etc/init.d/bacnet restart')
script.disable(_SCRIPTNAME)
Reply


Messages In This Thread
RE: Script change of Bacnet COV settings - by Erwin van der Zwart - 27.09.2023, 11:46

Forum Jump: