Naughty Apex Code?

  • Thread starter Thread starter spsick
  • Start date Start date
  • Tagged users None

spsick

Valuable Member
View Badges
Joined
Feb 17, 2018
Messages
1,599
Reaction score
1,923
Location
Mpls, MN
Rating - 100%
1   0   0
Ok not sure what I’m doing wrong here but set some code to drip Kalk overnight and the outlet stays on past 1. This is on a confirmed working outlet that I’m repurposing. It is #4 on a EB8.

Set OFF
Fallback OFF
IF TIME 21:00 to 01:00 then ON
If pH >8.5 then OFF
 
I think it should work as is but maybe try:

Set OFF
Fallback OFF
IF TIME 21:00 to 23:59 then ON
IF TIME 0:00 to 1:00 then ON
If pH >8.5 then OFF

Also make sure your hardware time is correct (on the dashboard not fusion). Mine slowly goes out of sync and I have to fix it randomly. For instance my lights go off at 10pm but really 10:10 because the hardware time is incorrect even though fusion has the correct time.
 
The above should work - it doesn't like to span midnight. You could also do to the oppoiste:

Set ON
Fallback OFF
IF TIME 1:00 to 21:00 then OFF
If pH >8.5 then OFF
 
I think it should work as is but maybe try:

Set OFF
Fallback OFF
IF TIME 21:00 to 23:59 then ON
IF TIME 0:00 to 1:00 then ON
If pH >8.5 then OFF

Also make sure your hardware time is correct (on the dashboard not fusion). Mine slowly goes out of sync and I have to fix it randomly. For instance my lights go off at 10pm but really 10:10 because the hardware time is incorrect even though fusion has the correct time.

DOH! Good shout on the time!

Apex time is an hour behind local time (daylight saving time) and I found it on at 1:30 local time and shut it off manually thinking my code was bad.
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top