- Posted on
Sun Nov 27, 2016 5:39 am
-
McJohn
offline
-
- Posts: 631
- Joined: Dec 18, 2012
- Location: The Netherlands
-
Thanks for the fast reply my friend!
mmyvar = indigo.variables[518594898] # "Electra_dag"
myvar2 = 3.848
indigo.variable.updateValue(myvar, str(round(myvar2,2))))
I thinkI have to change theID of the Indigo Variable Electra_dag to my ID, it's 1723121229
But the variable is continuous changing (electric meter), so I wonder if the named 3.848 is right.
And I got a script error:
Script Error embedded script: invalid syntax
Script Error around line 3 - "indigo.variable.updateValue(myvar, str(round(myvar2,2))))"
Thanks for the help!