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.

Can not change parameter visparams when using grp.create
#5
(13.07.2022, 06:13)admin Wrote: You can do this via a direct DB query:
Code:
addr = '32/1/1'

grp_visparams = {
  ["max"]="10000",
  ["min"]="0",
  ["step"]="",
  ["control"]="spinner",
  ["decimals"]="0",
}

json_visparams = json.encode(grp_visparams)

id = knxlib.encodega(addr)
db:query('UPDATE objects SET visparams=? WHERE id=?', json_visparams, id)

Great!!!!!! I took your code proposal, inserted it in my code and it is working. Smile Cool 
Thank you very much for your support.
Reply


Messages In This Thread
RE: Can not change parameter visparams when using grp.create - by Fish56 - 13.07.2022, 07:15

Forum Jump: