Clock

Posted on
Mon Mar 21, 2016 1:29 pm
Duchateau offline
Posts: 9
Joined: Oct 20, 2015

Clock

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

Posted on
Mon Mar 21, 2016 2:20 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Clock

Close - try this:

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

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest