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

RJDaPirate

New Member
View Badges
Joined
Feb 19, 2021
Messages
4
Reaction score
2
Location
Savage
Looking for some help from the masses. I believe I’m having a DNS issue but my inexperience prevents me from finding a solution.

I’m building a Reef-Pi Setup (with Leviathan Hat). My current roadblock is that I cannot access the configuration site’s URL http://Leviathan.local or from the IP address 192.168.30.xx. The Pi in question is behind a vLAN but I’ve tried hardwiring it to the primary LAN and had the same problem.

I can ping the IP from multiple computer with my home network. Just cannot access said Pi via any web browser.

Current Network setup:
Unifi USG
Unifi Cloud Key 1
Multiple Unifi Switches
Multiple Unifi APs
Pi-Hole running on Raspberry Pi
(Which I can access via http://xxxx.local or via IP address from the Reef Pi browser.)

I have Google DNS and PiHole but to be honest I am having trouble understanding the problem and therefore cannot determine the solution.
 
Tommy's Phyto

Mwdsonny

Community Member
View Badges
Joined
Nov 20, 2018
Messages
27
Reaction score
42
Looking for some help from the masses. I believe I’m having a DNS issue but my inexperience prevents me from finding a solution.

I’m building a Reef-Pi Setup (with Leviathan Hat). My current roadblock is that I cannot access the configuration site’s URL http://Leviathan.local or from the IP address 192.168.30.xx. The Pi in question is behind a vLAN but I’ve tried hardwiring it to the primary LAN and had the same problem.

I can ping the IP from multiple computer with my home network. Just cannot access said Pi via any web browser.

Current Network setup:
Unifi USG
Unifi Cloud Key 1
Multiple Unifi Switches
Multiple Unifi APs
Pi-Hole running on Raspberry Pi
(Which I can access via http://xxxx.local or via IP address from the Reef Pi browser.)

I have Google DNS and PiHole but to be honest I am having trouble understanding the problem and therefore cannot determine the solution.
have you tried to temp disable pihole and see if it works? I know some apps on my phone wont load through pihole, so i have to 5 min disable launch and the it works even when pihole restarts.
 
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,632
Reaction score
15,121
Location
Palo Alto, Bay Area
1613064268872.png

1613064317979.png

1613064346189.png


New data is written inbetween old data instead of at the very right, the graph then flickers back and forth between new and old data. Happens every time i reboot the pi. If i reboot it again, all previous data is magically sorted again, but the newly arriving one will be broken again. After some time in the range of an hour or two, the problem stops, and new data is appended at the right again.

Same exact behaviour at the same exact timings is happening in health, temperature, and ph graph as far as i can tell. Others had this problem as well iirc.
I know exactly what is going on. Because of memory optimization reason, reef-pi metrics storage (such as the charts you shared) is stored in a ring buffer (a data structure that uses constant memory, so reef-pi's memory footprint stay within bounds), but this looses the order of data (time wise). When this data is first returns its sorted, but the updates are then not sorted, just added at the next available slot, which causes this issue. This whole thing happens on-demand, in memory (of the browser that you are using), and not in disk/pi. The data is stored inside reef-pi db is actually not sorted, just stored as ring, as it is. I'll go through the code and clean it up soon as i can
 
Aquarium Specialty - dry goods & marine livestock
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,632
Reaction score
15,121
Location
Palo Alto, Bay Area
@Ranjib

Unable to access Kaza HS303 via reef-pi

I get this error when trying to access is thru the reefpi GUI..

{"error":"Failed to update. Error: can't update 18 - can't get output pin"} | HTTP 500

I have the following version::

"sw_ver": "1.0.10 Build 200828 Rel.162602",
"hw_ver": "1.0",
"model": "KP303(US)",

Version: 4.1-11-g2f5dd6e2
Website: http://reef-pi.com
Github: https://github.com/reef-pi/reef-pi
Copyright © 2021 Ranjib Dey
Status
Current time: Sun Feb 14 15:24:05
Uptime: 4 days ago
IP: 10.167.15.10

EDIT*** seems to be only an issue with versions after the official 4.1 build.
Can you try reloading through command line and see if theres any error occurs
Code:
sudo systemctl restart reef-pi.service
sudo  journalctl -fu reef-pi.service
 
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,632
Reaction score
15,121
Location
Palo Alto, Bay Area
That will be awesome - The Sonoff devices are among the most accessible and affordable smartswitches here in SA.
I have went shelly exactly to avoid this :) . I'll get some sonos and do the tasmota work. Thank you for calling this out
 
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,632
Reaction score
15,121
Location
Palo Alto, Bay Area
Hi
Is there a guide on how to setup MQTT in reef pi and communicate with home assistant, i did i search but came back empty.
Thanks
Configuration -> Telemetry -> Enable MQTT , specify mqtt broker details, address should be
Code:
host_ip:port

and other details (password, if any), and hit reload
 
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,632
Reaction score
15,121
Location
Palo Alto, Bay Area
Is there a way to do if/else statements in the macros?
No. Macros in reef-pi is not script/language based, its composed with other elements (Ato, temp controller, timers etc) which in turn encapsulate those (if/else ) logic
 
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,632
Reaction score
15,121
Location
Palo Alto, Bay Area
Looking for some help from the masses. I believe I’m having a DNS issue but my inexperience prevents me from finding a solution.

I’m building a Reef-Pi Setup (with Leviathan Hat). My current roadblock is that I cannot access the configuration site’s URL http://Leviathan.local or from the IP address 192.168.30.xx. The Pi in question is behind a vLAN but I’ve tried hardwiring it to the primary LAN and had the same problem.

I can ping the IP from multiple computer with my home network. Just cannot access said Pi via any web browser.

Current Network setup:
Unifi USG
Unifi Cloud Key 1
Multiple Unifi Switches
Multiple Unifi APs
Pi-Hole running on Raspberry Pi
(Which I can access via http://xxxx.local or via IP address from the Reef Pi browser.)

I have Google DNS and PiHole but to be honest I am having trouble understanding the problem and therefore cannot determine the solution.
whagt devices are these? do they run bonjour or any analogous mdns service? Does any other .local domain works? whats the hostname of the pi? is it leviathan? I have not setup Unifi devices so cant provide the details, but i'll start with investigating how mdns/.local domains work in there (if usg is blocking those multicast things).
 
Budmans
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,632
Reaction score
15,121
Location
Palo Alto, Bay Area
Hi
Is there a guide on how to setup MQTT in reef pi and communicate with home assistant, i did i search but came back empty.
Thanks
@sfgabe is the only person i know who uses haas and reef-pi. I just posted some details on how to configure mqtt, for haas check their tutorial
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
630
Reaction score
1,007
Location
Durban - South Africa
I have went shelly exactly to avoid this :) . I'll get some sonos and do the tasmota work. Thank you for calling this out
Thanks Ranjib. Lots of people flash the Sonoff devices with Tasmota because it offers some better functionality. And Tasmota isn't only a Sonoff thing these days. It's being used quite a bit on other devices.
 

Cristian2281

New Member
View Badges
Joined
Jul 26, 2020
Messages
6
Reaction score
5
Location
UK
Is the buzzer as alarm implemented in the latest release? I’m building an auto water change system that will also control a solenoid to cut off the RODI when the water tank is full ( via float switch) but it would be even more fail proof if a human will also check the annoying sound.

I know it is maybe simple to have a script run at start that checks every X seconds using reef-pi API if the command to close the solenoid is issued and sound the buzzer but I’m useless at coding.
 

RJDaPirate

New Member
View Badges
Joined
Feb 19, 2021
Messages
4
Reaction score
2
Location
Savage
have you tried to temp disable pihole and see if it works? I know some apps on my phone wont load through pihole, so i have to 5 min disable launch and the it works even when pihole restarts.
Seems the Leviathan Image had an issue with the reef-pi software. I installed 4.1 via the terminal and now all is well.
 

AbjectMaelstroM

Valuable Member
View Badges
Joined
Jul 21, 2019
Messages
1,377
Reaction score
1,646
Location
RVA
Seems the Leviathan Image had an issue with the reef-pi software. I installed 4.1 via the terminal and now all is well.

I was about to say, I'm running all almost exactly same setup minus the cloud key (unifi controller runs off of a synology NAS, which also run pihole) and the only time had a hard time accessing my reefpi (which is a separate vlan) was when I jacked up firewall rules. :p
 
Maxout

DanTheReefer

Community Member
View Badges
Joined
Dec 2, 2019
Messages
59
Reaction score
50
Has anybody tried tried out the new EZO isolated carrier boards for ph? They’re a lot cheaper than the “old style” ones but noticed they have an SMA connector instead of BNC. Would adapting SMA to BNC effect the performance?
 
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,632
Reaction score
15,121
Location
Palo Alto, Bay Area
Has anybody tried tried out the new EZO isolated carrier boards for ph? They’re a lot cheaper than the “old style” ones but noticed they have an SMA connector instead of BNC. Would adapting SMA to BNC effect the performance?
Nope. Not tried yet. There should not be any detectable performance difference for our case. BNC are more rugged , bigger in size and allow at most 1-3k (radio) frequency, while sma is smaller, more fragile compared to bnc , but allow less water intrusion and can handle 10-25k frequency . For our use case I don’t expect to see any detectable difference
 

Tom Bishop

Well-Known Member
View Badges
Joined
Jan 1, 2019
Messages
568
Reaction score
1,036
Location
Missouri
Has anyone looked at the nicrew hyperreef lights Amazon Link? I have one and It's been ok, manual control but they have an option to be controlled by 10v pwm. Here is the screenshot with some information:

nicrew-10v.png


What I am curious about is I have a @Michael Lane mars aqua adapter that I am not using and I believe it is based on 10v, was wondering if I could use that to control the light - Mars-Aqua Since I'm not the best with electronic stuff was curious what folks think about the success of working.

Thanks :)
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
745
Reaction score
1,070
Location
Coatesville, Indiana
Has anyone looked at the nicrew hyperreef lights Amazon Link? I have one and It's been ok, manual control but they have an option to be controlled by 10v pwm. Here is the screenshot with some information:

nicrew-10v.png


What I am curious about is I have a @Michael Lane mars aqua adapter that I am not using and I believe it is based on 10v, was wondering if I could use that to control the light - Mars-Aqua Since I'm not the best with electronic stuff was curious what folks think about the success of working.

Thanks :)
Should work
 
Corals.com

What types of R2R interview articles are you most excited about?

  • Specific reef topics! (List the ones you'd like to see us cover in the thread.)

    Votes: 75 39.7%
  • Specific reef personalities! (List the people you'd like us to interview in the thread.)

    Votes: 10 5.3%
  • Not that concerned about the topics...I just wanna see the awesome PICTURES!

    Votes: 36 19.0%
  • All of the above!! ...and yes, I'll list some in the thread. :-)

    Votes: 68 36.0%

Online statistics

Members online
669
Guests online
2,978
Total visitors
3,647
noopsyche
Top