PDA

View Full Version : Sunrise behavior


Peplou
May 16, 2009, 09:42 AM
Hi

The solution was: program start at 6h00 with test if time is between ( 5h30 to sunrise) NO stop, YES if time is between (sunrise to 7h30) NO stop; YES light on.
I did only the first part (5h30 to sunrise)and the program start at 6h00. I assume this: If the sunrise is at 5h35 the test will be YES, sunrise at 5h25 the test will be NO. The answer is alway YES why?
Thank

ewelin
May 16, 2009, 11:31 AM
Hello,

Since we lost your previous posts, can you please recap the exact behavior you wanted. You wanted a light to turn on at 6am if sunrise was between 5:30 and 7:30am correct?

Peplou
May 16, 2009, 11:36 AM
Hi Eric

Yes

Peplou
May 16, 2009, 11:47 AM
Hi again

My first request was that. But i want the light to be on when the sunrise time is after 5h30 before that i have enought natural light. For the off sequence is done by a schedule at 8h00 went i get out.
What is the best way to perform that action.
Thank

ewelin
May 16, 2009, 09:53 PM
If you just want it to come on at sunrise if it's prior to 5:30am create the program that you schedule to run at sunrise. Then within the VP section have a test of Is time between 5:30am and 7:00am, if that's true, turn on the light, if it's not true exit.

If you can't figure it out, let me know and I can put together the vp for you quickly.