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

iamdan

Community Member
View Badges
Joined
Jul 1, 2022
Messages
89
Reaction score
67
Location
Western Australia
Rating - 0%
0   0   0
I'm trying to get my reefpi up and running using robo-tank controller with the lighting and DC module, Sensor module and 2 power strips. Everything is plugged in: module interconnects, power, float sensors, Ph probe, custom lighting dimmers to Meanwell drivers. Dosers.

I ran the robo-tank installation instructions for reefpi https://www.robo-tank.ca/reef-pi_Related_User_Manuals afterwards the reefpi blank dashboard comes up so I know reefpi is installed. When I click on connectors to start programming the ports I get this:
20240624_154742.jpg 20240624_154753.jpg
There is also a reoccurring error message:

@Rob
20240624_154805.jpg

@robsworld78
Use raspberry pi os bullseye. Bookworm is not compatible
 

Brett7397

Community Member
View Badges
Joined
Oct 17, 2022
Messages
76
Reaction score
45
Location
Dothan, AL
Rating - 100%
1   0   0
 

KrisMoro

New Member
View Badges
Joined
Sep 27, 2017
Messages
8
Reaction score
1
Rating - 0%
0   0   0
Are you running Raspberry Pi OS Bullseye?
Yes, I tried both Bullseye and Bookworm on all mentioned boards. I think issue is somewhere in 12 years old HAL dependency. but interesting thing, each time pin number was different in error...
 

Matt Carden

Valuable Member
View Badges
Joined
Apr 13, 2018
Messages
1,657
Reaction score
4,036
Location
Detroit Metro
Rating - 0%
0   0   0
Rob had a script he made to install reef pi. He posted it on here.
Recently there are more options for the Raspberry OS to choose from. There is 2 versions of lite, bookworm and bullseye. I choose bookworm I'm going to try bullseye in a few. Will update.
 

natebatey

New Member
View Badges
Joined
Jan 9, 2021
Messages
18
Reaction score
8
Location
home
Rating - 0%
0   0   0
Hi, I used to be able to use adafruit.IO for all of my channels, but recently I do not get any of my 'equipment' data. I've been out of the loop for a couple years, did something change with adafruit.io? I am getting the following error and wonder why the I.P address listed is incorrect for the system, is it supposed to be that way?
Screen Shot 2024-07-08 at 9.25.42 PM.png
 

biznatch

Community Member
View Badges
Joined
Nov 30, 2023
Messages
35
Reaction score
24
Location
CA
Rating - 0%
0   0   0
Hi, I used to be able to use adafruit.IO for all of my channels, but recently I do not get any of my 'equipment' data. I've been out of the loop for a couple years, did something change with adafruit.io? I am getting the following error and wonder why the I.P address listed is incorrect for the system, is it supposed to be that way?
Screen Shot 2024-07-08 at 9.25.42 PM.png

That looks like the IP of your gateway (router), and port 53 is a DNS request (you can confirm by running 'ipconfig' on your laptop, and it will show the same IP as the default gateway). So it's trying to get the IP of io.adafruit.com and failing. This looks like the rPi is being blocked by a firewall. What happens when you SSH onto the rPi and try and ping google.com or io.adafruit.com? I'm guessing you'll get the same error.
 

natebatey

New Member
View Badges
Joined
Jan 9, 2021
Messages
18
Reaction score
8
Location
home
Rating - 0%
0   0   0
That looks like the IP of your gateway (router), and port 53 is a DNS request (you can confirm by running 'ipconfig' on your laptop, and it will show the same IP as the default gateway). So it's trying to get the IP of io.adafruit.com and failing. This looks like the rPi is being blocked by a firewall. What happens when you SSH onto the rPi and try and ping google.com or io.adafruit.com? I'm guessing you'll get the same error.
Ok, I will try the ping when I get home. Does it make sense that other io channels work fine it’s just the equipments that give the error? I’m guessing there is a different “call” method for the equipments because it’s a two-way communication? And just to clarify, it’s not really looking for an actual IP address for adafruit io per se, it’s looking for a “route” to go through to connect to it? Also, if what you are saying about a firewall blocking it is true then I assume that I can go into the router and set a rule to allow it to pass through? Thanks for your help!
 

biznatch

Community Member
View Badges
Joined
Nov 30, 2023
Messages
35
Reaction score
24
Location
CA
Rating - 0%
0   0   0
Ok, I will try the ping when I get home. Does it make sense that other io channels work fine it’s just the equipments that give the error? I’m guessing there is a different “call” method for the equipments because it’s a two-way communication? And just to clarify, it’s not really looking for an actual IP address for adafruit io per se, it’s looking for a “route” to go through to connect to it? Also, if what you are saying about a firewall blocking it is true then I assume that I can go into the router and set a rule to allow it to pass through? Thanks for your help!

Port 53 is for DNS calls, which is always the first step. It converts the human readable URL to the IP for the computer to use. It doesn't matter what API endpoint you're hitting, since the DNS call is to the domain itself. If there was an issue with the API/endpoint, the DNS call would succeed, but you would get an HTTP error (like a 404 not found) on port 443, not a network error on 53. 2 way communication would still make a DNS call on 53, then use that IP to connect on 443 and open a web socket for the return calls. But your error shows it's failing log before that.
 

natebatey

New Member
View Badges
Joined
Jan 9, 2021
Messages
18
Reaction score
8
Location
home
Rating - 0%
0   0   0
Port 53 is for DNS calls, which is always the first step. It converts the human readable URL to the IP for the computer to use. It doesn't matter what API endpoint you're hitting, since the DNS call is to the domain itself. If there was an issue with the API/endpoint, the DNS call would succeed, but you would get an HTTP error (like a 404 not found) on port 443, not a network error on 53. 2 way communication would still make a DNS call on 53, then use that IP to connect on 443 and open a web socket for the return calls. But your error shows it's failing log before that.
Hmm…. Well I checked the firewall on the router and it’s off. I also pinged io.adafruit.com and google.com from ssh into the pi and they both pinged fine with 0% packet loss. Clearly something is stopping reef-pi. If you have any other ideas I’d appreciate more help. Does the modem possibly have a firewall? It is a different modem than what I used before. Or maybe some other obscure setting on the modem. I still wonder why some of the channels go through fine but the equipments fail. I appreciate you help, thanks.
 

biznatch

Community Member
View Badges
Joined
Nov 30, 2023
Messages
35
Reaction score
24
Location
CA
Rating - 0%
0   0   0
Hmm…. Well I checked the firewall on the router and it’s off. I also pinged io.adafruit.com and google.com from ssh into the pi and they both pinged fine with 0% packet loss. Clearly something is stopping reef-pi. If you have any other ideas I’d appreciate more help. Does the modem possibly have a firewall? It is a different modem than what I used before. Or maybe some other obscure setting on the modem. I still wonder why some of the channels go through fine but the equipments fail. I appreciate you help, thanks.
If you can ping it from the rPi itself and get an IP/reponse, then it doesn't sound like a firewall blocking it, as that does a DNS lookup as part of the steps prior to sending out the ICMP calls. So I'm actually at a loss here. It's making the call to your gateway, so it's not like the BS home assistant pulled by hardcoding DNS calls to a 3rd party IP which might be blocked. I would attempt the tried and true 'turn it off and on again' to see if that clears any caching going on and restarts all processes, including reefpi.
 

natebatey

New Member
View Badges
Joined
Jan 9, 2021
Messages
18
Reaction score
8
Location
home
Rating - 0%
0   0   0
If you can ping it from the rPi itself and get an IP/reponse, then it doesn't sound like a firewall blocking it, as that does a DNS lookup as part of the steps prior to sending out the ICMP calls. So I'm actually at a loss here. It's making the call to your gateway, so it's not like the BS home assistant pulled by hardcoding DNS calls to a 3rd party IP which might be blocked. I would attempt the tried and true 'turn it off and on again' to see if that clears any caching going on and restarts all processes, including reefpi.
ok, thanks anyway. I've tried that also. I saw a message on the io.adafruit site that said they had made some changes to the api and wondered if that was causing an issue, but if no one else has experienced it then it's probably just something on my end.
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
161
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
Hi all! today during some maintenance I've disconnected the sump temp probe.
After that the heater kicks on without any control. There's a way to disable the temperature control when the sensor goes bad? Thank you!
 

iamdan

Community Member
View Badges
Joined
Jul 1, 2022
Messages
89
Reaction score
67
Location
Western Australia
Rating - 0%
0   0   0
Hi all! today during some maintenance I've disconnected the sump temp probe.
After that the heater kicks on without any control. There's a way to disable the temperature control when the sensor goes bad? Thank you!
In reef-pi itself I don’t think it’s possible however for my use case I have reef-pi connected into home assistant so you could create an automation for it there
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
Hi all! today during some maintenance I've disconnected the sump temp probe.
After that the heater kicks on without any control. There's a way to disable the temperature control when the sensor goes bad? Thank you!
When you disconnect the sensor the temperature signal will most likely drop to zero degrees celsius. What you can do is under the temp tab create a new item. Select the sensor. Under control you can add a macro (first create a macro to turn off the heater) then use the chiller function, put it to 1 degree celsius, and select the macro. You can test is when disconnecting the sensor.
 
Last edited:

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
161
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
When you disconnect the sensor the temperature signal will most likely drop to zero degrees celsius. What you can do is under the temp tab create a new item. Select the sensor. Under control you can add a macro (first create a macro to turn off the heater) then use the chiller function, put it to 1 degree celsius, and select the macro. You can test is when disconnecting the sensor.
Thank you @BenB! that's exactly what I want! :D If someone would like to replicate this setup if you set the macro as reversible it will re-enabe the temp control automatically when you reconnect the sensor.
I'll also connect my Reef-Pi to home assistant but I want to use it only as "monitoring" device, I would like to have all the important control running only on Reef-Pi without relying on the operation of the HA server..
 

biznatch

Community Member
View Badges
Joined
Nov 30, 2023
Messages
35
Reaction score
24
Location
CA
Rating - 0%
0   0   0
Thank you @BenB! that's exactly what I want! :D If someone would like to replicate this setup if you set the macro as reversible it will re-enabe the temp control automatically when you reconnect the sensor.
I'll also connect my Reef-Pi to home assistant but I want to use it only as "monitoring" device, I would like to have all the important control running only on Reef-Pi without relying on the operation of the HA server..

The connection to reefpi is done by the HACS integration. All that does is connect to the reef-pi API. Everything is still done by reef-pi, this just gives external access to monitor/control through HA.

FYI though, enabling this does appear to cause the PH sensor to randomly report almost 0 throughout the day. At this point I've stopped using the HA integration and just use the reefpi UI for everything.
 

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.3%
  • 100% dry rock + 100% live sand

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

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

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

    Votes: 10 7.2%
Back
Top