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

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
Fantastic - I`ve got a couple of bits on order but before I share details i want to test it in my DT and QT. It could be a total flake so i'd rather do some initial testing before opening it up to peer review (like a proper scientific study).
reef-pi 3.3 onwards we have file driver which can be used to prototype /test any new driver. Just write your sensor value into a file and reef-pi will read that file and treat the value as analog input which can be hooked up to a ph module for controlling equipment etc. for example one can use circuit python based adafruit gas sensor code to maintain a file and write the sensor value there and then configure reef-pi with that file. This will allow controlling a air purifier with gas sensor data using reef-pi
 
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
So I have just joined the Reef-Pi revolution and starting the project.. I was please wondering that if the components listed and guides would work on Raspberry Pi 4 B or only on the Pi 3 and zero? thank you
I’m not using pi 4 ,but it should work, I am not aware of many folks who are using pi4. Do let us know how your build goes . Thank you
 
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
Regarding the lights you have to add a jack first then add the the jack information in the lighting tab --- i did that ,it`s a dshboard bug i think


Temperature probes can be picky, sounds like you have tried a couple of things, ------ trust me , i tried everything but revert to a older version of reef-pi , they don`t work , on arduino they work fine . could i have destroyed my one wire pin ? OMG haven`t thought of that i will try to find another pi and try it out .
You can use any other gpio pin as one wire pin. It’s configurable using dtoverlay (/boot/config.txt). I am running several sensor for over three years now. I do see one in two month sharp spikes , but otherwise they have been stable, I lost one (or 2?) due to rust. I never run more than three sensors, and most of my tank builds are using two sensor,
 
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
Yes, not working.. never has worked for me. Camera doesn't work either. Never had it working.
I went through the lighting module and charting, you are right during 3.0 changes we shipped lighting module without dashboard support due to all the new profiles and the time /design required to support all the dashboard. I have started working on it, I think we’ll have support for couple of profile types in the next release and then take it from there.
 
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
u can do everithing vith them in the ligts tab but can`t display them in the dashboard
Yup. This was skipped due to time /effort issues . I have since overlooked it as I was using the grafana dashboard for light charts, I’ll get it fixed/shipped soonish
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,385
Location
Coatesville, Indiana
Rating - 0%
0   0   0
I’m not using pi 4 ,but it should work, I am not aware of many folks who are using pi4. Do let us know how your build goes . Thank you
I have one to build on and test with. My DT reefpi is on a pi 3 though.

I'm getting ready to build one for my QT and my stepsons freshwater tank, probably run them on pi zero w.
 

USCGReefer

Community Member
View Badges
Joined
Jul 16, 2013
Messages
52
Reaction score
14
Location
Norfolk, VA
Rating - 0%
0   0   0
Hi,
So I finally got me a RasPi and want to start getting it setup with my tanks. I have two tanks in separate rooms. I was looking at the guide for autodosing and had some questions. I would like to use the raspberry pi as a "control unit" and make wireless dosing pumps for each tank. Is that essentially what the guide is doing or is there a different way of doing this? Eventually I would like to do the same thing for sensors as well. Is it possible to do it this way or am I going to have to have two reef-pi's(one for each tank)

Thanks.
 

narkotix

Community Member
View Badges
Joined
Sep 3, 2018
Messages
25
Reaction score
21
Rating - 0%
0   0   0
reef-pi 3.3 onwards we have file driver which can be used to prototype /test any new driver. Just write your sensor value into a file and reef-pi will read that file and treat the value as analog input which can be hooked up to a ph module for controlling equipment etc. for example one can use circuit python based adafruit gas sensor code to maintain a file and write the sensor value there and then configure reef-pi with that file. This will allow controlling a air purifier with gas sensor data using reef-pi

I've got to learn Go so I can contribute - its likely my code for the prototype will be python based initially (and can write to a file) but I`m sure with some minor effort it could be translated into something that could become part of the code base. Hardware is on order but shipping may take a while :-/

I am however interested in eventual support of the "open" firmware smart adaptors that you have rather than the TP link ones as they are nearly twice the price of the others. I have no idea where to start on the code. (whilst i ominously look at 3 such adaptors on my desk!)

Btw I am using reef pi on a pi-2 for now (using pi-zero codebase) and the software (apart from the bug i mentioned) works perfectly.
 

kjerryh85

New Member
View Badges
Joined
Apr 22, 2020
Messages
7
Reaction score
9
Rating - 0%
0   0   0
I have one to build on and test with. My DT reefpi is on a pi 3 though.

I'm getting ready to build one for my QT and my stepsons freshwater tank, probably run them on pi zero w.
Over the next few days I'll be building it as per the guide and run tests and keep you updated on this.
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
145
Reaction score
105
Location
Italy
Rating - 0%
0   0   0
Hi all! I'm trying to configure the 7" touchscreen on my reef-pi. LCD works fine with raspbian, also touch works by I2C. When I enable the display in Reef-Pi I have this error message:

{"error":"strconv.Atoi: parsing \"117\\n\": invalid syntax"} | HTTP 404

Brightness control also works fine
What can it be?
 

Stephen2

Community Member
View Badges
Joined
Jul 31, 2014
Messages
48
Reaction score
28
Rating - 0%
0   0   0
Hi all

Is there a guide on how to get the dev environment running on Windows?
Everything keeps breaking one after another when trying to build or run the site.

Currently when i run make i get a error of dlfcn.h is missing
 
Last edited:
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
Hi all! I'm trying to configure the 7" touchscreen on my reef-pi. LCD works fine with raspbian, also touch works by I2C. When I enable the display in Reef-Pi I have this error message:

{"error":"strconv.Atoi: parsing \"117\\n\": invalid syntax"} | HTTP 404

Brightness control also works fine
What can it be?
This is Software bug. Can you create a github Issue with details on how to reproduce it ? I can ship a fix by next release then
 
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
Hi all

Is there a guide on how to get the dev environment running on Windows?
Everything keeps breaking one after another when trying to build or run the site.

Currently when i run make i get a error of dlfcn.h is missing
Looks like an windows header file related issue. @Michael Lane uses windows for development, he might be able to help,
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,123
Rating - 0%
0   0   0
Looks like an windows header file related issue. @Michael Lane uses windows for development, he might be able to help,
I'm encountering a similar problem now when trying to build on Windows. It looks like the MP3 driver has introduced some new dependencies that don't directly work on Window.

I'll review in more detail to either determine which additional dependencies and installs might be needed. If it turns out to be a pain, I'll probably just implement a mock MP3 driver for windows. It'll probably be a problem to cross compile too...
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
I'm encountering a similar problem now when trying to build on Windows. It looks like the MP3 driver has introduced some new dependencies that don't directly work on Window.

I'll review in more detail to either determine which additional dependencies and installs might be needed. If it turns out to be a pain, I'll probably just implement a mock MP3 driver for windows. It'll probably be a problem to cross compile too...

Yeah the new oto mp3 driver will not cross compile, at least without some tweaking. I read about it the other night but have not spent any further time on it, there should be a way to get it to work, if you look at the Oto open issues one of them were for cross compiling.
 
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
Yeah the new oto mp3 driver will not cross compile, at least without some tweaking. I read about it the other night but have not spent any further time on it, there should be a way to get it to work, if you look at the Oto open issues one of them were for cross compiling.
Yes. Cross compiling will be some work, but windows binary should be ok. https://github.com/hajimehoshi/oto

Let me know if this is not the case,
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
145
Reaction score
105
Location
Italy
Rating - 0%
0   0   0
This is Software bug. Can you create a github Issue with details on how to reproduce it ? I can ship a fix by next release then
Hi, no problem, I'll create it now... regarding the guide you've made for the display, the only way to have access to the dashboard is by a web browser right? Now I'm trying to boot Raspbian to Firefox in full screen at the Reff-Pi web page..
 
Back
Top