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
Would it be difficult to add reset button for charts?lets say my ato doses 10; but when I am out of water it d0ses 3600, so this number stays and I cant see 10 s graphs anymore.. if there would be reset it would be great. Now I have to delete it and make another..its same with other graphs..it takes a lot of work and if I delete it in diffrent order, i get something error and then I need to import settings and do it again..
Really annoying..
right now there is no easy way,. as the charts are built from the usage data directly. You can use the reef-pi db command to edit the ato_usage value to get rid of that specific usage, if you are up for some command :
1) Stop reef-pi
2) Get a list of ato id's. Identify the one that you want to fix
3) Dump the usage data of that ato in a file.
4) Edit that file to remove the value (with whatever you prefer). And then update it .

I am sharing the exact command for my ato (with id). I have the jq command installed to make it easy to read the usage data (installl: sudo apt-get install jq)

Code:
sudo systemctl stop reef-pi.service
sudo reef-pi db list ato
reef-pi db -store reef-pi.db  show ato_usage 2  | jq .  > usage.json
cat usage.json | sudo reef-pi db updare ato_usage 2

I have updated the doc with reef-pi db usage :-0) . I realize i should not wait for long release and start incrementally update the official docs.. even if their quality if not great, at least having these details there saves my time :) .
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,035
Location
Durban - South Africa
Rating - 0%
0   0   0
right now there is no easy way,. as the charts are built from the usage data directly. You can use the reef-pi db command to edit the ato_usage value to get rid of that specific usage, if you are up for some command :
1) Stop reef-pi
2) Get a list of ato id's. Identify the one that you want to fix
3) Dump the usage data of that ato in a file.
4) Edit that file to remove the value (with whatever you prefer). And then update it .

I am sharing the exact command for my ato (with id). I have the jq command installed to make it easy to read the usage data (installl: sudo apt-get install jq)

Code:
sudo systemctl stop reef-pi.service
sudo reef-pi db list ato
reef-pi db -store reef-pi.db  show ato_usage 2  | jq .  > usage.json
cat usage.json | sudo reef-pi db updare ato_usage 2

I have updated the doc with reef-pi db usage :-0) . I realize i should not wait for long release and start incrementally update the official docs.. even if their quality if not great, at least having these details there saves my time :) .

I tried this to familiarise myself with the process.

When I run "reef-pi db -store reef-pi.db show ato_usage 2 | jq . > usage.json" I get the following
"parse error: Invalid numeric literal at line 1, column 7"

My ATO ID's seem to be 1, 2, 3, so I tried all of them as options and get the same response. Maybe this fiddling around stuff just isn't for me LOL
 
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
I tried this to familiarise myself with the process.

When I run "reef-pi db -store reef-pi.db show ato_usage 2 | jq . > usage.json" I get the following
"parse error: Invalid numeric literal at line 1, column 7"

My ATO ID's seem to be 1, 2, 3, so I tried all of them as options and get the same response. Maybe this fiddling around stuff just isn't for me LOL
Try with sudo and you don’t have to pass the -store argemnt, the example was from my laptop, for actual build the default (/var/lib/reef-pi/reef-pi.db) should work
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,035
Location
Durban - South Africa
Rating - 0%
0   0   0
Try with sudo and you don’t have to pass the -store argemnt, the example was from my laptop, for actual build the default (/var/lib/reef-pi/reef-pi.db) should work

Thanks

I was using Putty from my laptop. I'll try VNC in as well and see if I get a result
 

cnidus

Community Member
View Badges
Joined
Mar 19, 2020
Messages
67
Reaction score
81
Rating - 0%
0   0   0
Just wanted to pop my head in here and say thanks everyone for creating this project & community! I've been out of the hobby for 6 years and just getting a tank plumbed and setup, finding reef-pi is the highlight so far (but plumbing hardpipes is a close 2nd).

I put myself in for the robotank hardware kickstarter, to simplify the hardware build and got reef-pi installed on a RPi-2b I had laying around last night. Looking forward to getting the tank automated from day 1 :)
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Just wanted to pop my head in here and say thanks everyone for creating this project & community! I've been out of the hobby for 6 years and just getting a tank plumbed and setup, finding reef-pi is the highlight so far (but plumbing hardpipes is a close 2nd).

I put myself in for the robotank hardware kickstarter, to simplify the hardware build and got reef-pi installed on a RPi-2b I had laying around last night. Looking forward to getting the tank automated from day 1 :)
Be sure to make a build thread!!!
 

Matevz Savarin

Active Member
View Badges
Joined
Dec 5, 2018
Messages
209
Reaction score
163
Rating - 0%
0   0   0
Ranjib I managed to save db file for my ato 1 with this command:
reef-pi db -output reef-pi.db show ato_usage 1 | jq . > usage.json
but now I dont know how to open it.. yes I know:)
tnx
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,223
Reaction score
3,632
Location
Sacramento, CA area
Rating - 0%
0   0   0
Has anyone hacked into an eheim auto feeder yet? I’m debating cracking mine open to try and make a reefpi auto feeder.

Nope but keep us posted. I run one of the Eheim ones as a backup. I imagine the method of depressing the dispense now button will work the same as the other feeders.
 
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
Ranjib I managed to save db file for my ato 1 with this command:
reef-pi db -output reef-pi.db show ato_usage 1 | jq . > usage.json
but now I dont know how to open it.. yes I know:)
tnx
Try nano . It’s a text editor .
 
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
I'm getting errors when reef-pi tries to connect to adafruit IO, it's trying to connect with IPv6, but I have that disabled. What can I do about that?
It’s a Linux thing. Disable ipv6 advertisements on router
 
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

Kurtzisa

Community Member
View Badges
Joined
Mar 21, 2020
Messages
79
Reaction score
70
Location
Parma, Italy
Rating - 0%
0   0   0
Hello everybody,
the ReefPi project is great!
I would like to use the ADS1115 16 bit ADC i2c interface on Reef Pi, i'm a newby in raspberry world but sometimes i worked with Arduino.
Should i create drivers to use this ADC for temperature or PH monitoring? I have analog sensors at home like pt1000 and i wish i could use them.
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
985
Reaction score
1,325
Location
Edmonton, Canada
Rating - 0%
0   0   0
Has anyone hacked into an eheim auto feeder yet? I’m debating cracking mine open to try and make a reefpi auto feeder.

Here's some images I made up a while ago showing how to do it. You can use any logic level mosfet, the green line in 1st image goes to any I/O pin on the Pi. The blue line is what solders to the Eheim PCB.

To run in Reef-pi add an 'outlet' connector for that pin and setup the feeder as a piece of 'equipment'. Then setup a timer and set it to turn off after 1 second. This will be the same as you pressing the manual feed button for one second.

Base = Gate
Collector = Drain
Emitter = Source

Feeder_NPN.jpg

feeder1.jpg

feeder2.jpg
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,035
Location
Durban - South Africa
Rating - 0%
0   0   0
Here's some images I made up a while ago showing how to do it. You can use any logic level mosfet, the green line in 1st image goes to any I/O pin on the Pi. The blue line is what solders to the Eheim PCB.

To run in Reef-pi add an 'outlet' connector for that pin and setup the feeder as a piece of 'equipment'. Then setup a timer and set it to turn off after 1 second. This will be the same as you pressing the manual feed button for one second.

Base = Gate
Collector = Drain
Emitter = Source

Feeder_NPN.jpg

feeder1.jpg

feeder2.jpg

Nice.

This is what I hoped to accomplish with my Juwel feeder, but with that you can't turn off the feeding schedule, so my only work-around was to turn the unit on and off.

I can't find the post, but there was someone (from Europe I think) that posted about setting up a reef-pi for his setup (I think it was a freshwater setup) and he got an autofeeder to work as well. I think it was an Eheim and and he got reef-pi to activate the manual button.
 
Back
Top