[ANSWERED]Clock

Posted on
Thu Apr 03, 2014 2:26 pm
MrJeffreyGee offline
User avatar
Posts: 74
Joined: Apr 26, 2011
Location: United States

[ANSWERED]Clock

Is there a way to put a clock or the current time with seconds on a control page easily?

The only way that I can think of doing this is to have an applescript constantly running and putting the current time into an Indigo variable then having that variable posted on the control page, but that seems very CPU intensive.

Posted on
Thu Apr 03, 2014 4:09 pm
jay (support) offline
Site Admin
User avatar
Posts: 18224
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Clock

A script inserting into a variable is the only way. Note however, that having a page element update once per second is significantly more impactful (network) than the CPU necessary to run the script (it's trivial).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sat Feb 07, 2015 2:59 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: [ANSWERED]Clock

How can I implement the clock?

I created a variable which is updated every minute (by a schedule) containing time, put it in control page;
the problem is that at every update the "indigo server status" variable is update with "<variableName> updated" and this is not nice to see.

If I use AppleScript, does it happen?
What kind of AppleScript shall I use? External or embedded into something?

Thanks and sorry for the stupid questions :)

Marco

Posted on
Sat Feb 07, 2015 10:33 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: [ANSWERED]Clock

I believe that will happen regardless of the technique used to update the variable.

That status control on the Control Page is optional, however, so you could just delete it from that particular Control Page.

Image

Posted on
Sat Feb 07, 2015 10:45 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: [ANSWERED]Clock

At the moment I plan to build just a single Control Page as I do not have so many devices :)

But thanks for the answer :)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 6 guests