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

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,075
Location
Gambrills
Rating - 0%
0   0   0
I'm loving my ReefPi (can't wait for 3.0 and pH).

With Adafruit IO....my temp probes are updating, but my ATO graph isn't. On my ReefPi dashboard it is updating properly. But adafruit says it hasn't gotten any data. I have one error entry related to it:

Post https://io.adafruit.com/api/v2/dmolavi/feeds/rpisump-reading/data: dial tcp: lookup io.adafruit.com on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable

Which appears to be DNS related. I'd think my temp feed would be impacted as well, but it isn't.

Any ideas?

Edit...

I just readded the feed to IO and this error popped up in ReefPi

Apr 6 07:56:35

{"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"}

I'm guessing we're sending to the wrong listener...
I get similar errors
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
@Ranjib @Tom Bishop
@theatrus
I ran across this today and wonder if it can be of use to our reef pi installs...its called Log2Ram.
It writes the linux logs to ram and then once an hour writes to the sd card. This lengthens the sd cards life tremendously. Can this be installed with reef pi?
Maybe the code is something that can be borrowed so reef pi logs can be written the same way?
This is a bit out of my realm but thought id let the code gurus weigh in.

Here is the link
https://mcuoneclipse.com/2019/04/01...rd-lifetime-for-raspberry-pi-lorawan-gateway/
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
@Ranjib @Tom Bishop
I ran across this today and wonder if it can be of use to our reef pi installs...its called Log2Ram.
It writes the linux logs to ram and then once an hour writes to the sd card. This lengthens the sd cards life tremendously. Can this be installed with reef pi?
Maybe the code is something that can be borrowed so reef pi logs can be written the same way?

Here is the link
https://mcuoneclipse.com/2019/04/01...rd-lifetime-for-raspberry-pi-lorawan-gateway/

Raspbian already has limits and is built for less writes and I think @Ranjib and company has taking that into account already, that's my take. I like you want to put a simple backup process but I've had my hands full lately, last week I was appliance repair man (my dryer control board where 220v goes into it decided to melt down, glad my wife was at home when the smoke detectors went off) and auto mechanic, busy week.

My take is keep the important bits backed up and reload rasbian which is pretty quick and reload the important files and your back in business.

:)
 
Last edited:

speedstar

Well-Known Member
View Badges
Joined
Sep 18, 2018
Messages
704
Reaction score
1,029
Location
Grand Rapids
Rating - 0%
0   0   0
Not sure if this bug has been reported, but with the weather warming I just got some texts of my fish tank over temperature, of course I am on vacation 1000 miles away. Anyhow the email states that it is running hot Current temp (81.275000) is out of acceptable range (76.75000) The bug is that is my heater set point not the fan/chiller.
 

speedstar

Well-Known Member
View Badges
Joined
Sep 18, 2018
Messages
704
Reaction score
1,029
Location
Grand Rapids
Rating - 0%
0   0   0
Not sure if this bug has been reported, but with the weather warming I just got some texts of my fish tank over temperature, of course I am on vacation 1000 miles away. Anyhow the email states that it is running hot Current temp (81.275000) is out of acceptable range (76.75000) The bug is that is my heater set point not the fan/chiller.
 
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
Not sure if this bug has been reported, but with the weather warming I just got some texts of my fish tank over temperature, of course I am on vacation 1000 miles away. Anyhow the email states that it is running hot Current temp (81.275000) is out of acceptable range (76.75000) The bug is that is my heater set point not the fan/chiller.
I need little help understanding this. You have not setup any upper threshold , which is why you don’t expect any alert if the Temperature goes above any particular value, only the lower threshold that’s matter ? It will be very helpful if you can share a screeenshot of your temperature on troller configuration
 

Young_Reefer

Community Member
View Badges
Joined
Jan 4, 2019
Messages
42
Reaction score
42
Location
Nashville
Rating - 0%
0   0   0
I’m hoping to incorporate some type of wavemaker control into my reef pi build. The plan, so far, is to power a koralia nano (12 V) with this motor controller:

https://www.amazon.com/gp/aw/d/B074FR4BBJ?psc=1&ref=ppx_pop_mob_b_pd_title&th=1

My current questions/concerns are:

1. Do motor controllers, such as the doser module which I have already incorporated, require both GPIO inputs? For example, if I only connected the “forward” GPIO connection and left the “reverse” disconnected would the motor still function when forward is enabled? I’m trying to minimize wiring...

2. What would be the best way to implement a powerhead in reef pi? I’m thinking of setting it up as a doser to control the PWM signal throughout the day but also implementing a timer which makes it pause for two seconds every two seconds. Will this become an issue?
 
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’m hoping to incorporate some type of wavemaker control into my reef pi build. The plan, so far, is to power a koralia nano (12 V) with this motor controller:

https://www.amazon.com/gp/aw/d/B074FR4BBJ?psc=1&ref=ppx_pop_mob_b_pd_title&th=1

My current questions/concerns are:

1. Do motor controllers, such as the doser module which I have already incorporated, require both GPIO inputs? For example, if I only connected the “forward” GPIO connection and left the “reverse” disconnected would the motor still function when forward is enabled? I’m trying to minimize wiring...

2. What would be the best way to implement a powerhead in reef pi? I’m thinking of setting it up as a doser to control the PWM signal throughout the day but also implementing a timer which makes it pause for two seconds every two seconds. Will this become an issue?
The forward / reverse action is a required thing for dosing system , it’s an additional thing we do because l293d chip provides that capability. I am not sure if the koralia nano power head allows you to pass dc current directly , last time I checked it take ac current and won’t let you control the speed externally , only jebao or gyre allows that.
Currently reef-pi does not have powerhead automation capabilities builtin, so timers for on off and light or doser module for speed control is your best option. I am planning to add native wavemaker capabilities as part of 3.0 development
 

Young_Reefer

Community Member
View Badges
Joined
Jan 4, 2019
Messages
42
Reaction score
42
Location
Nashville
Rating - 0%
0   0   0
The forward / reverse action is a required thing for dosing system , it’s an additional thing we do because l293d chip provides that capability. I am not sure if the koralia nano power head allows you to pass dc current directly , last time I checked it take ac current and won’t let you control the speed externally , only jebao or gyre allows that.
Currently reef-pi does not have powerhead automation capabilities builtin, so timers for on off and light or doser module for speed control is your best option. I am planning to add native wavemaker capabilities as part of 3.0 development

So on the doser, if the reverse GPIO is simply grounded and the forward is enabled, the motor won’t work? And I have the koralia 12 V model which is DC and is controllable.
 
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
So on the doser, if the reverse GPIO is simply grounded and the forward is enabled, the motor won’t work? And I have the koralia 12 V model which is DC and is controllable.
If you are using drok board , this will not matter (forward /reverse logic), as you’ll be passing only the pwm signal and no direction control. Do you have a link for your powerhead,? I’m curious
 

Young_Reefer

Community Member
View Badges
Joined
Jan 4, 2019
Messages
42
Reaction score
42
Location
Nashville
Rating - 0%
0   0   0
If you are using drok board , this will not matter (forward /reverse logic), as you’ll be passing only the pwm signal and no direction control. Do you have a link for your powerhead,? I’m curious

I haven’t looked at the Drok logic much. Here is the pump, I’m not sure if koralia still makes these but you can find them. Also, the wavemaker they produce for them is $135. Quite expensive for my little 3.7 g pico haha.

https://www.amazon.com/Hydor-Koralia-Controllable-Circulation-100-260/dp/B0019IOJKE
 

revhtree

Owner Administrator
View Badges
Joined
May 8, 2006
Messages
53,911
Reaction score
118,917
Rating - 100%
1   0   0
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 @Tom Bishop
@theatrus
I ran across this today and wonder if it can be of use to our reef pi installs...its called Log2Ram.
It writes the linux logs to ram and then once an hour writes to the sd card. This lengthens the sd cards life tremendously. Can this be installed with reef pi?
Maybe the code is something that can be borrowed so reef pi logs can be written the same way?
This is a bit out of my realm but thought id let the code gurus weigh in.

Here is the link
https://mcuoneclipse.com/2019/04/01...rd-lifetime-for-raspberry-pi-lorawan-gateway/
I’m also waiting for pi 4 release updated, I don’t want to add software complexity if the new pi hardware has better storage portfolio (emmc or sata) .
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
I’m also waiting for pi 4 release updated, I don’t want to add software complexity if the new pi hardware has better storage portfolio (emmc or sata) .

+1, I'd really like to see some kind of Sata, be it m.2 etc but the footprint limits the option, I'd be happy with dual SD cards at least I could synch to make my second card ready to go or mirror the cards. I agree though waiting to see what the new hardware brings to the table makes a lot of sense, just my opinion though.

:)
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Here is what I see with the update, if you have not updated since DEC then the list will be even longer and if you are running the desktop version it will be much longer:
Code:
The following packages will be upgraded:
  base-files gnupg gnupg-agent gpgv libasound2 libasound2-data libc-bin libc-dev-bin libc-l10n libc6 libc6-dbg libc6-dev
  libpam-systemd libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libssl1.0.2 libsystemd0 libudev1
  libwbclient0 libxapian30 locales multiarch-support openssh-client openssh-server openssh-sftp-server python3-six
  raspberrypi-bootloader raspberrypi-kernel raspi-config raspi-copies-and-fills samba-common ssh systemd systemd-sysv tzdata
  udev wget wireless-regdb wpasupplicant

The interesting bits to me are the kernel updates, bootloader updates, openssh-server and the wpasupplicant which is really interesting.

WPA supplicant changes that are prompted during the upgrade:
Code:
apt-listchanges: News
---------------------

wpasupplicant (2:2.6-19) unstable; urgency=medium

  With this release, wpasupplicant no longer respects the system
  default minimum TLS version, defaulting to TLSv1.0, not TLSv1.2. If
  you're sure you will never connect to EAP networks requiring anything less
  than 1.2, add this to your wpasupplicant configuration:

    tls_disable_tlsv1_0=1
    tls_disable_tlsv1_1=1

  wpasupplicant also defaults to a security level 1, instead of the system
  default 2. Should you need to change that, change this setting in your
  wpasupplicant configuration:

    openssl_ciphers=DEFAULT@SECLEVEL=2

  Unlike wpasupplicant, hostapd still respects system defaults.

 -- Andrej Shadura <[email protected]>  Sat, 15 Dec 2018 14:22:18 +0100

My upgrade did not go smoothly at all, I would recommend to hold off for the time being, I will do some more poking around and see what I can figure out:

Code:
Setting up samba-common (2:4.5.16+dfsg-1+deb9u1) ...
Segmentation fault
Segmentation fault
dpkg: error processing package samba-common (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up openssh-server (1:7.4p1-10+deb9u6) ...
dpkg: error processing package openssh-server (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up locales (2.24-11+deb9u4) ...
Segmentation fault
dpkg: error processing package locales (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of ssh:
 ssh depends on openssh-server (>= 1:7.4p1-10+deb9u6); however:
  Package openssh-server is not configured yet.

dpkg: error processing package ssh (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 samba-common
 openssh-server
 locales
 ssh
E: Sub-process /usr/bin/dpkg returned an error code (1)

:)
 

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

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

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

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

    Votes: 11 7.6%
Back
Top