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

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
It does not need internet access. But the pi to hs300 connection requires local wifi network , which is why i think my proposed solution is better, since it does not rely on internet/google name server. as long as eth0/wlan0 is up (ip assignment), we are good to go

I understand about the local wifi connection but not sure if the device needs to talk to the cloud for additional configuration. I remember when configuring the HS300 one of the options was to configure it local only and that was not an option for the HS300, lots to play with and figure out for sure..currently still wrestling with the power cables, grrrr
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
I had a couple f power trips last night and since then, I can't access my reef-pi. I can't access the IP address from my phone, Laptop,tablet or any of the usual devices I normally use. I also can't access via VNC or SSH in via Putty.

I DO however have my old touchscreen connected, so can access using that. Reef-pi is definitely running. I've had at least one automated function happen (that I saw)

Any ideas?
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
I had a couple f power trips last night and since then, I can't access my reef-pi. I can't access the IP address from my phone, Laptop,tablet or any of the usual devices I normally use. I also can't access via VNC or SSH in via Putty.

I DO however have my old touchscreen connected, so can access using that. Reef-pi is definitely running. I've had at least one automated function happen (that I saw)

Any ideas?

Do you have a keyboard attached, if so you can drop to a command prompt and see what the issue is, I am guessing it's the network stack. Not sure if you are using wireless or wired connection, if your router provides dhcp lease information you can see if it's in the table or look for the mac address in the arp information. I think if you rebooted it now everything will come up clean, but it would be good to know what is not working properly. Another thing you can do is if you are able to drop to the command prompt with a keyboard is to look at the journalctl output and see what errors are present, would want to go to around the time that it came back up and scroll through looking for any errors.

Let us know what you figure out. :)
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
Do you have a keyboard attached, if so you can drop to a command prompt and see what the issue is, I am guessing it's the network stack. Not sure if you are using wireless or wired connection, if your router provides dhcp lease information you can see if it's in the table or look for the mac address in the arp information. I think if you rebooted it now everything will come up clean, but it would be good to know what is not working properly. Another thing you can do is if you are able to drop to the command prompt with a keyboard is to look at the journalctl output and see what errors are present, would want to go to around the time that it came back up and scroll through looking for any errors.

Let us know what you figure out. :)


Just realised the problem. Router assigned reef-pi a new IP address....... Realised when I saw the on the bottom info line on the reef-pi monitor.

Thanks Tom. On the money there. I need to remember to check that.
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,321
Location
Coatesville, Indiana
Rating - 0%
0   0   0
Just realised the problem. Router assigned reef-pi a new IP address....... Realised when I saw the on the bottom info line on the reef-pi monitor.

Thanks Tom. On the money there. I need to remember to check that.

I had that issue with a mobile device stealing my ip address for the reef pi. I set my network up in the 10.x.x.x subnet so that I can have lots of subnets to separate things into.. I put that device into a subnet out of my DHCP net and gave it a static IP and no issues now.
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
You can just add
Code:
After=network-online.target
Wants=network-online.target
its lot cleaner that way

Tested and that appears to work correctly on reboot and after poweroff. Reading the documentation it appeared that you would need an additional wait service to be installed, but I did a clean install and with the update in the service it's coming up properly. Is there a reason it's not currently in the service script? Any reason to not add it?

Thanks :)
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Just realised the problem. Router assigned reef-pi a new IP address....... Realised when I saw the on the bottom info line on the reef-pi monitor.

Thanks Tom. On the money there. I need to remember to check that.

Not sure what kind of router you have but if it's a decent one you can assign mac addresses to get assigned a specific address, acts like a static in the sense that it will always get the same address. If your router is lacking I can suggest some that have a lot more capability and are opensource, allows you to nail up stuff that you do not want changing.

Here is a screenshot of some of mine, lol way to many....
dhcp-static.png


With a decent firewall you can also add the names to DNS and have things working by name instead of relying on .local stuff. If you would like more information or questions just shoot me a PM.

:)
 

Kurtzisa

Community Member
View Badges
Joined
Mar 21, 2020
Messages
90
Reaction score
73
Location
Parma, Italy
Rating - 0%
0   0   0
@Ranjib Hello, the ADS1115 ph-board driver is working? i can connect to it, with arduino I can read the A0 value, but in reef-pi the only value I read is 0.

any advice?
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
New build getting closer, hs300 and dj8 working, temp probes working, need to figure out how I want to do for ATO and lights. PH probe is installed and connected but do not have a probe yet, that will come later. Additional pictures are in my build thread, if anyone has any questions let me know. All of my connections in and out are JST-SM connectors, allows you to disconnect and change things up, so far so good.

IMG_20200425_114343.jpg
 
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
Tested and that appears to work correctly on reboot and after poweroff. Reading the documentation it appeared that you would need an additional wait service to be installed, but I did a clean install and with the update in the service it's coming up properly. Is there a reason it's not currently in the service script? Any reason to not add it?

Thanks :)
Not everyone uses hs300. Not sure if everyone will agree that reef-pi should wait for network to be up.. we’ll see how this pans out,
 
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 Hello, the ADS1115 ph-board driver is working? i can connect to it, with arduino I can read the A0 value, but in reef-pi the only value I read is 0.

any advice?
We don’t have support for ads1115 driver yet.
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Not everyone uses hs300. Not sure if everyone will agree that reef-pi should wait for network to be up.. we’ll see how this pans out,

Understand doesn't appear to delay boot time that I can notice, boots pretty quick as usual but if someone is using one I can see where that would be a pain to reload when you realize its not working. Do you want me to put in a big report just so you can track it? Just thought I would ask, I will copy the updated systemd script to the main service location so it doesn't get overwritten from updates.

Thinking about getting Prometheus up and working, and guides out there?

Thanks
 

narkotix

Community Member
View Badges
Joined
Sep 3, 2018
Messages
25
Reaction score
19
Rating - 0%
0   0   0
Getting an error now with the Adafruit IO key (i changed it) and it appears to have changed format from a long string of numbers and letters to now appending aio_ to the start of the key. This now appears to cause authentication issues.

Another user inktomi appears to be getting the same error


Any idea on what we can do to fix Ranjib?

*edit* I should add that it is however now transmitting feed data to adafruit after a couple of reloads
 
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
Understand doesn't appear to delay boot time that I can notice, boots pretty quick as usual but if someone is using one I can see where that would be a pain to reload when you realize its not working. Do you want me to put in a big report just so you can track it? Just thought I would ask, I will copy the updated systemd script to the main service location so it doesn't get overwritten from updates.

Thinking about getting Prometheus up and working, and guides out there?

Thanks
Follow prometheus docs for installation. reef-pi exposes prometheus metrics in /x/metrics endpoint. You can check the emitted metrics by directly accessing the endpoint in browser. Chart building, querying prometheus are all business as usual, and follow the original software's docs (grafana and prometheus). There are ample tutorials also for these.

We should document the fact that prometheus is supported and how to configure it (enabling the prometheus option in settings and configuring promethues against /x/metrics endpoint of the reef-pi installation).

I run chef in my entire fleet and control systemd units (and several other things including wifi, ssh, ntp etc) via that.

I plan to bring the whole chef (or any other long running process coordination) in reef-pi via systemd dbus api integration. I intend to use that capability for updates, on demand hotspot conversion etc. Its still in ideation phase.. we;ll see.
 
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
Getting an error now with the Adafruit IO key (i changed it) and it appears to have changed format from a long string of numbers and letters to now appending aio_ to the start of the key. This now appears to cause authentication issues.

Another user inktomi appears to be getting the same error


Any idea on what we can do to fix Ranjib?

*edit* I should add that it is however now transmitting feed data to adafruit after a couple of reloads
Is this still an issue? We have to improve the way we surface the adafruit integration errors. I have a separate ticket to track it: https://github.com/reef-pi/reef-pi/issues/1105, but im not aware of any other bugs. I can cross check if you provide the details.
 

Bliff

New Member
View Badges
Joined
Apr 6, 2020
Messages
18
Reaction score
41
Rating - 0%
0   0   0
Tested and that appears to work correctly on reboot and after poweroff. Reading the documentation it appeared that you would need an additional wait service to be installed, but I did a clean install and with the update in the service it's coming up properly. Is there a reason it's not currently in the service script? Any reason to not add it?

Thanks :)

I do something similar to this with DD-WRT. I have a scope of DHCP addresses set aside for new/un-set devices, such as a visitor's mobile or any otherwise unassigned device.
I have all my home devices assigned a specific IP and each particular MAC address is handed the same IP address via DHCP.

So 192.168.x.(200-254) is the scope for DCHP to hand out
192.168.x.{specific number} is given to the mac address ra:sp:be:rr:yp, and likewise for the other devices. Everything is set to DHCP.

And being a giant excel nerd I have a sheet that tracks all the home IPs, generates a dhcpmasq table, checks for duplicates/IP conflicts and shows a visual representation of what's assigned/available.
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Follow prometheus docs for installation. reef-pi exposes prometheus metrics in /x/metrics endpoint. You can check the emitted metrics by directly accessing the endpoint in browser. Chart building, querying prometheus are all business as usual, and follow the original software's docs (grafana and prometheus). There are ample tutorials also for these.

We should document the fact that prometheus is supported and how to configure it (enabling the prometheus option in settings and configuring promethues against /x/metrics endpoint of the reef-pi installation).

I run chef in my entire fleet and control systemd units (and several other things including wifi, ssh, ntp etc) via that.

I plan to bring the whole chef (or any other long running process coordination) in reef-pi via systemd dbus api integration. I intend to use that capability for updates, on demand hotspot conversion etc. Its still in ideation phase.. we;ll see.

I have it up but for the life of me cannot get it to use /x/metrics for the path vs the default /metrics, supposed to be able to define the metrics_path: in the scrape config but I'm not doing some thing correct since when I try to reload the service it doesn't come up. If anyone has any ideas let me know, I also need to figure out how to scrape an https site, haven't got that working either.

:)

Update: I guess I am getting to old, looks like its very picky about indention's or lack there of, getting closer....sigh

Update2: I have it working via https, wow never would have guessed indentions would make that much of a difference, need to understand if thats yml or prometheus but its at least pulling data.

prom.png
 
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
I have it up but for the life of me cannot get it to use /x/metrics for the path vs the default /metrics, supposed to be able to define the metrics_path: in the scrape config but I'm not doing some thing correct since when I try to reload the service it doesn't come up. If anyone has any ideas let me know, I also need to figure out how to scrape an https site, haven't got that working either.

:)

Update: I guess I am getting to old, looks like its very picky about indention's or lack there of, getting closer....sigh

Update2: I have it working via https, wow never would have guessed indentions would make that much of a difference, need to understand if thats yml or prometheus but its at least pulling data.

prom.png
That’s yaml .indentation denotes object hierarchy’s
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,321
Location
Coatesville, Indiana
Rating - 0%
0   0   0
I decided there was one too few boards available for this project.. Not yet 100% sure if I'm going to be making them for sale yet. It's still very much in the concept stages.. Should work as is, however, I have to check some of the resistor / capacitor values to make sure they are sane..

Now for the good stuff..

I have the following features:

3 (Kessil type) PWM circuits,
6 switchable (with jumpers) 12 volt / 24 volt jacks for lights or fans. (or anything else that runs on those voltages that you want to control.
2 Dosing pumps
3 external temp probes, 1 onboard temp sensor
2 ATO jacks
1 header to break out the ULN2803A pins to DB9 or whatever to connect to an external powerbar.
3 buck converters onboard supplying 12v, 10v, and 5v.
40 pin header and mounting holes to mount on a Raspberry Pi.
slots cut for Pi camera and Pi video ribbon cables.

Needs a 24 volt power supply, mine is 100 watts and runs my development board quite nicely. Internal temp of the case is cooled by a 50mm 12 fan off of the fan header controlled by the internal temp sensor. Temp stays under 90f at all times.

Short of having it feed my fish and wash my dishes, I can't think of anything else it may need.. Suggestions definitely welcomed. (I have not sent this off to be printed yet.

1587939229691.png
 

Dave's Reef

Active Member
View Badges
Joined
Nov 4, 2018
Messages
102
Reaction score
148
Rating - 0%
0   0   0
So this weekend I got My PH up and going. It was much easier than I thought it would be. I also 3D printed a few Float brakes/PH holder. Along with a water change made for a busy day. But as usual I am here for a little help. I have two levels in my sump a High level and a Low lever. I only want to get Alerts from the low level I use a stand alone ATO but I do want to know if for some reason its not topping off. When I set the Alerts up I was getting Alerts no matter what state the switch is in? and now I am not getting any alerts from it at all? I tried to reverse the switch also with no luck anyone else having issues with ATO alerts?

Thank you
 

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

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

    Votes: 32 22.4%
  • 75% live rock, 25% live sand

    Votes: 15 10.5%
  • 25% live rock, 75% live sand

    Votes: 10 7.0%
Back
Top