Neptune Apex - If power consumption between these hours, then off programming

CasperOe

In it to win it!
View Badges
Joined
Feb 14, 2022
Messages
3,261
Reaction score
5,736
Location
Glasgow, United Kingdom
Rating - 0%
0   0   0
Hi Reefers,

My MXM module has gone **** up so I am trying to add a layer of protection so I don't have to come down in the middle of the night to lights on.

What i am trying to do:

If the time is between 23:00 and 09:00 AND the power consumption is more than 20w, then OFF.
Q: How do i write this in one line?

Can't seem to make it work with both criterias - one or the other, fine! But both? HELP! :D
 
I think you'll need 2 lines. The time alone should be sufficient, no?
I don't want them to switch off unless there's more power consumption than the moonlight LED's.

I only want them to switch off if my MXM module does not do it's job :)
 
What's the power consumption for normal and moonlight? (I'll take a stab at it)
Was waiting for someone like you man ;)


Moonlight sits at around 6 w and max output throughout the day is about 45 w. I can change as required :)
 
I can take a stab at it. Unless you specifically want it to be a single line. If statements are evaluated in order so telling it to turn off it over 20 watts will get ignored if a statement after it is true. I’m still not great at programming but I think this should work.

If Output [name outlet] WATTS> 20 Then OFF
If Time 9:00 to 23:00 Then ON
 
Last edited:
I can take a stab at it. Unless you specifically want it to be a single line. If statements are evaluated in order so telling it to turn off it over 20 watts will get ignored if a statement after it is true. I’m still not great at programming but I think this should work.

If Output WATTS> 20 Then OFF
If Time 9:00 to 23:00 Then ON
Will give that one a go although the two looks conflicting to me at first eyesight :) Thanks for helping out!!
 
I can take a stab at it. Unless you specifically want it to be a single line. If statements are evaluated in order so telling it to turn off it over 20 watts will get ignored if a statement after it is true. I’m still not great at programming but I think this should work.

If Output WATTS> 20 Then OFF
If Time 9:00 to 23:00 Then ON
Beat me to it! I believe this will work. You just just need to slightly tweak it for each light in the individual outlet configurations:

If Output specific-light-outlet-name Watts > 20 Then OFF
If Time 09:00 to 23:00 Then ON

The fish are all still sound asleep otherwise I'd test it.
 
Beat me to it! I believe this will work. You just just need to slightly tweak it for each light in the individual outlet configurations:

If Output specific-light-outlet-name Watts > 20 Then OFF
If Time 09:00 to 23:00 Then ON

The fish are all still sound asleep otherwise I'd test it.
I went back and edited my post just so that if someone sees it in the future they don’t use my version missing the outlet name.
You are absolutely right that it needs the outlet name.
 
You guys are absolute rock starts, thanks a lot! :D Sitting on a rig off Brazil just now but will have the missus verify back home in Scotland if we have cracked the code!
 

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%
Back
Top