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

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

FuzzeWuzze

Community Member
View Badges
Joined
Nov 9, 2020
Messages
28
Reaction score
29
Location
Newberg
Rating - 0%
0   0   0
So i learned from CoralVue that my gyre pumps cant be controlled by an Apex(or other controllers) other than to set a trigger(for like water changes, etc). Quite disappointing but whatever.
 

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 Michael lanes dosing board?

C4E97E8C-0941-451F-8BDB-96D480CDD95F.png

pump 5-8 are pwm signals.
Yip. You need one of those for the slave doser to work - I DIY'd one with some help from Michael. Very easy to do.
 

robsworld78

Valuable Member
View Badges
Joined
Feb 14, 2020
Messages
1,029
Reaction score
1,293
Location
Edmonton, Canada
Rating - 0%
0   0   0
So i learned from CoralVue that my gyre pumps cant be controlled by an Apex(or other controllers) other than to set a trigger(for like water changes, etc). Quite disappointing but whatever.

What about with one of these? This is from CoralVue.

 

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,695
Reaction score
1,607
Rating - 0%
0   0   0
What about with one of these? This is from CoralVue.

I started to read about it and got confused about what @FuzzeWuzze meant too.

Icecap makes the Icecap Gyre Interface Module. They make the dual pump wifi controller. And then they make the Icecap Gyres. but their own interface module is only for the MaxSpect Gyres (not from Icecap) and doesn't work with their own product. Weird marketing decision. And i got confused which combination of those we are talking about, but seems to me now like the icecap dual wifi thing with gyre pumps from icecap, not from maxspect?

Edit: now i'm even more confused, the coralvue page says that the interface can control the icecap gyres, but their customer service says it is impossible?
 
Last edited:

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
Yes. This is the board I have.
Hate to be stupid here. The “dose” connector on the hat has 4 pins (4,5,6 and ground) where does the fifth wire come from?
Below is an excerpt form a conversation I had with Michael Lane about using the doser adaptor board and how he advises setting it up for the fourth channel



The dosing adapter works using the PWM signal from the PCA9685. Electrically, it would work fine with a gpio from Power1, but it would not show up as a doser jack, and would only be fully on or off. Any of the Light ports can be used to control the 4th channel and work fully as a doser in reef-pi.

Although the Doser port only has 3 outputs, you can still use a DP4S by connecting the 4th input to one of the light outputs. I usually recommend using Light 3.

In this case, the white wire is connected to PWM ~7 on Light 3.
1583073650968.png
 

zab34

Active Member
View Badges
Joined
Jan 23, 2012
Messages
354
Reaction score
72
Location
Orlando
Rating - 0%
0   0   0
Below is an excerpt form a conversation I had with Michael Lane about using the doser adaptor board and how he advises setting it up for the fourth channel



The dosing adapter works using the PWM signal from the PCA9685. Electrically, it would work fine with a gpio from Power1, but it would not show up as a doser jack, and would only be fully on or off. Any of the Light ports can be used to control the 4th channel and work fully as a doser in reef-pi.

Although the Doser port only has 3 outputs, you can still use a DP4S by connecting the 4th input to one of the light outputs. I usually recommend using Light 3.

In this case, the white wire is connected to PWM ~7 on Light 3.
1583073650968.png
Much appreciated. That make perfect sense.
 

ReeferLou

Active Member
View Badges
Joined
Dec 24, 2020
Messages
193
Reaction score
147
Location
Michigan-Oakland County
Rating - 0%
0   0   0
Just a general comment since I did not see this documented anywhere, but you can send email alerts to multiple email addresses if you separate them with a comma in the "to" field. I was using the Reef-Pi 4.0 version. I was able to send my self and email and an SMS message using " phonenumber@messaging.sprintpcs.com"
 

FuzzeWuzze

Community Member
View Badges
Joined
Nov 9, 2020
Messages
28
Reaction score
29
Location
Newberg
Rating - 0%
0   0   0
I started to read about it and got confused about what @FuzzeWuzze meant too.

Icecap makes the Icecap Gyre Interface Module. They make the dual pump wifi controller. And then they make the Icecap Gyres. but their own interface module is only for the MaxSpect Gyres (not from Icecap) and doesn't work with their own product. Weird marketing decision. And i got confused which combination of those we are talking about, but seems to me now like the icecap dual wifi thing with gyre pumps from icecap, not from maxspect?

Edit: now i'm even more confused, the coralvue page says that the interface can control the icecap gyres, but their customer service says it is impossible?
What about with one of these? This is from CoralVue.


I agree the entire thing is super confusing.

The article @robsworld78 posted is using the Gyre interface module that was used for the older 1k/3k pumps, apparently this controller didnt have the ability to do profiles/triggers like the Wifi one does via software. Everything done in that video can be done via the new Wifi controller by just setting triggers to go off at certain times of day. I could in theory do this with the ReefPi+Wifi Icecap, but it wouldnt give me anything that the controller cant already do. What this does not let you do is independently control pumps like you can with the Gyre Interface Module + MaxSpect.

Alternate Gyre Mode Modified Cable for IceCap Gyre Interface Module

This cable allows you to run your Maxspect Gyre in both forward and reverse direction by using one full Variable Speed port on your Apex to connect two 0-10v signals to a single IceCap Gyre Interface Module.

On your APEX, you will need to set up two Variable Speed pumps to control a single gyre. The first variable speed outlet will control the speed of the pump. You can set speeds ranging from 20% to 100%. The second variable speed outlet will control the direction of the pump. Set it to 0% and the pump will more in forward direction... set it to 100% and the pump will more in reverse direction.

NOTICE: To run the Maxspect Gyre or IceCap Gyre in Alternating Gyre Mode (forward and reverse) you will need the Alternating Gyre Mode Modified Cable (sold separately).

The last bit is that this icecap gyre interface module does NOT work with the newer 2k/4k models of Icecap pumps that come with the Wifi controller, only 1k(discontinued), 3k, and maxspect pumps.

So if you want to do the shifting current thing and have control of your gyres you need 2x gyre interface modules and 2x 1k/3k/maxspect pumps. The gyre interface modules only work for one pump. So your looking at at a minimum 275 per pump/module (550 total) to set this up.
 

robsworld78

Valuable Member
View Badges
Joined
Feb 14, 2020
Messages
1,029
Reaction score
1,293
Location
Edmonton, Canada
Rating - 0%
0   0   0
I started to read about it and got confused about what @FuzzeWuzze meant too.

Icecap makes the Icecap Gyre Interface Module. They make the dual pump wifi controller. And then they make the Icecap Gyres. but their own interface module is only for the MaxSpect Gyres (not from Icecap) and doesn't work with their own product. Weird marketing decision. And i got confused which combination of those we are talking about, but seems to me now like the icecap dual wifi thing with gyre pumps from icecap, not from maxspect?

Edit: now i'm even more confused, the coralvue page says that the interface can control the icecap gyres, but their customer service says it is impossible?

I agree the entire thing is super confusing.

The article @robsworld78 posted is using the Gyre interface module that was used for the older 1k/3k pumps, apparently this controller didnt have the ability to do profiles/triggers like the Wifi one does via software. Everything done in that video can be done via the new Wifi controller by just setting triggers to go off at certain times of day. I could in theory do this with the ReefPi+Wifi Icecap, but it wouldnt give me anything that the controller cant already do. What this does not let you do is independently control pumps like you can with the Gyre Interface Module + MaxSpect.



The last bit is that this icecap gyre interface module does NOT work with the newer 2k/4k models of Icecap pumps that come with the Wifi controller, only 1k(discontinued), 3k, and maxspect pumps.

So if you want to do the shifting current thing and have control of your gyres you need 2x gyre interface modules and 2x 1k/3k/maxspect pumps. The gyre interface modules only work for one pump. So your looking at at a minimum 275 per pump/module (550 total) to set this up.

Definitely confusing, it would be nice if everyone could use a 0-10v jack, we know they can, instead of forcing people to use their controller. Kessil is a good example, old lights had 0-10v jack but new don't, I guess people weren't buying their controller based on control features so lets force them.
 
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
The issue was reef pi error, not the lack of feed info. You can also sniff available feeds with mosquitto_sub from the command line with something like this:

mosquitto_sub -h localhost -u homeassistant -P password -v -t '#'
@sfgabe i just tested this again today. I am able to see the mqtt based metrics
Code:
mosquitto_sub -d -t "#"
Client mosqsub|24088-guest-bed sending CONNECT
Client mosqsub|24088-guest-bed received CONNACK (0)
Client mosqsub|24088-guest-bed sending SUBSCRIBE (Mid: 1, Topic: #, QoS: 0)
Client mosqsub|24088-guest-bed received SUBACK
Subscribed (mid: 1): 0
Client mosqsub|24088-guest-bed received PUBLISH (d0, q0, r0, m0, 'system_load5', ... (8 bytes))
0.140000
Client mosqsub|24088-guest-bed received PUBLISH (d0, q0, r0, m0, 'system_mem_used', ... (9 bytes))
10.980000
Client mosqsub|24088-guest-bed received PUBLISH (d0, q0, r0, m0, 'system_under_voltage', ... (8 bytes))
0.000000
Client mosqsub|24088-guest-bed received PUBLISH (d0, q0, r0, m0, 'temperature_reading', ... (9 bytes))
58.210000
Client mosqsub|24088-guest-bed received PUBLISH (d0, q0, r0, m0, 'system_load5', ... (8 bytes))
0.030000
Client mosqsub|24088-guest-bed received PUBLISH (d0, q0, r0, m0, 'system_mem_used', ... (9 bytes))
10.630000
Client mosqsub|24088-guest-bed received PUBLISH (d0, q0, r0, m0, 'system_under_voltage', ... (8 bytes))
0.000000
Client mosqsub|24088-guest-bed received PUBLISH (d0, q0, r0, m0, 'office_reading', ... (9 bytes))
61.590000
Im using the stock mqtt setup on pi (apt-get install mqtt .. systemctl start ..), with reef-pi configuration as address: "broker IP:1883"
Let me know if the mqtt stuff is still not working for you. If I can reproduce the bug on my end, it will be easier to fix it.
 
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,

Thank you for adding the MQTT support . I am having issues when I enable and configure it. Not sure if I am doing something wrong but I have same results across 3 separate Reef-Pi's

The Mosquito server is working fine, I have about 60 devices talking over MQTT, just can't get the Reef-Pi to communicate.

Any ideas....

Thanks Mark

MQTT issue.JPG
Thank you for reporting this. I just tested this today and it worked for me. I am using default mosquito setup. The error you shared indicated pi itself is not able to connect to that host. Make sure the reef-pi instance (pi) is in the same network (you can validate it by ping against that IP) .
It is also possible after a reboot reef-pi started before network was up (on the pi) , which will result in this error. If you just reload the reef-pi , this issue should resolve . For a permanent fix, update the systemd unit file to ensure reef-pi starts after network is up.
 
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 how do I use this driver? What do I select for the GPIO pin, etc?

Use the driver tab to create a new driver using the type "dli-wpsp", provide IP:80 as address , reef-pi uses the HTTP rest API for controlling the dli power strip. Once added, that driver will expose 8 pins (0-7) that you can use to create 8 new outlets (choose the new driver and pin 0-7) . once outlets are created you can use them to create equipment, and so forth (ato, temperature etc)
 

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,695
Reaction score
1,607
Rating - 0%
0   0   0
What do you think would be the best failsafe for emergencies regarding power- and internet outages? Some UMTS module? Old phone? SMS? Anyone done something like this yet?

One-directional notifications would be better than nothing, but being able to send commands back for control would be even better
 

Sarlindescent

Active Member
View Badges
Joined
Dec 26, 2015
Messages
145
Reaction score
140
Rating - 0%
0   0   0
Thanks everyone for the assistance. I have reef pi installed and was able to link one of my kasa hs300s in the software. Just figured I would give an update on my case. The whitebox probe cutouts are made and 2x 1/4" trs females for temp probes. I have to open up the pi connectors. FYI, if you use a whitebox hat, the pi will sit around 1/8" off the case, so your plug holes need to fit the entire plug housing, not just the plug ends. Waiting for my ds18b20s to arrive today.

20201230_110050.jpg 20201230_110128.jpg
20201230_111844.jpg
 
Last edited:

Schreiber

Leviathan
View Badges
Joined
Jun 28, 2016
Messages
475
Reaction score
594
Location
Knoxville
Rating - 0%
0   0   0
What do you think would be the best failsafe for emergencies regarding power- and internet outages? Some UMTS module? Old phone? SMS? Anyone done something like this yet?

One-directional notifications would be better than nothing, but being able to send commands back for control would be even better

Depends on what your overall goal is.

Personally, my goal is if it fails, I want it to fail safely. So I have things like my water change & ATO pump relays wired Normally Open. That way, they don't kick on as soon as the power comes back on.

If you set up VNC on your Pi, you can remote into it & control equipment remotely, I've done this multiple times when I'm out of town.
 

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,695
Reaction score
1,607
Rating - 0%
0   0   0
Depends on what your overall goal is.

Personally, my goal is if it fails, I want it to fail safely. So I have things like my water change & ATO pump relays wired Normally Open. That way, they don't kick on as soon as the power comes back on.

If you set up VNC on your Pi, you can remote into it & control equipment remotely, I've done this multiple times when I'm out of town.
The scenario is that I can't trust that the pi has reliable internet during normal operation, and especially not during a power outage. Not always reliable wifi either.

Case in point, for the last 4 or 5 days I didn't know whether I would come home to a blown breaker, a multi day power outage, a dead tank, burned down electronics or house, dead modem, or something else.
Because I couldn't remote in, and didn't know why. Not the first time this happened either.

Turns out this time, the provider doesn't feel the need to fix an internet issue affecting multiple large cities over the holidays. Writing this on my phone.

Would have been nice to get a text or email or push notification every few hours that I can't remote in "your tank is still alive, only internet /internet and power went down, here are temperature and other measurements, power went out between xx:xx and xx:xx on _date_, Internet is out since xx:xx on _date2_

Sending commands back for example managing emergency power reserves would be a nice cherry on top
 
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
thanks I will try this. Since the message said that MQTT was not loaded that would indicate that it will not retry. I least that was my thinking
I know whats happening, this is a common issue when the reef-pi starts before network is up during power up or reboot. You can fix this by updating the systemd unit file for reef-pi to make sure it’s started after network is up

 
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
The scenario is that I can't trust that the pi has reliable internet during normal operation, and especially not during a power outage. Not always reliable wifi either.

Case in point, for the last 4 or 5 days I didn't know whether I would come home to a blown breaker, a multi day power outage, a dead tank, burned down electronics or house, dead modem, or something else.
Because I couldn't remote in, and didn't know why. Not the first time this happened either.

Turns out this time, the provider doesn't feel the need to fix an internet issue affecting multiple large cities over the holidays. Writing this on my phone.

Would have been nice to get a text or email or push notification every few hours that I can't remote in "your tank is still alive, only internet /internet and power went down, here are temperature and other measurements, power went out between xx:xx and xx:xx on _date_, Internet is out since xx:xx on _date2_

Sending commands back for example managing emergency power reserves would be a nice cherry on top
Reef-pi is designed to run even without any network, so not having network is not an issue for reef-pi as long as you are not using network based drivers.
For the use case you are referring , it’s commonly known as external monitoring. I know adafruit has something called trigger that can notify you if reef-pi stops sending data. That will exactly what a typical external monitoring would do. If there’s a public Mqtt service we can do that with mqtt based metrics as well, since 4.0 release. In all these cases you need an externally hosted service /cloud like thing
 

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