Page 1 of 1
Countdown timer w/ Display?
Posted: Mon Jul 23, 2007 9:44 pm
by loo_hoo_ser
Hi y'all -
I searched the forums for an answer to this and I did turn up an old post from 2004 - but alas, no solution.
What I have is a timer that counts down to turn off the lights, but I'd also like to display the time remaining before the lights turn off (timer expires).
For example, when I start it, it starts at 5 minutes, then it would display 4 minutes, 3 minutes and so on. I thought about doing two timers. One timer to count out the entire 5 minutes and a second timer to count out each minute to decrement a display value. But I thought this was cumbersome and was wondering if there was another way to do this?
Ideally, it'd be nice to have the timer device make visible the time remaining and that would be that! But I don't think this made it as a feature, even in HB 3.0.
Re: Countdown timer w/ Display?
Posted: Tue Jul 24, 2007 9:43 am
by ScottBot
loo_hoo_ser wrote:Ideally, it'd be nice to have the timer device make visible the time remaining and that would be that! But I don't think this made it as a feature, even in HB 3.0.
It was on the V3 list, but I never implemented this. The only other way would be to do it with a script and a 1 sec repeating timer, but that's a lot of trouble.
Posted: Tue Jul 24, 2007 11:16 am
by roussell
FWIW, I too would love this functionality. My wife controls the sprinklers in her flower bed with a SWremote on her phone and she has asked for a display to show how many minutes are left on the watering schedule.
(Sorry - thread hijack coming, I'll move to a different thread if it's a problem)
While we're on the subject of timers, it would be great to break out the sleep time property out into separate days/hour/minute/second/mili properties. That would make it a lot easier to tie a slider or similar control to a time. The wife wants this so she can simply adjust a slider to change the water schedule. If there is already a way to do this, please clue me in. I've been trying to implement it with a script but it's cumbersome at best.
Thanks,
Terry
Posted: Tue Jul 24, 2007 6:21 pm
by Richard Naninck
roussell wrote:If there is already a way to do this, please clue me in. I've been trying to implement it with a script but it's cumbersome at best.
SetPropertyValue "Any Timer.Sleep Time", "Seconds=" & GetPropertyValue("NULL Device.Seconds")
In short; create a property and call it.... Seconds (is apropriate) and bind it to any device (NULL Device in my case). Then bind a theme slider to this seconds property. Create a tasks that looks for changes on the Seconds property. If it changes, fire the script line as above.
If Seconds is set to 100, actually 1 minute and 40 seconds will be enterend into the device. Obviously this can also be done with Minutes, Hours etc.
Hope this is what you are looking for.
Posted: Thu Jul 26, 2007 3:09 pm
by roussell
Thanks Richard, that's pretty much what I'm doing which works - I just hate having all those scripts and tasks for such a simple need.
I've submitted a feature request for both the "Remaining Time" and separated "sleep time" properties.
Terry
Posted: Thu Jul 26, 2007 3:16 pm
by Richard Naninck
These are both nice feature requests as long as the current functionality remains working.
Lets say the sleep timer is broken into hours, minutes, seconds etc and I want to set one and a half minute I would have to set two sliders. The minute slider set to one and the seconds slider set to 30 whereas now the seconds can be set to 90 and it takes 1.5 minutes. But looking at the time property which is broken into pieces I think this won't be a problem.