Page 1 of 1

Clock

PostPosted: Mon Mar 21, 2016 1:29 pm
by Duchateau
Im new to home automation, Indigo, python,...
I'm browsing this forum for some time, but im already stuck with the clock -Date

For the date i am using a schedules every minute to run this python script:
theDate = indigo.server.getTime().date()
theDateStr = str(theDate)
theDateStr = indigo.variables[1318270757].value

but the variable value stays empty

Can somebody give an example for date/clock script , so i better can understand the logic

Sorry for my English (im from Belgium)
thanks in advance

Re: Clock

PostPosted: Mon Mar 21, 2016 2:20 pm
by jay (support)
Close - try this:

Code: Select all
theDate = indigo.server.getTime().date()
theDateStr = str(theDate)
indigo.variable.updateValue(1318270757, theDateStr)