Since I was unable to find one, I created a variable and have written a python script to assign the date/tiime to the indigo variable.
It's not working:
- Code: Select all
import datetime;
currentTime = indigo.variables[524935544].getValue(int) #current time - indigo variable
ct = datetime.datetime.now() #ct - python variable
indigo.variable.updateValue(524935544, ct)
The script returns the text "now".
Can I do this inside indigo? If not, is there a fix to the script above?
Thank you,
Bob