ATO code for text message/notification

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)

kevin_e

Well-Known Member
View Badges
Joined
May 5, 2018
Messages
638
Reaction score
296
Rating - 0%
0   0   0
How can I set up a notification/text for when the ATO pump has been on for a certain period of time?

i.e. When On > 000:30 Then "NOTIFY"

What would replace "NOTIFY"?

Thanks!
 
OP
OP
K

kevin_e

Well-Known Member
View Badges
Joined
May 5, 2018
Messages
638
Reaction score
296
Rating - 0%
0   0   0
So I guess it would actually be under the Alarm oulet, not the ATO.

If ATO On > 000:30 Then ON

doesn't seem to work
 
OP
OP
K

kevin_e

Well-Known Member
View Badges
Joined
May 5, 2018
Messages
638
Reaction score
296
Rating - 0%
0   0   0
If Swx4_1 OPEN > 000:29 Then ON

I tried this and it uploaded. But when I hit refresh it defaults to this:

If Swx4_1 OPEN Then OFF
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,217
Location
Oregon
Rating - 0%
0   0   0
You can use a virtual output as a timer, then check the status of that virtual output in the EmailAlm program:

[Alarm_ATO] — virtual output
Set OFF
If Output ATO = ON Then ON
Defer 000:30 Then ON

[EmailAlm]
Set OFF
If Output Alarm_ATO = ON Then ON

Just substitute the actual name of your ATO pump output, and adjust the Defer time to the value you choose.

See my tutorial on Virtual Outputs for more details: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-5-virtual-outputs.703/
 
OP
OP
K

kevin_e

Well-Known Member
View Badges
Joined
May 5, 2018
Messages
638
Reaction score
296
Rating - 0%
0   0   0
You can use a virtual output as a timer, then check the status of that virtual output in the EmailAlm program:

[Alarm_ATO] — virtual output
Set OFF
If Output ATO = ON Then ON
Defer 000:30 Then ON

[EmailAlm]
Set OFF
If Output Alarm_ATO = ON Then ON

Just substitute the actual name of your ATO pump output, and adjust the Defer time to the value you choose.

See my tutorial on Virtual Outputs for more details: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-5-virtual-outputs.703/

Thank you. For the virtual output, would I want the "
If Output ATO = ON Then ON" to be
"If Output ATO = ON Then OFF"? I don't want the alarm unless ATO is on for 30 seconds.
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,217
Location
Oregon
Rating - 0%
0   0   0
Thank you. For the virtual output, would I want the "
If Output ATO = ON Then ON" to be
"If Output ATO = ON Then OFF"? I don't want the alarm unless ATO is on for 30 seconds.

Code it exactly like I showed in my post above. The way it works is that the virtual output will try to turn On when the ATO is On. But the Defer delays the virtual output for 30 seconds, so once that clock counts down to zero, if the ATO is still On, the virtual output will finally turn On and that will trigger the alarm. If the ATO does not remain On for the full 30 seconds, the timer is cancelled and the virtual output does not turn On.

See my other tutorial on Apex Timers for more details and examples of how Defer works: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/
 

Creating a strong bulwark: Did you consider floor support for your reef tank?

  • I put a major focus on floor support.

    Votes: 13 50.0%
  • I put minimal focus on floor support.

    Votes: 5 19.2%
  • I put no focus on floor support.

    Votes: 7 26.9%
  • Other.

    Votes: 1 3.8%
Back
Top