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

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,384
Location
Coatesville, Indiana
Rating - 0%
0   0   0
What does your reef pi test rig look like?

Top is a pi 2 that's going in a case to display my stats on the wall behind my DT.

Middle is my pi 4 for testing and building software.

Bottom is an old early 64 bit raspberry pi competitor (roseapple pi) that sadly went nowhere.. still useful to play with.

IMG_20200508_115934.jpg
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,847
Reaction score
17,074
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Quick question (I hope). I have a current monitor running off of I2C that is logging data to a spreadsheet. Is there anyway to have this info graphed on the dashboard? Thanks in advance for any help.
If you can make it write the values in a Simple text file then You can wire reef-pi to read that value and expose it as an analog input connector. You can then attach the analog input connector to a ph controller ui and chart/control equipment with that value
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,847
Reaction score
17,074
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Soo as I new person to this, being a perfectionist and wanting to do this right the following happened lol:

.. Learnt and continuing to learn Python and Linux
.. Got myself another test aquarium (partner not happy haha)
.. My home office full of electronics
.. Got to page 35 on this thread (including side threads)

And now you guys are so cruel as to tempt me to get a 3D printer with all the 3D printer talk....
ooopss to late, bought one now!!!
This thread is more of history than a manual, if you want to get started with development then learn go (not python) and/or react and join the slack channel for getting help. If you just want to build/use reef-pi then just refer to the adafruit guides
 

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,535
Reaction score
1,521
Rating - 0%
0   0   0
Is that textfile interface a one way street or can we get the same for outputs, like reef-pi writing the on/off status of equipment to a file?
 

kjerryh85

New Member
View Badges
Joined
Apr 22, 2020
Messages
7
Reaction score
9
Rating - 0%
0   0   0
This thread is more of history than a manual, if you want to get started with development then learn go (not python) and/or react and join the slack channel for getting help. If you just want to build/use reef-pi then just refer to the adafruit guides

The reason I'm reading the thread is because I have found so much interesting ideas that people proposed and others that started fringe projects from this one and each time I learnt from mistakes others have mentioned and gave me an insight into the development and evolution of the Reef-Pi; which is def interesting.

Go and react it is, so will go back to the drawing board and add those to my list.. Thanks.

I definitely want to do more than just do the guides, so will be joining the slack channel.
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
134
Reaction score
102
Location
Italy
Rating - 0%
0   0   0
What does your reef pi test rig look like?

Top is a pi 2 that's going in a case to display my stats on the wall behind my DT.

Middle is my pi 4 for testing and building software.

Bottom is an old early 64 bit raspberry pi competitor (roseapple pi) that sadly went nowhere.. still useful to play with.

IMG_20200508_115934.jpg
What are you using to show the stats on the first rpi? thanks :)
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
134
Reaction score
102
Location
Italy
Rating - 0%
0   0   0
@Ranjib I was looking at the Ph board on Github, the board works fine with Ph and ORP probes, does Reef-Pi accept one Ph and one ORP probe at the same time? (on 2 separate boards) thank you!
 

bobduhgeek

New Member
View Badges
Joined
Apr 23, 2020
Messages
3
Reaction score
0
Rating - 0%
0   0   0
How to fix this?
May 9 11:28:12 raspberrypi systemd[1]: reef-pi.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
 

bobduhgeek

New Member
View Badges
Joined
Apr 23, 2020
Messages
3
Reaction score
0
Rating - 0%
0   0   0
I enabled prometeus in configuration and restarted.
May 9 12:22:22 raspberrypi reef-pi[7618]: panic: descriptor Desc{fqName: "55_top_light_white_light_55", help: "Module:55 top light Item:White light 55", constLabels: {}, variableLabels: []} is invalid: "55_top_light_white_light_55" is not a valid metric name
May 9 12:22:22 raspberrypi reef-pi[7618]: goroutine 37 [running]:
May 9 12:22:22 raspberrypi reef-pi[7618]: github.com/prometheus/client_golang/prometheus.(*Registry).MustRegister(0x28fd440, 0x287b8b8, 0x1, 0x1)
May 9 12:22:22 raspberrypi reef-pi[7618]: #011/Users/ranjib/gocode/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:400 +0x80
May 9 12:22:22 raspberrypi reef-pi[7618]: github.com/prometheus/client_golang/prometheus.MustRegister(...)
May 9 12:22:22 raspberrypi reef-pi[7618]: #011/Users/ranjib/gocode/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:177
May 9 12:22:22 raspberrypi reef-pi[7618]: github.com/prometheus/client_golang/prometheus/promauto.NewGauge(0x0, 0x0, 0x0, 0x0, 0x28a4d80, 0x1b, 0x28f81e0, 0x27, 0x0, 0x28f81e0, ...)
May 9 12:22:22 raspberrypi reef-pi[7618]: #011/Users/ranjib/gocode/pkg/mod/github.com/prometheus/[email protected]/prometheus/promauto/auto.go:165 +0xb0
May 9 12:22:22 raspberrypi reef-pi[7618]: github.com/reef-pi/reef-pi/controller/telemetry.(*telemetry).EmitMetric(0x298a180, 0x28914d0, 0xc, 0x28914e0, 0xe, 0x83b7eda, 0x405263c7)
May 9 12:22:22 raspberrypi reef-pi[7618]: #011/Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/telemetry/stats.go:174 +0x430
May 9 12:22:22 raspberrypi reef-pi[7618]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).syncLight(0x28163f0, 0x28faec0)
May 9 12:22:22 raspberrypi reef-pi[7618]: #011/Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/lighting/light.go:140 +0x1ac
May 9 12:22:22 raspberrypi reef-pi[7618]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).syncLights(0x28163f0)
May 9 12:22:22 raspberrypi reef-pi[7618]: #011/Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/lighting/controller.go:102 +0x58
May 9 12:22:22 raspberrypi reef-pi[7618]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).StartCycle(0x28163f0)
May 9 12:22:22 raspberrypi reef-pi[7618]: #011/Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/lighting/controller.go:52 +0x3c
May 9 12:22:22 raspberrypi reef-pi[7618]: created by github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).Start
May 9 12:22:22 raspberrypi reef-pi[7618]: #011/Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/lighting/controller.go:48 +0x2c
May 9 12:22:22 raspberrypi systemd[1]: reef-pi.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 9 12:22:22 raspberrypi systemd[1]: reef-pi.service: Failed with result 'exit-code'.
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,384
Location
Coatesville, Indiana
Rating - 0%
0   0   0
What are you using to show the stats on the first rpi? thanks :)

Grafana / Prometheus. I have it running on my Synology DS918+ NAS. Im also pulling in weather from Openweather map to get outside air temp / humidity. (not showing on this dashboard)

All of that is displayed in browser, maximized and kiosk mode. I'm still working on trying to get it working better, as the browser tends to lock up randomly. May move to 64 bit ubuntu on the PI4 for this.
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
134
Reaction score
102
Location
Italy
Rating - 0%
0   0   0
@Ranjib sorry for the double message, I think I've figured out the problem with ATO alert. Running ATO without alert works fine. Then I've configured the e-mail alert and run again the ATO with a timeout of 50 second.
The first time it works perfectly, after 50 second the ATO shut off and the e-mail was sent. But if I enable again the ATO it won't work anymore, the system sends me the alert email just after the sensor has triggered. The only way to make it work again is a rebbot of the Rpi. It was designed to work like that? Thank you again! :)
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
134
Reaction score
102
Location
Italy
Rating - 0%
0   0   0
Grafana / Prometheus. I have it running on my Synology DS918+ NAS. Im also pulling in weather from Openweather map to get outside air temp / humidity. (not showing on this dashboard)

All of that is displayed in browser, maximized and kiosk mode. I'm still working on trying to get it working better, as the browser tends to lock up randomly. May move to 64 bit ubuntu on the PI4 for this.
Thank you very much! I'm now trying Prometheus on my VM server, have you followed a guide to setup everything?
P.S. I've Prometheus up and running, i've a problem setting up the target to reach my reef-pi. Which is the right syntax? Thank you
 
Last edited:
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,847
Reaction score
17,074
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib sorry for the double message, I think I've figured out the problem with ATO alert. Running ATO without alert works fine. Then I've configured the e-mail alert and run again the ATO with a timeout of 50 second.
The first time it works perfectly, after 50 second the ATO shut off and the e-mail was sent. But if I enable again the ATO it won't work anymore, the system sends me the alert email just after the sensor has triggered. The only way to make it work again is a rebbot of the Rpi. It was designed to work like that? Thank you again! :)
This was a bug that I fixed recently. It will be fixed in new release, please help us testing it
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,847
Reaction score
17,074
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Thank you very much! I'm now trying Prometheus on my VM server, have you followed a guide to setup everything?
P.S. I've Prometheus up and running, i've a problem setting up the target to reach my reef-pi. Which is the right syntax? Thank you
Enable Prometheus setting in reef-pi and reload it. After that reef-pi will expose metrics under /x/metric endpoint. Once this is done , edit Prometheus configuration to point reef-pi ip and /x/metrics endpoint
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,847
Reaction score
17,074
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib I was looking at the Ph board on Github, the board works fine with Ph and ORP probes, does Reef-Pi accept one Ph and one ORP probe at the same time? (on 2 separate boards) thank you!
Should be . I have never tested it. You have to model the orp probe as ph , for the time being
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
134
Reaction score
102
Location
Italy
Rating - 0%
0   0   0
Enable Prometheus setting in reef-pi and reload it. After that reef-pi will expose metrics under /x/metric endpoint. Once this is done , edit Prometheus configuration to point reef-pi ip and /x/metrics endpoint
Thanks, I was having trouble with config file of Prometheus but now it works :D now I have to try Grafana :)
 
Back
Top