Apex auto feeder programming help

mmorrison55

Valuable Member
View Badges
Joined
Jun 3, 2024
Messages
1,495
Reaction score
1,166
Location
Tampa
Rating - 100%
1   0   0
Would the below work for setting my auto feeder outlet to turn on and run 4 times a day (@ 10-1-4-7) for 20 seconds each run?

Fallback OFF
OSC 000:00/000:20/179:40 Then ON
If Time 19:01 to 09:59 Then OFF
 

edsbeaker

Grandma Has A Reef Obsession
View Badges
Joined
Dec 11, 2013
Messages
3,585
Reaction score
14,181
Location
Westfield, Indiana
Rating - 0%
0   0   0
Would the below work for setting my auto feeder outlet to turn on and run 4 times a day (@ 10-1-4-7) for 20 seconds each run?

Fallback OFF
OSC 000:00/000:20/179:40 Then ON
If Time 19:01 to 09:59 Then OFF
I think that would turn it on at 3 AM, 6 AM, 9 AM, 12 PM, 3 PM, 6 PM, and 9 PM. With your OFF command, actual feeding would be at 12 PM, 3 PM and 6 PM

This might work, but not entirely sure. Hoping someone can confirm or correct it!

Fallback OFF
OSC 060:000/000:20/119:40 Then ON
If Time 19:01 to 09:59 Then OFF
 
Last edited:
OP
OP
mmorrison55

mmorrison55

Valuable Member
View Badges
Joined
Jun 3, 2024
Messages
1,495
Reaction score
1,166
Location
Tampa
Rating - 100%
1   0   0
This was from the avast plank manual, and I was trying to modify it to run less often and fewer times than their example, but I don’t really have much experience with writing code for apex and none with the OSC command.

IMG_0142.jpeg
 

edsbeaker

Grandma Has A Reef Obsession
View Badges
Joined
Dec 11, 2013
Messages
3,585
Reaction score
14,181
Location
Westfield, Indiana
Rating - 0%
0   0   0
I still think this is what you are looking for if you want to feed at 10, 1, 4 and 7.

Fallback OFF
OSC 060:000/000:20/119:40 Then ON
If Time 19:01 to 09:59 Then OFF

The 060:000 at the beginnng is telling the feeder to start the cycle at 60 minutes after midnight. You are asking the feeder to turn on every three hours, (180 minutes), so when you add up the total number of minutes and seconds in all three sections, they must equal 180 minutes.

60 minutes + 20 seconds + 119 minutes and 40 seconds = 180 minutes (3 hours)

060:000/ + 000:20/ +. 119:40 Then ON. = 180 minutes

If Time 19:01 to 09:59 Then OFF will prevent the feeder from turning on at the 1 AM, 4 AM, 7 AM, and 10 PM scheduled feeding.

Try it and see if it works.
 
OP
OP
mmorrison55

mmorrison55

Valuable Member
View Badges
Joined
Jun 3, 2024
Messages
1,495
Reaction score
1,166
Location
Tampa
Rating - 100%
1   0   0
Thanks, I’ll monitor the outlet today and see when it turns on and off. (I don’t actually have the feeder hooked up yet, but plan to do so as soon as I get this worked out.
 
OP
OP
mmorrison55

mmorrison55

Valuable Member
View Badges
Joined
Jun 3, 2024
Messages
1,495
Reaction score
1,166
Location
Tampa
Rating - 100%
1   0   0
This may be a case where more than one way to accomplish the same thing. It’s possible both are right.

While this calculator is not doing exactly what I want to accomplish with the feeder as it’s for a auto doser, the code part kind of matches what I had going. Where they don’t use anything in the 1st set of 000:00/ and the second set is for the “dose” or in my case the length of time, and the 3rd is the interval. And the second and third groups total to the 180. Minutes.

IMG_0143.png
 
OP
OP
mmorrison55

mmorrison55

Valuable Member
View Badges
Joined
Jun 3, 2024
Messages
1,495
Reaction score
1,166
Location
Tampa
Rating - 100%
1   0   0
Well, what I had didn’t work.

Fallback OFF
OSC 000:00/000:20/179:40 Then ON
If Time 19:01 to 09:59 Then OFF

I set an alarm to watch my app and eb832 and it never powered on when I expected.
 
OP
OP
mmorrison55

mmorrison55

Valuable Member
View Badges
Joined
Jun 3, 2024
Messages
1,495
Reaction score
1,166
Location
Tampa
Rating - 100%
1   0   0
I can’t edit that post, but don’t use it if anyone has been watching… the feeder will not turn off.

I think it’s the

if time 09:00 to 18:00 then on

that is the problem. I have it commented out now, and waiting for next run to see if it works
 
OP
OP
mmorrison55

mmorrison55

Valuable Member
View Badges
Joined
Jun 3, 2024
Messages
1,495
Reaction score
1,166
Location
Tampa
Rating - 100%
1   0   0
For anyone interested… that was exactly issue. It now works using the below. Feeds for 20 seconds every 3 hours between the hours of 9am and 6pm. So @ 9-12-3-6

Fallback OFF
Set OFF
OSC 000:00/000:20/179:40 Then ON
If Time 00:00 to 08:59 Then OFF
If Time 18:01 to 23:59 Then OFF

I think the Set Off is also redundant and not needed, but I left it in because it didn’t cause any issue with it.
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 34 27.9%
  • 100% dry rock + 100% live sand

    Votes: 42 34.4%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 27 22.1%
  • 75% live rock, 25% live sand

    Votes: 11 9.0%
  • 25% live rock, 75% live sand

    Votes: 8 6.6%
Back
Top