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

ColoredRock

Well-Known Member
View Badges
Joined
Aug 9, 2021
Messages
856
Reaction score
976
Location
Murrieta, CA (North of San Diego)
Rating - 0%
0   0   0
Quick question, since now two users have asked for this: a way to use a Raspberry Pi as a Hardware extension for a ReefPi on an x86 platform.

@Ranjib Couldn't we implement a driver that interfaces with the http-API of a ReefPi instance running on that Raspberry Pi ? Slight overkill on the software, but that might be the quickest solution to let a Raspberry Pi function as a hardware extension for an x86 platform.
I think we do that now but its a hack.. I am teaching myself React and in the planing of creating a custom dashboard that will include api calls out to my rasberry-p to activate macros and include iframes that have grafana metrics.
 

ColoredRock

Well-Known Member
View Badges
Joined
Aug 9, 2021
Messages
856
Reaction score
976
Location
Murrieta, CA (North of San Diego)
Rating - 0%
0   0   0
I think we do that now but its a hack.. I am teaching myself React and in the planing of creating a custom dashboard that will include api calls out to my rasberry-p to activate macros and include iframes that have grafana metrics.


API

API V3​

reef-pi provides http json API. Entire UI is powered by the API. API requests needs to be authenticated using session (cookie). He is an example of getting the list of equipment
curl -X POST -c cookie.txt -d '{"user":"reef-pi", "password":"reef-pi"}' http://reef-pi.local/auth/signin
curl -b cookie.txt http://reef-pi.local/api/equipment

Every reef-pi installation ships with its API doc, linked directly from the footer section of the app. A copy of verion 3.x API is accessible from here
 

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,015
Reaction score
943
Location
Germany
Rating - 0%
0   0   0
I think we do that now but its a hack.. I am teaching myself React and in the planing of creating a custom dashboard that will include api calls out to my rasberry-p to activate macros and include iframes that have grafana metrics.
Nice idea !

What I was asking goes a bit deeper, a Reef-Pi to have a driver that basically imports all of another ReefPi's functionality, including temperature, pH, Inlets, Outlets and PWM.
 

eggi55

Community Member
View Badges
Joined
Sep 18, 2022
Messages
63
Reaction score
50
Location
germany
Rating - 0%
0   0   0
Hi
Here again my lighting, which I will convert to ESP32.
As a result, I only need the 24 volt supply
 

Attachments

  • 69EDD00D-6720-4571-A2B4-A164BE3C1E04.jpeg
    69EDD00D-6720-4571-A2B4-A164BE3C1E04.jpeg
    165 KB · Views: 113
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
Quick question, since now two users have asked for this: a way to use a Raspberry Pi as a Hardware extension for a ReefPi on an x86 platform.

@Ranjib Couldn't we implement a driver that interfaces with the http-API of a ReefPi instance running on that Raspberry Pi ? Slight overkill on the software, but that might be the quickest solution to let a Raspberry Pi function as a hardware extension for an x86 platform.
Yes, and that is exactly what i want to do. But we have some additional work to do for this to be a long-term, good solution. The current HAL driver layer was designed exclusively for hardware interfacing, hence only covers connector api. Not ato, temperature, ph like full control loop. This means with the current hal driver it's not possible to have the client reef-pi to have ato, ph, etc, it can only provide outlet, jacks etc.. the control loop still has to run in the mothership reef-pi. This is not a good way to integrate client reef-pi. We want the ato, ph like control loop to be fully running on the client reef-pi and the mothership reef-pi should only be used for UI/clustering requirements.

This is the reason i have decided to take some time and do it properly, i,e. extend the hal layer to accommodate full control loops and then integrate client reef-pi's with those driver interfaces. I'll try my best to have this done in reef-pi 7.0, this year's major release. finger crossed.
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
161
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
Hi All, @Ranjib I'm testing Roberto Buti Ph Board with an ORP probe.
Which is the best way to calibrate this probe? I have 225mV calibration solution; ORP is a single value calbration.
Can I only enter 1 value in the calibration tab?
Like the photo below?
Thank you !
 

Attachments

  • orp.jpg
    orp.jpg
    24.6 KB · Views: 106

cmitcham

New Member
View Badges
Joined
Feb 25, 2019
Messages
13
Reaction score
15
Rating - 0%
0   0   0
1675253954557.png


wow. my 5 cheap amazon ds18b20 temp sensors need some serious calibration work. they are hanging together in a 5 gallon bucket of water with the cheapest amazon heater with temp display, and another cheapest amazon digital temp monitor. the 2 "references" agreed the temp was 93F at the highest point in the above graph. my 5 dallas sensors agree on the temp when they say 68ish, but good grief :)

ice bath and boiling water checks next. anyone have better accuracy and/or precision from these things?

thanks.
 

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,695
Reaction score
1,607
Rating - 0%
0   0   0
1675253954557.png


wow. my 5 cheap amazon ds18b20 temp sensors need some serious calibration work. they are hanging together in a 5 gallon bucket of water with the cheapest amazon heater with temp display, and another cheapest amazon digital temp monitor. the 2 "references" agreed the temp was 93F at the highest point in the above graph. my 5 dallas sensors agree on the temp when they say 68ish, but good grief :)

ice bath and boiling water checks next. anyone have better accuracy and/or precision from these things?

thanks.
Not all fakes are equal, some are better than others. I usually get AZDelivery brand if I order fake chips and stuff from Amazon. Might not exist worldwide, look up which ones are reliable. Mine were actually pretty consistent with each other and within 1°C of the truth. They all didnt last very long though, finally got a sparkfun original now, well see whether that one dies too.

I repotted the fake ones from their metal housing into aquarium silicon inside of a tube, but they always had the legs of the chip package rust away inside of the potting after 12-18 months underwater.
 

eggi55

Community Member
View Badges
Joined
Sep 18, 2022
Messages
63
Reaction score
50
Location
germany
Rating - 0%
0   0   0
Hello
I've had this one in the tank and two out by the pond for about 3 years with no problems
 

Attachments

  • 49336A5B-6784-4D99-950E-CFBFEE49A0DE.png
    49336A5B-6784-4D99-950E-CFBFEE49A0DE.png
    524.3 KB · Views: 106

marekd1

Active Member
View Badges
Joined
Dec 24, 2019
Messages
133
Reaction score
199
Rating - 0%
0   0   0
Ranjib,

I noticed today that thermostat graphing for time in use the x axis has a problem. If you notice January is listed after February. I am not sure if this was addressed in 6. This issue is still on version 5.3.

Screenshot 2023-02-03 084201.png
 
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
Ranjib,

I noticed today that thermostat graphing for time in use the x axis has a problem. If you notice January is listed after February. I am not sure if this was addressed in 6. This issue is still on version 5.3.

Screenshot 2023-02-03 084201.png
Does browser refresh address this ? This was an old bug that I thought we fixed. Seeing it again after long time.
 
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 could not check in time. The date has passed by the time I checked. I will keep my eye on it and keep you posted.
Thank you. I believe it’s fixed in 6.0
 

dkelley

Active Member
View Badges
Joined
Feb 10, 2023
Messages
225
Reaction score
193
Location
Chandler
Rating - 0%
0   0   0
@Ranjib I am brand new to this reef thing. I haven’t even built up my new tank but ran across this as I was looking at the build I was doing and it’s perfect.

Excellent work and you should be proud. I’m in IT so supporting this since 2017, I applaud you.

My question, is everything at the adafruit site up to date. Particular Raspberry Pi, etc.

I’ll be looking to incorporate this into my new build from the start. I appreciate your time on this and hope to contribute to the project.
 
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
@Ranjib I am brand new to this reef thing. I haven’t even built up my new tank but ran across this as I was looking at the build I was doing and it’s perfect.

Excellent work and you should be proud. I’m in IT so supporting this since 2017, I applaud you.

My question, is everything at the adafruit site up to date. Particular Raspberry Pi, etc.

I’ll be looking to incorporate this into my new build from the start. I appreciate your time on this and hope to contribute to the project.
Thank you for the kind words. Everything in the adafruit site is not up to date. It’s been long since we updated the guides. But the overall process is pretty same and the software remained fairly similar . I’ll recommend get started , take it slow and ask us any question you may have. It will be easier if you create a build thread and we can see all relevant things related to your build in one place.
 

Adam_M

Community Member
View Badges
Joined
Aug 14, 2019
Messages
70
Reaction score
47
Rating - 0%
0   0   0
Finally decided to try to build a reef-pi as a fun project. Is there an updated shopping list anywhere? I want to make sure I get the correct pile of basic parts since the budget pack listed on adafruit is out of stock. Thanks!
 

TOP 10 Trending Threads

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

  • 100% live rock + bagged sand

    Votes: 37 27.8%
  • 100% dry rock + 100% live sand

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

    Votes: 29 21.8%
  • 75% live rock, 25% live sand

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

    Votes: 10 7.5%
Back
Top