Hi I'm looking for code for a virtual outlet so that it comes on for just 1min at 8pm on Sunday and off the whole rest of the time.
Many thanks in advance.
Dave
Hi I'm looking for code for a virtual outlet so that it comes on for just 1min at 8pm on Sunday and off the whole rest of the time.
Many thanks in advance.
Dave
Set ON
If Time 20:01 to 19:59 Then OFF
IF DoW -MTWTFS Then OFF
Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.
Hi many thanks I just tried it moving the day to Monday etc but if didn't come on?? just stayed off.
Set ON
If Time 20:01 to 19:59 Then OFF
IF DoW S-TWFTS Then OFF
Must fill in days not used
Set ON
If Time 13:30 to 13:26 Then OFF
If DoW S-TWTFS Then OFF
I tried this but it didn't turn on
The Apex clock is correct as seen on the display? The VO is on AUTO?
BTW, I had accidentally swapped the letters for Thurs & Fri - I fixed that in my previous post.
Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.
Dave,
Personally, I would use this code:
Set OFF
If Time 13:26 to 13:29 Then ON
If DoW S-TWTFS Then OFF
When doing it this way, keep in mind 13:29 is really until 13:29:59 (aka 13:30). Also, this is obviously more than one minute...so if you still want to use just one minute you'll need to make that adjustment. You changed more than just switching to Monday
It looks like there is a problem with the time. Since 13:26 is before 13:30 will this come on at 13:30 and stay on over midnight until 13:26:59 the next day and with the DOW be on from midnight to 13:26:59, off until 13:30 and then on until midnight?
Your problem is the clock, not the code. I forget the fix, I think it is in the daylight savings setting, but search the forum and you will find it. There should not be two different times.
I was wanting my metal halide to not come on one day a week...
or maybe just less time one day of the week.
So far I have it so it doesn't come on on Sundays.
I was looking through these posts and I always keep seeing on the DoW programing that they use ( -MTWTFS). I have it backwards and it has worked today and not come on but I don't know about tomorrow when I want it on so my question is will this work the way I have it?
Sent from my iPhone using Tapatalk
And after this code do I just put
(If Time 11:00 to 03:00 Then On)
Or is there more to it then that for that particular DoW
Sent from my iPhone using Tapatalk
That If DoW looks fine. However, a Min Time of 30 seconds is not right for use with metal halides; that statement is intended to allow sufficient cool down time for the MH lamp if it is shut off for some reason, making it stay off for a suitable period of time before trying to turn it back on. The usual value to use is 30 minutes.
Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.
Ok.
I didn't even notice that I changed that. Thanks
Sent from my iPhone using Tapatalk
If I want it just less time instead of off do I leave out the off and put ( if time ...)?
Sent from my iPhone using Tapatalk
So would this be right for having Sunday light time different from other days of the week?
Sent from my iPhone using Tapatalk
Upon taking another look, the sequence needs to change. Move the If Tmp and Min Time to the end.
BTW, in cases like this, please post the programming by copy and paste of the actual program text. This makes is easy for someone helping you to give you modifications without having to retype it all. Sometimes screenshots are quite valuable but sometimes (like this) they can be counterproductive
Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.
Ok I will do that next time
Thanks for the tip
So move line 4&5 to the bottom after line 6&7 and then everything will work?
Sent from my iPhone using Tapatalk
Bookmarks