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,714
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
 
OP
OP
CasperOe

CasperOe

In it to win it!
View Badges
Joined
Feb 14, 2022
Messages
3,261
Reaction score
5,714
Location
Glasgow, United Kingdom
Rating - 0%
0   0   0
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 :)
 

blaxsun

10K Club member
View Badges
Joined
Dec 15, 2020
Messages
26,709
Reaction score
31,152
Location
The Abyss
Rating - 0%
0   0   0
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)
 
OP
OP
CasperOe

CasperOe

In it to win it!
View Badges
Joined
Feb 14, 2022
Messages
3,261
Reaction score
5,714
Location
Glasgow, United Kingdom
Rating - 0%
0   0   0
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 :)
 

blaxsun

10K Club member
View Badges
Joined
Dec 15, 2020
Messages
26,709
Reaction score
31,152
Location
The Abyss
Rating - 0%
0   0   0
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 :)
Haha. Let me play around with a few things on Fusion to see if I can replicate a suitable result for you!
 
OP
OP
CasperOe

CasperOe

In it to win it!
View Badges
Joined
Feb 14, 2022
Messages
3,261
Reaction score
5,714
Location
Glasgow, United Kingdom
Rating - 0%
0   0   0
Haha. Let me play around with a few things on Fusion to see if I can replicate a suitable result for you!
Thanks, you're an absolute star! :star-struck: No rush mate..
 

Gtinnel

10K Club member
View Badges
Joined
Mar 20, 2020
Messages
21,411
Reaction score
29,952
Location
Charleston, WV
Rating - 0%
0   0   0
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:
OP
OP
CasperOe

CasperOe

In it to win it!
View Badges
Joined
Feb 14, 2022
Messages
3,261
Reaction score
5,714
Location
Glasgow, United Kingdom
Rating - 0%
0   0   0
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!!
 

blaxsun

10K Club member
View Badges
Joined
Dec 15, 2020
Messages
26,709
Reaction score
31,152
Location
The Abyss
Rating - 0%
0   0   0
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.
 

Gtinnel

10K Club member
View Badges
Joined
Mar 20, 2020
Messages
21,411
Reaction score
29,952
Location
Charleston, WV
Rating - 0%
0   0   0
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.
 
OP
OP
CasperOe

CasperOe

In it to win it!
View Badges
Joined
Feb 14, 2022
Messages
3,261
Reaction score
5,714
Location
Glasgow, United Kingdom
Rating - 0%
0   0   0
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!
 

When to mix up fish meal: When was the last time you tried a different brand of food for your reef?

  • I regularly change the food that I feed to the tank.

    Votes: 34 26.2%
  • I occasionally change the food that I feed to the tank.

    Votes: 43 33.1%
  • I rarely change the food that I feed to the tank.

    Votes: 40 30.8%
  • I never change the food that I feed to the tank.

    Votes: 9 6.9%
  • Other.

    Votes: 4 3.1%
Back
Top