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,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
sudo i2cdetect -y 1
adress is a hexadecimal, convert to decimal and use in reef-pi


example:

pi@raspberrypi:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- 75 -- --


48hex = 72dec
For pico board it will be 72
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
640
Location
United States
Rating - 0%
0   0   0
@Ranjib - wrt the database, what's the format for it? obviously there are ASCII elements in the file,but it is binary mostly. Is it just a packed binary file of some sort, or is there a db reader that i can invoke to make a converter?

Looks like the only change to the database is the addition of the 'driver' attribute to the inlets/outlets, along with the addition of the 'analog_inputs' bucket. Is that accurate? If so, an update script would be trivial...
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,253
Reaction score
3,603
Location
Sacramento, CA area
Rating - 0%
0   0   0
Looks like the only change to the database is the addition of the 'driver' attribute to the inlets/outlets, along with the addition of the 'analog_inputs' bucket. Is that accurate? If so, an update script would be trivial...

Should be easy to even fix it up without a script.
 
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
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 is having an input to trigger a macro something thats in the works?
Having a physical button to trigger my feed fish macro which turns off my pumps for 4 minutes would be sweet, so the wife unit could feed the fish without having to get on the UI ;)

This is wife unit 2.0 and I dont plan on doing an upgrade there...lol
After the pwm profile work i'll decide what to pick up next. My thoughts are around ph based action or some macro enhancements (timers and macro).

https://github.com/reef-pi/reef-pi/issues/729
https://github.com/reef-pi/reef-pi/issues/684

The feature you are asking can be done pretty easily with a simple script residing on the pi that gets triggered by a physical button. The required API is already present and we have an equivalent UI button (and i am assuming all you want is a physical button for your wife, something along the line of a spst button)
 
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'd like to see this feature as well and I've started working on it from time to time (partly as an excuse to understand chardev gpio). I'm porting libgpiod to go so we'll be able to use interrupts instead of polling to get the button changes. My day job has been insane lately, so it's slow going. I'm hoping to have it implemented in v3.0.
Take your time.. we are in no rush .. this is a hobby project, its critical you can do it as and when you are comfortable (and its ok if you cant), life and family first :-)
 
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
How do i get the tplink driver to appear? I cloned the latest repo, did a make/make install and it isn't showing on my dev setup, even though it's in controller/drivers/factories.go ...
you have to use the api to create the driver (since theres no UI yet). Once you have created the driver rest can be done via the UI. Do you know which model you want to test?
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
Possible issue with alpha 2....I updated the temp chart with a new min/max, restarted reef-pi, but the change hasn't kicked in...

Screenshot from 2019-06-08 12-59-20.png
No bug here, the min max wont change until you DO NOT have a value in the chart thats above or below the min max, so until the zero reading goes away the min max wont change
 

Kremins

Community Member
View Badges
Joined
Dec 14, 2018
Messages
40
Reaction score
36
Rating - 0%
0   0   0
Has anyone noticed high memory usage after upgrading to 2.4? Since upgrading about a week ago after a reboot the memory usage climbs until it is all used up which locks up the Pi but a Reload or Reboot clears it up of course. Everything else seems to work great.
 
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
Failed to initialize i2c. Error:eek:pen /dev/i2c-1: no such file or directory ok this keeps coming up in my error. What is It?
i2c is enabled ? check with raspi-config
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
Hi All,

I have been following this project for some time. Great work!!!

I tried to instal 2.4 to a pi 2b+, according to the reef-pi Guide 1: Setup and Demonstration: with updated Raspbian 4.14, systemctl enabled, one wire and I2C selected, /boot/config.txt updated. It works great, only when I use the "enable PCA9685" and reboot, then load Reef-pi in my browser it hangs with a white page and the wording: loading...

When resetting the database I can load reef-pi again in my browser.
 
Last edited:
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
Hi All,

I have been following this project for some time. Great work!!!

I tried to instal 2.4 to a pi 2b+, according to the reef-pi Guide 1: Setup and Demonstration: with updated Raspbian 4.14, systemctl enabled, one wire and I2C selected, /boot/config.txt updated. It works great, only when I use the "enable PCA9685" and reboot, then load Reef-pi in my browser it hangs with a white page and the wording: loading...

When resetting the database I can load reef-pi again in my browser.
Do you have pca9685 attached to the pi ? Anything you see in the log? What browser you are using ?
 
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
Hi All,

I have been following this project for some time. Great work!!!

I tried to instal 2.4 to a pi 2b+, according to the reef-pi Guide 1: Setup and Demonstration: with updated Raspbian 4.14, systemctl enabled, one wire and I2C selected, /boot/config.txt updated. It works great, only when I use the "enable PCA9685" and reboot, then load Reef-pi in my browser it hangs with a white page and the wording: loading...

When resetting the database I can load reef-pi again in my browser.
Welcome to reef2reef :-)
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
Browser that is build in to raspbian, and Chrome for android.

The log was empty but that can be because i reset the database, i will try Again.
 

TOP 10 Trending Threads

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

  • 100% live rock + bagged sand

    Votes: 38 27.1%
  • 100% dry rock + 100% live sand

    Votes: 47 33.6%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 31 22.1%
  • 75% live rock, 25% live sand

    Votes: 14 10.0%
  • 25% live rock, 75% live sand

    Votes: 10 7.1%
Back
Top