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

Free Phyto Promo
Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed
Shop Now Code: FREEPHYTO

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
161
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
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...
 

iamdan

Community Member
View Badges
Joined
Jul 1, 2022
Messages
89
Reaction score
67
Location
Western Australia
Rating - 0%
0   0   0
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?
 

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,015
Reaction score
943
Location
Germany
Rating - 0%
0   0   0
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.
 

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,015
Reaction score
943
Location
Germany
Rating - 0%
0   0   0
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.
 

Coolhack

Community Member
View Badges
Joined
Jul 21, 2019
Messages
80
Reaction score
50
Location
Anywhere
Rating - 0%
0   0   0
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?
 

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,015
Reaction score
943
Location
Germany
Rating - 0%
0   0   0
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.
 

NXE

Active Member
View Badges
Joined
Apr 8, 2020
Messages
109
Reaction score
201
Location
London, England
Rating - 0%
0   0   0
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).
 

Cheza

New Member
View Badges
Joined
Sep 7, 2022
Messages
3
Reaction score
2
Location
Southampton
Rating - 0%
0   0   0
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 ?
 

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,695
Reaction score
1,607
Rating - 0%
0   0   0
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:

Cheza

New Member
View Badges
Joined
Sep 7, 2022
Messages
3
Reaction score
2
Location
Southampton
Rating - 0%
0   0   0
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.
 

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,695
Reaction score
1,607
Rating - 0%
0   0   0
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
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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.
 

iamdan

Community Member
View Badges
Joined
Jul 1, 2022
Messages
89
Reaction score
67
Location
Western Australia
Rating - 0%
0   0   0
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 :)
 

iamdan

Community Member
View Badges
Joined
Jul 1, 2022
Messages
89
Reaction score
67
Location
Western Australia
Rating - 0%
0   0   0
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?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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
 

NXE

Active Member
View Badges
Joined
Apr 8, 2020
Messages
109
Reaction score
201
Location
London, England
Rating - 0%
0   0   0
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
 

reefwreck

Active Member
View Badges
Joined
Oct 12, 2017
Messages
227
Reaction score
63
Rating - 0%
0   0   0
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

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

  • 100% live rock + bagged sand

    Votes: 38 27.3%
  • 100% dry rock + 100% live sand

    Votes: 47 33.8%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 30 21.6%
  • 75% live rock, 25% live sand

    Votes: 14 10.1%
  • 25% live rock, 75% live sand

    Votes: 10 7.2%
Back
Top