It's supposed to take the value of how many times Sushi has been fed, convert it to a string, then add it into a string of text that reads 'Fed 1 time, Last feed at 17:47" or whatever the values for that were at the time.
The script is this:
Code: Select all
curTime = indigo.server.getTime().time()
curTimeStr = "\n" + str(curTime)
sushi_fed_number = indigo.variables[151546714] # "cat_sushi_fed_number"
sushi_fed_number_str = "\n" + str(sushi_fed_number)
sushi_fed = indigo.variables[1274955679] # "cat_sushi_fed"
fed_str = u"Fed %s time, Last feed at %s" % (sushi_fed_number, curTimeStr)
indigo.variable.updateValue(sushi_fed, fed_str)
Code: Select all
Fed description :
folderId : 1345505049
globalProps : MetaProps : (dict)
com.indigodomo.indigoserver : (dict)
emptyDict : (dict)
id : 151546714
name : cat_sushi_fed_number
pluginProps : emptyDict : (dict)
readOnly : False
remoteDisplay : True
sharedProps : com.indigodomo.indigoserver : (dict)
value : 1 time, Last feed at
19:59:30.194000
Any ideas?