Apex Time spanning midnight

psumms

Active Member
View Badges
Joined
Sep 11, 2019
Messages
189
Reaction score
124
Location
United Kingdom
What state or country do you live in
United Kingdom
Rating - 0%
0   0   0
Am i correct in thinking that the Apex time command cannot span midnight, so the following would not be valid:
If Time 22:00 to 07:00 Then OFF
and instead you would need to use two separate lines, e.g.
If Time 22:00 to 23:59 Then OFF
If Time 00:00 to 07:00 Then OFF


Also, bonus question, does the OSC command always calculate a starting point from midnight?
 
Is it possible to reverse your command? Instead of IF 22:00 to 07:00 THEN OFF, try IF 07:00 to 22:00 then ON. It gets rid
Of your problem in a single line
 
You can span midnight. I do it with my ATS lights. OSC starts from midnight, yes.
 
Is it possible to reverse your command? Instead of IF 22:00 to 07:00 THEN OFF, try IF 07:00 to 22:00 then ON. It gets rid
Of your problem in a single line
Unfortunately not, there are several other commands that become difficult this way around.
 
Will test again. Something i've noticed which I think confused my initial test, my Apex system time is off at the moment. Seems Neptune have hard-coded daylight savings to those of US dates which leaves three weeks in March where my timers are off! Bizarre decision from a programming point of view!
 
Yes, If Time can span midnight:

Set OFF
If Time 18:00 to 08:00 Then ON
image3-6.png

This is from my tutorial on Apex Timers: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/
 

TOP 10 Trending Threads

WHEN PLANNING CORAL PLACEMENT, WHAT USUALLY WINS? THE FUTURE COLONY, OR THE NEXT FRAG?

  • I leave plenty of open space for large future colonies

    Votes: 3 21.4%
  • I plan for growth...but occasionally squeeze coral into tight spaces

    Votes: 5 35.7%
  • I try to balance future growth with variety now

    Votes: 4 28.6%
  • I fit in as many frags as I reasonably can

    Votes: 3 21.4%
  • One more frag always wins! Future me can solve the problem...

    Votes: 0 0.0%
  • It depends on the coral and how quickly it grows

    Votes: 1 7.1%
  • I squeeze 'em in! Survival of the fittest, baby!!

    Votes: 0 0.0%
  • I’m already out of room, so apparently we know my answer...

    Votes: 1 7.1%
Back
Top
Home
Post thread…
Market
What's new