Apex Time spanning midnight

psumms

Active Member
View Badges
Joined
Sep 11, 2019
Messages
189
Reaction score
124
Location
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?
 

Mrtakeoff53

Active Member
View Badges
Joined
Jul 13, 2019
Messages
319
Reaction score
316
Location
San Antonio
Rating - 0%
0   0   0
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
 

ca1ore

10K Club member
View Badges
Joined
Oct 28, 2014
Messages
14,193
Reaction score
19,712
Location
Stamford, CT
Rating - 100%
2   0   0
You can span midnight. I do it with my ATS lights. OSC starts from midnight, yes.
 
OP
OP
psumms

psumms

Active Member
View Badges
Joined
Sep 11, 2019
Messages
189
Reaction score
124
Location
United Kingdom
Rating - 0%
0   0   0
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.
 
OP
OP
psumms

psumms

Active Member
View Badges
Joined
Sep 11, 2019
Messages
189
Reaction score
124
Location
United Kingdom
Rating - 0%
0   0   0
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!
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
8,688
Location
Oregon
Rating - 0%
0   0   0
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

HOW DO YOU ADJUST YOUR CUC AS ALGAE DISAPPEARS?

  • Capture and re-home CUC

    Votes: 10 8.1%
  • Increase white light/hours in tank to spur algae growth to feed CUC

    Votes: 8 6.5%
  • Feed nori to support CUC

    Votes: 40 32.5%
  • Feed herbivore pellets to support CUC

    Votes: 44 35.8%
  • Allow attrition to balance CUC and algae

    Votes: 53 43.1%
  • Provide macro algae to feed CUC

    Votes: 9 7.3%
  • Introduce CUC predators

    Votes: 1 0.8%
  • Other (please explain)

    Votes: 12 9.8%
Back
Top