Clock plugin to display time in control page

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
User avatar
davvi
Posts: 110
Joined: Tue Sep 27, 2011 8:06 pm
Location: Austin, TX
Contact:

Clock plugin to display time in control page

Post by davvi »

What's the best way to display a clock on a control page? Is there a plugin that happens to have the time as one of it's variables?
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Clock plugin to display time in control page

Post by jay (support) »

Just create a variable to hold the time, then create a schedule that repeats as frequently as you want, and use the "Insert Timestamp into Variable" action in the Action Collection to update it. Then just display that variable on your control page. No extra plugin required.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
davvi
Posts: 110
Joined: Tue Sep 27, 2011 8:06 pm
Location: Austin, TX
Contact:

Re: Clock plugin to display time in control page

Post by davvi »

Thanks Jay!

I know it's not the most processor intensive task, but will updating that variable every minute not burden Indigo too much?
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Clock plugin to display time in control page

Post by jay (support) »

Once a minute? Nah. We have some plugins that are updating device states every couple of seconds. The processing from the Indigo server side is pretty much identical for a variable update and a device state update.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
davvi
Posts: 110
Joined: Tue Sep 27, 2011 8:06 pm
Location: Austin, TX
Contact:

Re: Clock plugin to display time in control page

Post by davvi »

Fantastic. Thank you Jay
Locked

Return to “Extending Indigo with Plugins and Python”