Results 1 to 8 of 8

Thread: Feeding reminder code check

  1. #1
    Frequent Visitor
    Join Date
    Nov 2013
    Location
    Wilmington, DE
    Posts
    163

    Feeding reminder code check

    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.

  2. #2
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    For some reason the forum is bugging out so it wont let me copy your code to fix, but these are the bullet points.

    1. The 24 and 26 VO also need to be turned off by the feed statements

    2. Your DOW and time suppressing needs to be separated into virtual outlets.

    Sent from my SM-G965U using Tapatalk

  3. #3
    Aquaphile
    Join Date
    Apr 2018
    Location
    California, USA
    Posts
    70
    Quote Originally Posted by TerraReef View Post
    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.
    Is there a way to get a AFS to work for your client or is the feeding too complicated?

  4. #4
    Frequent Visitor
    Join Date
    Nov 2013
    Location
    Wilmington, DE
    Posts
    163
    zombie I am not sure why 24 and 26 VO need "If Feed" in them. These outlets only go on when NotFed16 is on and none of them have a Defer off. Shouldn't NotFed16 NotFed24 and NotFed26 all go off a second after feed mode is used?

    I think the DOW and time will do what I want and I don't see a reason why they would need to be separated. Please correct me if I am wrong.
    Mon-Thu 8:00am - 8:00pm it is ok for alarms to sound.
    Fri and Sat I don't want alarms after 4:00pm
    Sunday I don't want any alarms.
    I can imagine certain schedules wouldn't be doable this way with out multiple outlets(like if you only wanted mornings one day and only wanted afternoons another day), but I think with this schedule it will work.

    MrT I have always thought of AFS as snack machines versus staple meal feeders. I can't trust them to feed enough consistently and don't think of 100% pellet foods as a good rounded diet.(on top of this I have found that tanks fed this way often have related issues that show up quickly in ICP and make a mess of the chemistry when this is done for too long)

  5. #5
    Frequent Visitor
    Join Date
    Nov 2013
    Location
    Wilmington, DE
    Posts
    163
    My wife says I may annoy patients at this account and I shouldn't have the Apex make noise, so I'm going to start by having it email me, so I can call the office and remind them to feed. Then I will introduce the noise if they still can't get on a routine. Then I will have the Radions switch to only showing red.

    One way or another I'm going to make sure these fish are fed properly.

  6. #6
    Frequent Visitor
    Join Date
    Nov 2013
    Location
    Wilmington, DE
    Posts
    163
    zombie can you double check?

  7. #7
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Double check what?
    Quote Originally Posted by TerraReef View Post
    zombie can you double check?
    Sent from my SM-G965U using Tapatalk

  8. #8
    Frequent Visitor
    Join Date
    Nov 2013
    Location
    Wilmington, DE
    Posts
    163
    I didn't understand post #2, so there are questions/clarification in Post #4.

Similar Threads

  1. review my code (push button feeding)
    By TxReefGuy in forum Misc Apex Usage & Programming
    Replies: 20
    Last Post: 01-26-2018, 11:26
  2. Replies: 5
    Last Post: 01-07-2018, 15:36
  3. Please check my code...
    By alexkharden in forum Misc Apex Usage & Programming
    Replies: 4
    Last Post: 02-22-2016, 11:54
  4. Feeding Reminder
    By Aaron0818 in forum Misc Apex Usage & Programming
    Replies: 4
    Last Post: 08-11-2014, 04:48
  5. Question: Feeding code -
    By skewlboy in forum Misc Apex Usage & Programming
    Replies: 8
    Last Post: 11-04-2013, 21:25

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •