reef-pi :: An opensource reef tank controller based on Raspberry Pi.

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
I'll cross check. I cant recall any changes that would break this functionality.
Did you ever get a chance to verify this? My ato reservoir ran dry the other night and the pump ran for over an hour with no alerts.
Not a big deal as the Aqualifter makes plenty of noise when it runs dry.
 

rcpalmer1

Well-Known Member
View Badges
Joined
Apr 12, 2017
Messages
844
Reaction score
665
Location
Central Florida
Rating - 0%
0   0   0
I have been driving my two jebao pp4 wave pumps with the 0-5vdc control signal from my reef-pi pwm board. No filters needed, just straight off the pwm. I use the lighting subsection of the program for now. My jebao return pump can not be controlled this way, even though they use the same interface plug.
It seems like the reefpi can control pumps. I just have to wait until someone creates a UI that can cycle them on and off.
 

Selderf

New Member
View Badges
Joined
Jan 21, 2019
Messages
1
Reaction score
10
Rating - 0%
0   0   0
Hello,

Sorry for my English, but I just wanted to thank you for your work because I installed Reef Pi for two weeks and I'm very happy with the result. I have 8 controlled sockets by a relay, two temperature probes and a mechanical level sensor for the ATO. I also soldered the board we see here for the PH. Finally, I added a touch screen.

A small detail: I am French, I do not read very much English and I had never touched a Raspberry nor welded a resistance of my life. And yet, I succeeded!
 

Diamond1

Valuable Member
View Badges
Joined
Oct 17, 2013
Messages
1,368
Reaction score
1,914
Location
Cleveland Ohio
Rating - 0%
0   0   0
Hello,

Sorry for my English, but I just wanted to thank you for your work because I installed Reef Pi for two weeks and I'm very happy with the result. I have 8 controlled sockets by a relay, two temperature probes and a mechanical level sensor for the ATO. I also soldered the board we see here for the PH. Finally, I added a touch screen.

A small detail: I am French, I do not read very much English and I had never touched a Raspberry nor welded a resistance of my life. And yet, I succeeded!


Welcome to reef2reef and congratulations on your reef-pi build. We would love to see some pictures of your build.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
Hello,

Sorry for my English, but I just wanted to thank you for your work because I installed Reef Pi for two weeks and I'm very happy with the result. I have 8 controlled sockets by a relay, two temperature probes and a mechanical level sensor for the ATO. I also soldered the board we see here for the PH. Finally, I added a touch screen.

A small detail: I am French, I do not read very much English and I had never touched a Raspberry nor welded a resistance of my life. And yet, I succeeded!

Congrats! Feels great doesn’t it :). But just the fact that you tackled surface mount soldering with 0 experience gets big kudos in my book!
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Did you ever get a chance to verify this? My ato reservoir ran dry the other night and the pump ran for over an hour with no alerts.
Not a big deal as the Aqualifter makes plenty of noise when it runs dry.
There’s a bug in the ato alert code. I fixed it two days back, will cut 2.2 tonight. Sorry for the trouble :-( .
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hello,

Sorry for my English, but I just wanted to thank you for your work because I installed Reef Pi for two weeks and I'm very happy with the result. I have 8 controlled sockets by a relay, two temperature probes and a mechanical level sensor for the ATO. I also soldered the board we see here for the PH. Finally, I added a touch screen.

A small detail: I am French, I do not read very much English and I had never touched a Raspberry nor welded a resistance of my life. And yet, I succeeded!
That’s awesome :) . Bonjour and Welcome to reef2reef . We have several French developers and users here .
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib my biggest fear is a runaway doser. I have been dosing from one bottle to the other for about a week now with no issue and officially moved over to dosing my reef last night. But it’s still in the back of my mind that a glitch will dump a bottle of alk in my tank. Any plans to put alerts and maybe an auto disable on the alert similar to what you are doing with the ATO?
Adding alerting should not be that hard, but since doser are based on schedule not by some sensor output (like ph) , I don’t know if it’s useful. As and when we allow dosing based on ph or something else , I can see the usefulness of this
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,290
Location
lost
Rating - 0%
0   0   0
@Ranjib my biggest fear is a runaway doser. I have been dosing from one bottle to the other for about a week now with no issue and officially moved over to dosing my reef last night. But it’s still in the back of my mind that a glitch will dump a bottle of alk in my tank. Any plans to put alerts and maybe an auto disable on the alert similar to what you are doing with the ATO?
@b4tn
Make sure your Dosing container never has enough in it to crash your tank. Plug the dosing pump into a Pi-controlled outlet. Set that outlet on a timer to start before dosing is to begin and stop when dosing is done..

this way if the dosing procedure fails running the outlet will have the pumps power turned off..
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
@b4tn
Make sure your Dosing container never has enough in it to crash your tank. Plug the dosing pump into a Pi-controlled outlet. Set that outlet on a timer to start before dosing is to begin and stop when dosing is done..

this way if the dosing procedure fails running the outlet will have the pumps power turned off..
As with heaters failsafes are always a good thing
 
Last edited:

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
@b4tn
Make sure your Dosing container never has enough in it to crash your tank. Plug the dosing pump into a Pi-controlled outlet. Set that outlet on a timer to start before dosing is to begin and stop when dosing is done..

this way if the dosing procedure fails running the outlet will have the pumps power turned off..

I had thought about using a timer actually. Problem is my dosing pumps are incorporated into reefpi. I guess one of the benifits of building things separate instead of incorporating it all together lol
 

crusso1993

7500 Club Member
View Badges
Joined
Oct 21, 2018
Messages
8,671
Reaction score
44,651
Location
SW, FL, USA
Rating - 0%
0   0   0
I had thought about using a timer actually. Problem is my dosing pumps are incorporated into reefpi. I guess one of the benifits of building things separate instead of incorporating it all together lol

It may make very good sense to pick up another SPi and set it up to only control your dosing. I do believe there are a number of other users following this method.
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
I threw this together last night since I had an out of memory issue, I assume restarting the reef-pi service would reset the memory usage. It still needs some cleanup and some additional error checking to verify that the service started up. The basic idea is you drop this in cron.daily (/etc/cron.daily) which is executed at 3am your local time, if the available free memory is less than 150M then it will restart the reef-pi service. Outputs to a file in your directory the information for the free command and also if it restarts the service. Update the file with your path to your home directory.

Code:
#!/bin/bash
/bin/date > /home/bishop/pi-memory.txt
/usr/bin/free >> /home/bishop/pi-memory.txt
freemem=`/usr/bin/awk '{print $7}' /home/bishop/pi-memory.txt`
if  (( $freemem < 150000 ))
then
    /bin/echo $freemem >> /home/bishop/pi-memory.txt
    /bin/echo "restarting reef-pi" >> /home/bishop/pi-memory.txt
    /bin/systemctl restart reef-pi.service
else
   /bin/echo "not less that 150M" >> /home/bishop/pi-memory.txt
fi

If anyone has any questions or something that would work better just let me know, just wanted something to check things overnight and reset if necessary, no warranties as usual ;)
 

crusso1993

7500 Club Member
View Badges
Joined
Oct 21, 2018
Messages
8,671
Reaction score
44,651
Location
SW, FL, USA
Rating - 0%
0   0   0
I threw this together last night since I had an out of memory issue, I assume restarting the reef-pi service would reset the memory usage. It still needs some cleanup and some additional error checking to verify that the service started up. The basic idea is you drop this in cron.daily (/etc/cron.daily) which is executed at 3am your local time, if the available free memory is less than 150M then it will restart the reef-pi service. Outputs to a file in your directory the information for the free command and also if it restarts the service. Update the file with your path to your home directory.

Code:
#!/bin/bash
/bin/date > /home/bishop/pi-memory.txt
/usr/bin/free >> /home/bishop/pi-memory.txt
freemem=`/usr/bin/awk '{print $7}' /home/bishop/pi-memory.txt`
if  (( $freemem < 150000 ))
then
    /bin/echo $freemem >> /home/bishop/pi-memory.txt
    /bin/echo "restarting reef-pi" >> /home/bishop/pi-memory.txt
    /bin/systemctl restart reef-pi.service
else
   /bin/echo "not less that 150M" >> /home/bishop/pi-memory.txt
fi

If anyone has any questions or something that would work better just let me know, just wanted something to check things overnight and reset if necessary, no warranties as usual ;)

Saaay whaaaaat? No warranty! Or you could just go the route of what so many manufacturers/suppliers appear to be going in this hobby; offer a warranty that's useless. There's nothing wrong with our product but, rather, it's the way you used it or didn't use it or maintained it or didn't maintain it or looked at it funny... ;);)

Thanks for providing all the help you have been providing lately!
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
Saaay whaaaaat? No warranty! Or you could just go the route of what so many manufacturers/suppliers appear to be going in this hobby; offer a warranty that's useless. There's nothing wrong with our product but, rather, it's the way you used it or didn't use it or maintained it or didn't maintain it or looked at it funny... ;);)

Thanks for providing all the help you have been providing lately!

Yeah unfortunately we live in a pretty litigious society these days, like the warnings on lawn mowers to not place your hands or feet under the mower when its running or use it as a hedge trimmer....:)
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,077
Location
Gambrills
Rating - 0%
0   0   0
Been ramping up, but no unload this time. The CPU and memory readings, are those percentages?
Screenshot_20190121-212919_Chrome%20Beta.jpeg
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I threw this together last night since I had an out of memory issue, I assume restarting the reef-pi service would reset the memory usage. It still needs some cleanup and some additional error checking to verify that the service started up. The basic idea is you drop this in cron.daily (/etc/cron.daily) which is executed at 3am your local time, if the available free memory is less than 150M then it will restart the reef-pi service. Outputs to a file in your directory the information for the free command and also if it restarts the service. Update the file with your path to your home directory.

Code:
#!/bin/bash
/bin/date > /home/bishop/pi-memory.txt
/usr/bin/free >> /home/bishop/pi-memory.txt
freemem=`/usr/bin/awk '{print $7}' /home/bishop/pi-memory.txt`
if  (( $freemem < 150000 ))
then
    /bin/echo $freemem >> /home/bishop/pi-memory.txt
    /bin/echo "restarting reef-pi" >> /home/bishop/pi-memory.txt
    /bin/systemctl restart reef-pi.service
else
   /bin/echo "not less that 150M" >> /home/bishop/pi-memory.txt
fi

If anyone has any questions or something that would work better just let me know, just wanted something to check things overnight and reset if necessary, no warranties as usual ;)
this is not normal, or we should not be treating this normal. if reef-pi is being oomed (out of memory - killed) then its a serious bug and should be fixed asap. From your last stack trace what I could detect is theres vcgencmd command thats not been able to fork due to out of memory. That command is used to get cpu temperature. We used to show this data (cpu temperature) in past versions of reef-pi, i removed it from ui in 2.0. its still available via /api/info (which is the summary section in reef-pi). I could just remove the code and call it a day, but i think theres something else thats causing this effect.
Anyway, in case reef-pi is out of memory and get killed , systemd will restart reef-pi automatically, this is configured during install:
https://github.com/reef-pi/reef-pi/blob/master/build/reef-pi.service#L7
i have tried to reproduce this , but not been able to. If anyone else experiencing this, do let me know. Stability/reliability are of utmost importance to this project. I have happy to stop new feature work to get those gaps addressed to our desired level.
I'll keep a watch on this. Remember if this is happening, reef-pi will be automatically restarted , and you should see a different uptime (running since ... information in the summary section) in your reef-pi UI
 
Back
Top