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

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.
 
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.
 
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!
 
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.
 
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!
 
Are physical buttons a thing now?
Do I have to use buttons or can I use switches to start macros?

Tomorrow the soldering begins... facing stage 1 :cool:
 
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 :-( .
 
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 .
 
@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
 
@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..
 
@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
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
 
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.
 
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 ;)
 
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!
 
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....:)
 
Been ramping up, but no unload this time. The CPU and memory readings, are those percentages?
Screenshot_20190121-212919_Chrome%20Beta.jpeg
 
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
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top