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
Every time I attempt to add PCA9685 Driver in 3.0.0 version the UI suggests address "68". I change it to default 40 (as it's my boards address) but I get "Failed to create. Error: remote I/O error reef-pi".
Already checked out i2c via i2cdetect and it show correctly 0x40 address. I have only PCA9685 board attached to rpi.

Fresh rasbian install with updates installed. Newest npm and node.js.

Any suggestions?

Edit:

I obviously didn't convert hexa to decimal. So dumb.
Aah you got it :-)
You are not dumb, it’s unintuitive UX/UI that we have to address
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
Yes, we added the ability to specify weekdays (day alternate Wednesday) in timer specification. And as a side effect the old timers will need to be updated for this new format. I’ll keep in mind and call this out in the doc

Got 3.0.0 installed, and so far the basics are all working after upgrading from 2.3/2.5 - So, great job with this!

Did you get the TP-link control into this version? Mine are currently on the christmas lights, so no big deal if not.
 
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
Got 3.0.0 installed, and so far the basics are all working after upgrading from 2.3/2.5 - So, great job with this!

Did you get the TP-link control into this version? Mine are currently on the christmas lights, so no big deal if not.
Yes , they are all in 3.0 :-)
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
ok, just realized my equipment control after upgrading isn't working. When I try to turn something on or off, I get
{"error":"Failed to update. Error: can't update 11 - can't get output pin"} | HTTP 500

clicking on configuration then connectors, I get this error

Something went wrong.
TypeError: Cannot read property 'name' of undefined
in t in div in div in div in t in Connect(t) in div in div in t in div in t in t in div in div in div in div in t in Connect(t) in t in i
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
ok, just realized my equipment control after upgrading isn't working. When I try to turn something on or off, I get
{"error":"Failed to update. Error: can't update 11 - can't get output pin"} | HTTP 500

clicking on configuration then connectors, I get this error

Something went wrong.
TypeError: Cannot read property 'name' of undefined
in t in div in div in div in t in Connect(t) in div in div in t in div in t in t in div in div in div in div in t in Connect(t) in t in i

It also appears that sending email notifications through gmail broke, and I can't seem to fix it.. ugh
 

mk1scott

New Member
View Badges
Joined
Nov 13, 2019
Messages
10
Reaction score
9
Rating - 0%
0   0   0
rc2 installed and running. After several reloads, all temp sensors continue to work as they should.

Will continue to setup all equipment/ calibrate the pH probe and will report back.
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
ok, just realized my equipment control after upgrading isn't working. When I try to turn something on or off, I get
{"error":"Failed to update. Error: can't update 11 - can't get output pin"} | HTTP 500

clicking on configuration then connectors, I get this error

Something went wrong.
TypeError: Cannot read property 'name' of undefined
in t in div in div in div in t in Connect(t) in div in div in t in div in t in t in div in div in div in div in t in Connect(t) in t in i

What's the best way to just clear the config and start over? also, before I do that, where is the config file stored so I can see what my connector settings are? I tried to roll back, and that didn't work.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
What's the best way to just clear the config and start over? also, before I do that, where is the config file stored so I can see what my connector settings are? I tried to roll back, and that didn't work.

This is how I did it.

sudo systemctl stop reef-pi.service
sudo rm -rf /var/lib/reef-pi/reef-pi.db
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
Oh, and that wipes out everything starting out fresh! I am sure there is an easier way but I took pictures of my timers and connectors before hand.
yeah, took down my timers and outlets, but I'll have to go look physically at how my outlets and what pins they're on. I totally forgot and I couldn't see them.

But I copied the db to backup just in case someone can tell me, but for now, starting from scratch seems to have fixed it! So thanks!
 
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
yeah, took down my timers and outlets, but I'll have to go look physically at how my outlets and what pins they're on. I totally forgot and I couldn't see them.

But I copied the db to backup just in case someone can tell me, but for now, starting from scratch seems to have fixed it! So thanks!
if you are migrating from 2.0, you have to delete the database otherwise there will be application inconsistencies resulting in UI bugs etc. Move the data base to /home/pi for backup , in case you want to just revert back to the old state. Delete it otherwise.
 
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
yeah, took down my timers and outlets, but I'll have to go look physically at how my outlets and what pins they're on. I totally forgot and I couldn't see them.

But I copied the db to backup just in case someone can tell me, but for now, starting from scratch seems to have fixed it! So thanks!
You got it. I expect this to not happen as reef-pi matures. We'll not do schema changes that require such reset operations. There's a long-pending ticket on this that never got prioritized (all the new features were more sought after) .
 

mk1scott

New Member
View Badges
Joined
Nov 13, 2019
Messages
10
Reaction score
9
Rating - 0%
0   0   0
Happy to report back that rc2 is working for my application so far. I receive a popup--404 page not found error--each time I navigate to the Temperature tab, but the sensors continue to operate; even after a reload or reboot.
 
Last edited:

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
You got it. I expect this to not happen as reef-pi matures. We'll not do schema changes that require such reset operations. There's a long-pending ticket on this that never got prioritized (all the new features were more sought after) .

No problem, hadn't been following the thread for a while, and I missed a few important details like that.

Hysteresis value is incorrect - What is this value? I normally have my heaters and coolers on a Probe control, I'm going to migrate that to a macro to avoid toggling, but I can't seem to get a value for this that'll be accepted when I try to save the temp probe control.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
@Ranjib Ok resident bug checker checking in.

Good news bad news type thing.

Good news.
1.Temp probes working as they should even on a reboot/reload.
2. Macros all working
3. Equipment page all working.
4. Adafruit works as before.
5. Ph probe(pi board type) working.
6. LIGHTING PWM works except as below.

Bad news. I FOUND ANOTHER BUG or two

1. Upon a reload I lose a light. Its still on the lighting page but when you look at the reef pi logs its not there. And the pwm percentage is not updating.
Its random which light dissappears. I have my lights designated as Frontlight pins 3 and 4 on the jack light1 and Rearlight is pins 6 and 7 on the jack light2. One or the other disappears on a reload. To get it back i just have to see which light disappeared while watching the logs...go to the lighting page for that light and click edit and save and its back running as it should until another reload. A reboot by itself brings both lights up unless the light was already lost by a reload.

2. The lighting graph on the dashboard is broken. It doesnt show the graph on an interval type profile like it used to

PM me with questions as i have tested this behavior for an hour.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
No problem, hadn't been following the thread for a while, and I missed a few important details like that.

Hysteresis value is incorrect - What is this value? I normally have my heaters and coolers on a Probe control, I'm going to migrate that to a macro to avoid toggling, but I can't seem to get a value for this that'll be accepted when I try to save the temp probe control.
This confused me as well. When getting the temp controls up, for some reason you have to put a temp into the chiller threshold box before it lets you enter a hysteresis value. Then you can save the temp control. The chiller threshold has to be greater than the heater threshold.
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
This confused me as well. When getting the temp controls up, for some reason you have to put a temp into the chiller threshold box before it lets you enter a hysteresis value. Then you can save the temp control. The chiller threshold has to be greater than the heater threshold.

I tried all sorts of values.. btw, obviously those aren't my real thresholds.. usually I do 78.5 - 79.5 - no matter what I use, I get an error and it won't let me save it

Hysterisis.PNG
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
I tried all sorts of values.. btw, obviously those aren't my real thresholds.. usually I do 78.5 - 79.5 - no matter what I use, I get an error and it won't let me save it

Hysterisis.PNG

ohhh.. ok, I get it.. it has to be small.. like .2 or .4, I'm guessing that's how much it'll run past the threshold before it turns off. Which is good, because that'll prevent the rapid switching I used to get that was going to be the cause for my using a macro to handle it.. this will be much better then than the old way!
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
I'm getting this error when setting up my gmail notification
{"error":"Failed to delete. Error: EOF"} | HTTP 500

looks like an error with adafruit IO telemetry, even though I turned it off, I keep seeing this in the error log

Nov 27 16:11:24
{"error":"not found - that is an invalid URL, please check the API documentation at https://io.adafruit.com/api/docs to make sure your URL is correct"}

but still can't get either adafruit or smtp working. ugh. I had smtp working before the upgrade
 
Last edited:

TOP 10 Trending Threads

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

  • 100% live rock + bagged sand

    Votes: 37 27.4%
  • 100% dry rock + 100% live sand

    Votes: 46 34.1%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 30 22.2%
  • 75% live rock, 25% live sand

    Votes: 12 8.9%
  • 25% live rock, 75% live sand

    Votes: 10 7.4%
Free Phyto Promo
Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed
Shop Now Code: FREEPHYTO
Back
Top