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

Mikeneedsahobby

Well-Known Member
View Badges
Joined
Sep 16, 2018
Messages
516
Reaction score
922
Rating - 0%
0   0   0
I’ve been busy with the ph sensor support , particularly calibration for the ph board. Last week I got little distracted , with my old kessil controller build failing repeatedly . That made me work on the Prometheus integration. For the uninitiated , Prometheus is an open source metrics system that lets you store and query metrics. It’s one of the most popular and blessed by cncf (cloud native foundation ) project which makes it kind of de facto standard in software industry . In short it has a very nice ecosystem that we can leverage. So, I setup Prometheus server (to store and query metrics ), grafana ( to visualize those metrics ) and some coding work to expose reef-pi metrics (stuff like temperature , ph etc) , go runtime metrics (reef-pi software internals) and pi’s system metrics (Linux specific). The result was outstanding, now I have fully customizable (chart types, and metrics storage duration ) dashboard /metrics system. Very happy with the results, here are some samples

Reeftank charts
CBA97A57-6D39-4ABB-A3D8-C50D8332445C.png


Go runtime metrics (how the controller software itself doing)
D7449CAD-E598-4175-A5D9-947315330CF0.png

Pi metrics (Linux )
DC040A86-B549-426E-82C6-92720BF87CD5.png

And this is just 1% of what’s available out of the box

D73A7D40-7A84-45C2-8C6C-61A6C99BB5B5.png



Albeit this requires some additional setup/ hardware etc ... but for those who can do it, it opens up a host of possibilities. Due to limited hardware capabilities in pi and not having any cloud solution , reef-pi is limited and conservative about what charting capabilities it can offer. Those features will always be there, to preserve a minimal but effective out of the box user friendly experience , but this now opens up the metrics world for those who can set it up.

This is like watching an Italian movie. You have no idea what the characters are saying but the nudie scenes make you glad you watched the whole thing.
 

crusso1993

7500 Club Member
View Badges
Joined
Oct 21, 2018
Messages
8,671
Reaction score
44,651
Location
SW, FL, USA
Rating - 0%
0   0   0
This is like watching an Italian movie. You have no idea what the characters are saying but the nudie scenes make you glad you watched the whole thing.

+1 - wonderfully stated!
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Sorry if I missed it, but is the pH probe ready for testing?
No not yet. We have finished the driver development and its in master now, so you can hook up the probe and see readings in milivolts. I am working on the calibration support, which will add the logic to convert those milivolt numbers in ph values.. I'll keep you posted. But this is exactly what I am working on now,, its just I am also getting distracted with 2.0x bugs and some build issues sporadically..
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,123
Rating - 0%
0   0   0
Just trying to understand which UI are you referring too, being tied to having to use winblows for development, ugh *shudder*. I'm sure ots just me but these days I'm only using Windows when someone is paying me to use it, but interested to understand why it's the only option.

:)
Window is definitely not required for UI development.

The web UI for reef-pi is written with ReactJS and can be developed on Windows, as well as Linux ad MacOS. A lot of the back end bits were incompatible with Windows, but Go makes it feasible to implement OS-specific implementations pretty easily.
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
Window is definitely not required for UI development.

The web UI for reef-pi is written with ReactJS and can be developed on Windows, as well as Linux ad MacOS. A lot of the back end bits were incompatible with Windows, but Go makes it feasible to implement OS-specific implementations pretty easily.

That's what I thought but @Zekth comments threw me off, probably a joke in there etc and it flew right over my head, thanks.

:)
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,077
Location
Gambrills
Rating - 0%
0   0   0
No not yet. We have finished the driver development and its in master now, so you can hook up the probe and see readings in milivolts. I am working on the calibration support, which will add the logic to convert those milivolt numbers in ph values.. I'll keep you posted. But this is exactly what I am working on now,, its just I am also getting distracted with 2.0x bugs and some build issues sporadically..

Thanks for all the work on this!
 

Zekth

Community Member
View Badges
Joined
Mar 18, 2016
Messages
57
Reaction score
92
Location
France
Rating - 0%
0   0   0
That's what I thought but @Zekth comments threw me off, probably a joke in there etc and it flew right over my head, thanks.

:)

Mmmm ? don't get it. For example i used to not be able to display some graphs on my windows dev env due to unavailable metrics. That's why i said that.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0

Mikeneedsahobby

Well-Known Member
View Badges
Joined
Sep 16, 2018
Messages
516
Reaction score
922
Rating - 0%
0   0   0

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
I just finished adding them. I have 4 sensors total in parallel now using the standard resistor. So far no issues. I would have paid more for the drok sensors just for the cable quality and length! These sensors are solid. I now have a display temp probe, sump temp, sump ambient, and house ambient.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
I have a question. What is the best way to handle water changes and reef-pi? Should you just unplug it or what?

I built two water change macros. One to turn off everything I want off and another to turn it all back on in the order I want it back on. You could also just turn it off with the macro and have it all come back on after a certain time but I wanted to turn it on when I was done. Not wait for a timer
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
Is there a tutorial on making a macro? This is a challenge area for me.

I can take some screen shots of what I have in mine, but they are pretty simple. Turn temp monitoring off, turn filters off, turn heaters off, etc. Then I have a corresponding macoe that turns everything back on. I also have one with a timer to turn the filter off for feeding, then it automatically turns the filter on after 5min.
 
Back
Top