This may have been answered before but I cannot seem to find it in the forums.
I have created an indigo variable that is called daily_pool_water_fill
I would like to send an email with the value of daily_pool_water_fill via python script
the variable id for daily_pool_water_fill is 410242667
I create this script to send an email however I am getting an error. I do not have the proper syntax for the variable. Any help appreciated
This is the script and the error I receive
SCRIPT
poolfill = indigo.variable[410242667]
theSubject = "Pool Water Fill: is %s" % (poolfill)
theBody = "Login to see monthly chart"
indigo.server.sendEmailTo("xxxyyy@me.com", subject=theSubject, body=theBody)
return
ERROR
Jan 2, 2016, 8:16:53 AM
Script Error embedded script: 'VariableCmds' object does not support indexing
Script Error Exception Traceback (most recent call shown last):
embedded script, line 1, at top level
TypeError: 'VariableCmds' object does not support indexing