Is it possible to trigger a python script when a set of variables has any changes? If so how?
If not, is it safe to get the values evaluated every second or even constantly watching the variables?
davinci wrote:Yes but I would have to do this for over hundred variables.
davinci wrote:I have several devices and depending on their states I want to set a new state to be used in an app.
The calculations should be done on Indigo, not in the app.
indigo.variables.subscribeToChanges()
>>> indigo.variables.subscribeToChanges()
Traceback (most recent call last):
File "<console>", line 1, in <module>
ValueError: subscribeToChanges can only be called from plugins (not scripts or the interactive shell)
>>>
Users browsing this forum: No registered users and 3 guests