Originally Posted by
TerraReef
I am having issues with getting one of my clients to feed their tank frequently enough. To help remind them to feed I am hoping to use the Apex.
After the tank has not had using any feed mode for 24hours I would like the base_Alarm to sound once every 5minutes. After the tank hasn't been fed for 26hours I would like the base_Alarm to sound continuously.
I am guessing that I would need to use many virtual outlets, mostly due to limitations with the defer statement? I am hoping someone will help me hack this code as it is a bit lengthy at the moment.
Virtual outlet "NotFed16"
Set ON
If FeedA 000 Then OFF
If FeedB 000 Then OFF
If FeedC 000 Then OFF
If FeedD 000 Then OFF
Defer 960:00 Then ON (16 hours)
Virtual outlet "NotFed24"
Set ON
If Outlet NotFed16 = OFF Then OFF
Defer 480:00 Then ON
Virtual outlet "NotFed26"
Set ON
If Outlet NotFed24 = OFF Then OFF
Defer 120:00 Then ON
Virtual outlet "NotFedAlarm"
OSC 004:55/000:05/000:00 Then ON
If Outlet NotFed24 = OFF Then OFF
If Outlet NotFed26 = ON Then ON
base_Alarm
Set OFF
If Time 08:00 to 20:00 Then ON
If DoW S----FS Then OFF
If Time 08:00 to 16:00 Then ON
If Outlet NotFedAlarm = OFF then OFF
If DoW S------ Then OFF
Note the DoW and Time above are to keep the audio alarms from sounding when no one who knows how to feed will be around.
I would also really like to get one single email when the tank hasn't been fed in 24 hours (not one every five minutes) and another email when it hasn't been fed in 26 hours, but I am assuming this would require at least a fifth virtual outlet?
BTW this is an Apex classic, they will be switching to NG sometime this fall.
Bookmarks