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

Thank you @Sral! with this mod I can control the speed only if I'm able to turn ON or OFF the lights channel (which now I can't - even running a macro doesn't work)
My problem is the turn ON sequence. When the pump is OFF the level in the display tank decrease, when I turn it on it put water out of the tank until the return get submerged.
The fast switch OFF is not a problem since I have the power to the pump controlled by a relay (controlled by Reef-Pi)
If I'll be able to control ON/OFF of the light channel with the reistor/capacitor mod it would be perfect...
 
Hi All :)

I have a query about the reef-pi API - Specifically to do with pH readings, The below section, does that show the calibrated or non-calibrated ph reading?
1684133785506.png
Reason I ask is that the home assistant reef-pi add on a few versions before when it was configured to get ph readings from /api/phprobes/1/readings there was an issue with it getting and displaying the latest reading from the database but the reading of the ph from “read” api shows a different value from what’s recorded in the dashboard, so assuming that’s a uncalibrated value?
 
Reason I ask is that the home assistant reef-pi add on a few versions before when it was configured to get ph readings from /api/phprobes/1/readings there was an issue with it getting and displaying the latest reading from the database but the reading of the ph from “read” api shows a different value from what’s recorded in the dashboard, so assuming that’s a uncalibrated value?
Sry, I sadly can’t answer your question. If nobody else can, I would recommend a „simple“ test: calibrate your pH value to something odd, for example:
If your current pH is around 8.3, calibrate your calibration points not to their nominal value, but 1.0 pH higher, if possible.

If the value that is then returned shows 9.3, you know it is the calibrated value. If it continues to show around 8.3 you know it is uncalibrated.
 
Thank you @Sral! with this mod I can control the speed only if I'm able to turn ON or OFF the lights channel (which now I can't - even running a macro doesn't work)
My problem is the turn ON sequence. When the pump is OFF the level in the display tank decrease, when I turn it on it put water out of the tank until the return get submerged.
The fast switch OFF is not a problem since I have the power to the pump controlled by a relay (controlled by Reef-Pi)
If I'll be able to control ON/OFF of the light channel with the reistor/capacitor mod it would be perfect...
Yeah, macros are a bit weird right now.

if you want 100% pump power every time, you could try to use the PCA9685 channel (if you are using a PCA9685 for PWM ?) as an outlet. I believe that is possible.
 
Hello reefers, wait, that didn't sound right. Hello all you reefer heads, no, wait, again, not right. Hi all, I have a question. I am resetting up my reef pi and this time I didn't cheat and buy a pi head for it I am doing it all myself. My question is this, the guide for the water controller is for an optical sensor, how would one hook up a float switch?
 
Hello reefers, wait, that didn't sound right. Hello all you reefer heads, no, wait, again, not right. Hi all, I have a question. I am resetting up my reef pi and this time I didn't cheat and buy a pi head for it I am doing it all myself. My question is this, the guide for the water controller is for an optical sensor, how would one hook up a float switch?

Something like these circuits should do the trick, if the float switch realy acts as a switch:
FloatSwitchSignal_schem.png


The left gives you a positive signal and the right a negative. I'd opt for the right, since it limits the currents flowing from 3V3 irrespective if something goes wrong with the cabling. If the signal has the wrong polarity you can always switch it digitally in ReefPi when defining the connector for it.

I'd test the float switch's resistance in both states with a multimeter first. The resistance in both states needs to be at least a factor of 10 smaller than R for the one state and a factor of 10 larger than R for the other state.
 
Hi All :)

I have a query about the reef-pi API - Specifically to do with pH readings, The below section, does that show the calibrated or non-calibrated ph reading?
1684133785506.png
I ran into this when creating kivy-reef – /read returns the uncalibrated reading. To obtain the calibrated reading, you need to call /api/phprobes/{id}/readings and use the last item in the list (i.e. the most recent reading).
 
Hi
I have been looking at this and have been tempted to try for months and now I'm going to attempt it but the very 1st thing is which pi should I look at getting for this I see there's lots about and there are a few that will work but is there 1 in particular that is worth trying to get hold of ?
 
Hi
I have been looking at this and have been tempted to try for months and now I'm going to attempt it but the very 1st thing is which pi should I look at getting for this I see there's lots about and there are a few that will work but is there 1 in particular that is worth trying to get hold of ?
What do you want to do with it? Just reef-pi? Other stuff as well? Do you want it to have it's own display, or just on your phone?

The cheapest is the pi zero W, mine has been running for years now. The dashboard is maybe a bit slow to load, but other than that it works fine.

The more expensive ones, like 3 , or even 4, work too of course, but if you don't want to use them for anything else at the same time, it's slightly overkill. Maybe the page will load faster though.

look here for up to date availability, Model A has no ethernet, only wifi, if that matters to you, also only as little ram as the pi zero w
 
Last edited:
hi thanks for the reply ill be using it just for the reef-pi testing the ph temps and a few other think when i learn how to use it a bit more i like the idea of it having wifi and linking it to its own screen.
 
hi thanks for the reply ill be using it just for the reef-pi testing the ph temps and a few other think when i learn how to use it a bit more i like the idea of it having wifi and linking it to its own screen.
with it's own display it's probably better to take a 3 or 4, not sure if the 3 model A would be enough, maybe someone else can say
 
Hi All :)

I have a query about the reef-pi API - Specifically to do with pH readings, The below section, does that show the calibrated or non-calibrated ph reading?
1684133785506.png
raw, un-calibrated value
 
I ran into this when creating kivy-reef – /read returns the uncalibrated reading. To obtain the calibrated reading, you need to call /api/phprobes/{id}/readings and use the last item in the list (i.e. the most recent reading).

I need to get back to this.. this is very inconvenient, we can just add an option in the read api to optionally get the calibrated valued. in fact i think we should return calibrated values unless explicitly raw value is requested.
 
That would be awesome if you can do it! As like with the HA addon it has issues trying to read the latest ph from the readings api as compared to /read since it’s just one value listed

Between that and the graph hiccup I mentioned in GitHub when is it likely an update will come out that will fix this stuff? Just asking :)
 
I need to get back to this.. this is very inconvenient, we can just add an option in the read api to optionally get the calibrated valued. in fact i think we should return calibrated values unless explicitly raw value is requested.
Would this change/fix then mean that /read would then by default get the calibrated reading?
 
Would this change/fix then mean that /read would then by default get the calibrated reading?
no. we wont break api, at least not in minor versions,. if we do break api, we'll call this out. I dont intend to break the api, i was thinking of adding an optional calibrated=true parameter in the read api. that will allow the new use case without breaking the old use case
 
no. we wont break api, at least not in minor versions,. if we do break api, we'll call this out. I dont intend to break the api, i was thinking of adding an optional calibrated=true parameter in the read api. that will allow the new use case without breaking the old use case
If you are thinking about publishing a new version of the API, could I put in a request for a way to get the state of an ATO – i.e. whether the float switch/optical level sensor etc. is in contact or not? The 'state' value is available via Prometheus and can be used to display the status of level sensors in Grafana, but I could not see any why to query this via the API.

This is what I have set up in Grafana and it would be great if I could achieve the same in KivyReef via the API:
1685460381282.png
 
Ok trying pi zero wimdows 10 dont see it when pluged in looked everywhere cant find fix edited files and added ssh in boot dont know what else to do
 

TOP 10 Trending Threads

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 21 60.0%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 14 40.0%
Back
Top
Home
Post thread…
Market
What's new