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

Cristian2281

New Member
View Badges
Joined
Jul 26, 2020
Messages
10
Reaction score
6
Location
UK
Rating - 0%
0   0   0
I came across that, it seems the Pi is doing something with that pin causing it to go low and high, if you assign it as a piece of equipment it should stop as reef-pi will control it at that point. When the Pi starts that pin will always switch once until reef-pi actually gets running so if that's a problem use a different pin.
I think I already had it assigned, I’ll check that. If it is still acting up I might just reinstall the os and reef-pi .my setup is fairly simple atm, just relay control and a button to trigger a macro for feeding time.
 

Mikeneedsahobby

Well-Known Member
View Badges
Joined
Sep 16, 2018
Messages
516
Reaction score
922
Rating - 0%
0   0   0
I am having an issue with a timer triggering a macro. I am on 3.3.1. I left a message with details in an existing issue post from May.

I can get a timer to start a simple macro, but when I try to have a timer trigger my real macro nothing happens.

If I missed something explaining this here let me know. Maybe I missed it.

Thanks,
Mike
 

ChrisNH

Active Member
View Badges
Joined
Mar 21, 2019
Messages
305
Reaction score
254
Rating - 0%
0   0   0
Concerning the address field..

assuming I have a pi running reef-pi at 192.168.0.xxx, would I select https and enter 192.168.0.xxx:443 in the field?

Can I get some help with this? I would really like to access my reef pi via https when I am travelling.
 

ChrisNH

Active Member
View Badges
Joined
Mar 21, 2019
Messages
305
Reaction score
254
Rating - 0%
0   0   0
Use ip:443 in the address field (in reef-pi ui ).

Thank you, that worked. It seemed like what it wanted but I didn't want to have to reset my reef-pi this close to travelling if I screwed it up. Hands off the pi now!

What made it weird to me is that I thought it should already know what the IP address is but I guess there could be is more than one connection and I could specify using this field.
 

Smin

New Member
View Badges
Joined
Apr 25, 2019
Messages
23
Reaction score
19
Rating - 0%
0   0   0
So I've been doing some playing.
If I monitor errors and restart reef pi I get the following
Code:
Aug 06 18:15:04 homecontrol systemd[1]: Stopped raspberry pi based reef tank controller.
Aug 06 18:15:04 homecontrol systemd[1]: Started raspberry pi based reef tank controller.
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: failed to initialize drivers. Error: can't build hal pin 6: embd: your host ": ARMv7 Processor rev 3 (v7l)" is not supported at this moment. request support at https://github.com/kidoman/embd/issues
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: temperature
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: lightings
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Cool White Channel: Channel-1 Value: 2
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 2  at channel: 0
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 0 on jack 1 has no driver: driver 11 for jack Cool White not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Warm White Channel: Channel-1 Value: 7.763657143074572
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 7.763657143074572  at channel: 1
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 1 on jack 2 has no driver: driver 11 for jack Warm White not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Very Warm White Channel: Channel-1 Value: 8.84254682066007
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 8.84254682066007  at channel: 2
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 2 on jack 3 has no driver: driver 11 for jack Very Warm White not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Red Channel: Channel-1 Value: 0
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 0  at channel: 3
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 3 on jack 4 has no driver: driver 11 for jack Red not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Green Channel: Channel-1 Value: 0
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 0  at channel: 4
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 4 on jack 5 has no driver: driver 11 for jack Green not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: macro
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Blue Channel: Channel-1 Value: 0
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 0  at channel: 5
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 5 on jack 6 has no driver: driver 11 for jack Blue not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: timers
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: system
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 INFO: equipment subsystem: Finished syncing all equipment
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: equipment
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: ato
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 reef-pi is up and running

If I enable dev mode in the gui the error on the gui under connectors goes away and it shows the connectors, there are no logged errors, however the lights don't come on!
Code:
Aug 06 18:16:21 homecontrol systemd[1]: Stopped raspberry pi based reef tank controller.
Aug 06 18:16:21 homecontrol systemd[1]: Started raspberry pi based reef tank controller.
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 RPI Driver using DEV Mode
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 driver-subsystem: registering driver id: rpi Name: Raspberry Pi
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 driver-subsystem: registering driver id: 11 Name: PCA9685
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: ato
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: temperature
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: lightings
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Cool White Channel: Channel-1 Value: 2
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 2  at channel: 0
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  81
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Warm White Channel: Channel-1 Value: 7.99876716342604
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 7.99876716342604  at channel: 1
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  327
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Very Warm White Channel: Channel-1 Value: 9.424655217591969
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 9.424655217591969  at channel: 2
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  385
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Red Channel: Channel-1 Value: 0
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 0  at channel: 3
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  4096
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Green Channel: Channel-1 Value: 0
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 0  at channel: 4
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  4096
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Blue Channel: Channel-1 Value: 0
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 0  at channel: 5
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  4096
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: macro
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: timers
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: system
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 INFO: equipment subsystem: Finished syncing all equipment
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: equipment
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 reef-pi is up and running

I'm guessing the following driver is to blame
ERROR: failed to initialize drivers. Error: can't build hal pin 6: embd: your host ": ARMv7 Processor rev 3 (v7l)" is not supported at this moment. request support at https://github.com/kidoman/embd/issues
Though I'm not sure it helps us resolve it!
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Thank you, that worked. It seemed like what it wanted but I didn't want to have to reset my reef-pi this close to travelling if I screwed it up. Hands off the pi now!

What made it weird to me is that I thought it should already know what the IP address is but I guess there could be is more than one connection and I could specify using this field.
I prefer to put address as 0.0.0.0, which instructs Linux to bind the web server in all ip, so even if your pi pi changes, it will work. Address 127.0.0.1 does the opposite and only local things Running on the pi itself can access , I.e. no access even from home network
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
So I've been doing some playing.
If I monitor errors and restart reef pi I get the following
Code:
Aug 06 18:15:04 homecontrol systemd[1]: Stopped raspberry pi based reef tank controller.
Aug 06 18:15:04 homecontrol systemd[1]: Started raspberry pi based reef tank controller.
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: failed to initialize drivers. Error: can't build hal pin 6: embd: your host ": ARMv7 Processor rev 3 (v7l)" is not supported at this moment. request support at https://github.com/kidoman/embd/issues
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: temperature
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: lightings
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Cool White Channel: Channel-1 Value: 2
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 2  at channel: 0
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 0 on jack 1 has no driver: driver 11 for jack Cool White not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Warm White Channel: Channel-1 Value: 7.763657143074572
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 7.763657143074572  at channel: 1
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 1 on jack 2 has no driver: driver 11 for jack Warm White not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Very Warm White Channel: Channel-1 Value: 8.84254682066007
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 8.84254682066007  at channel: 2
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 2 on jack 3 has no driver: driver 11 for jack Very Warm White not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Red Channel: Channel-1 Value: 0
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 0  at channel: 3
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 3 on jack 4 has no driver: driver 11 for jack Red not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Green Channel: Channel-1 Value: 0
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 0  at channel: 4
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 4 on jack 5 has no driver: driver 11 for jack Green not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: macro
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting subsystem: Setting Light:  Blue Channel: Channel-1 Value: 0
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 lighting-subsystem: Setting PWM value: 0  at channel: 5
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 ERROR: lighting-subsystem: Failed to set pwm value. Error: pin 5 on jack 6 has no driver: driver 11 for jack Blue not found: driver by id 11 not available
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: timers
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: system
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 INFO: equipment subsystem: Finished syncing all equipment
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: equipment
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 Successfully started subsystem: ato
Aug 06 18:15:04 homecontrol reef-pi[1012]: 2020/08/06 18:15:04 reef-pi is up and running

If I enable dev mode in the gui the error on the gui under connectors goes away and it shows the connectors, there are no logged errors, however the lights don't come on!
Code:
Aug 06 18:16:21 homecontrol systemd[1]: Stopped raspberry pi based reef tank controller.
Aug 06 18:16:21 homecontrol systemd[1]: Started raspberry pi based reef tank controller.
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 RPI Driver using DEV Mode
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 driver-subsystem: registering driver id: rpi Name: Raspberry Pi
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 driver-subsystem: registering driver id: 11 Name: PCA9685
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: ato
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: temperature
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: lightings
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Cool White Channel: Channel-1 Value: 2
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 2  at channel: 0
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  81
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Warm White Channel: Channel-1 Value: 7.99876716342604
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 7.99876716342604  at channel: 1
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  327
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Very Warm White Channel: Channel-1 Value: 9.424655217591969
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 9.424655217591969  at channel: 2
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  385
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Red Channel: Channel-1 Value: 0
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 0  at channel: 3
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  4096
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Green Channel: Channel-1 Value: 0
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 0  at channel: 4
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  4096
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting subsystem: Setting Light:  Blue Channel: Channel-1 Value: 0
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 lighting-subsystem: Setting PWM value: 0  at channel: 5
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 onTime  0  offTime  4096
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: macro
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: timers
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: system
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 INFO: equipment subsystem: Finished syncing all equipment
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 Successfully started subsystem: equipment
Aug 06 18:16:21 homecontrol reef-pi[1058]: 2020/08/06 18:16:21 reef-pi is up and running

I'm guessing the following driver is to blame
ERROR: failed to initialize drivers. Error: can't build hal pin 6: embd: your host ": ARMv7 Processor rev 3 (v7l)" is not supported at this moment. request support at https://github.com/kidoman/embd/issues
Though I'm not sure it helps us resolve it!
Are you using pi 4 ?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Yes, @Ranjib it's a pi4
Kernel 4.9 introduced a change thats causing the cpu detection plumbing in one of reef-pi dependency. This bug was discovered relatively recently, I am in process of patching it right now. Will ship with the fix (hopefully its the same bug) this weekend. Hang tight.

@Michael Lane , let me know if you have anything in mind that i should look out for the release
 

Cristian2281

New Member
View Badges
Joined
Jul 26, 2020
Messages
10
Reaction score
6
Location
UK
Rating - 0%
0   0   0
I have installed reef-pi using this guide here . However I cannot start ntp service with sudo systemctl start ntp.service and I suspect that’s the reason why I cannot use timers to trigger macros. Just looking to have some equipment off during the night. Everything else is working as expected. Is there any other way to start that service via SSH?
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,123
Rating - 0%
0   0   0
I have installed reef-pi using this guide here . However I cannot start ntp service with sudo systemctl start ntp.service and I suspect that’s the reason why I cannot use timers to trigger macros. Just looking to have some equipment off during the night. Everything else is working as expected. Is there any other way to start that service via SSH?
You probably don't need ntp service. I think Raspian no longer includes it, but systemd-timesyncd should do the same thing. I have several headless reef-pi setups and didn't have to mess with ntp for any of them.

You can confirm the newer time service is running with the following.
sudo systemctl status systemd-timesyncd.service
 

Cristian2281

New Member
View Badges
Joined
Jul 26, 2020
Messages
10
Reaction score
6
Location
UK
Rating - 0%
0   0   0
You probably don't need ntp service. I think Raspian no longer includes it, but systemd-timesyncd should do the same thing. I have several headless reef-pi setups and didn't have to mess with ntp for any of them.

You can confirm the newer time service is running with the following.
sudo systemctl status systemd-timesyncd.service
Thanks. That wasn’t the issue with my timers though. If I set up a timer to turn equipment on/off it will work. If I set it to trigger a macro it won’t . And it won’t show any error.
 

Matt Carden

Valuable Member
View Badges
Joined
Apr 13, 2018
Messages
1,641
Reaction score
4,084
Location
Detroit Metro
Rating - 0%
0   0   0
I can't remember where I bought these temp sensors. The wiring doesn't match up with the guide. The only thing that comes close is that's its the Japanese standard colors for temperature sensor wiring.
1596814105918.png

Can anyone help identify these wires or should I just buy new sensors with the correct color coding?
 

Mikeneedsahobby

Well-Known Member
View Badges
Joined
Sep 16, 2018
Messages
516
Reaction score
922
Rating - 0%
0   0   0
I can't remember where I bought these temp sensors. The wiring doesn't match up with the guide. The only thing that comes close is that's its the Japanese standard colors for temperature sensor wiring.
1596814105918.png

Can anyone help identify these wires or should I just buy new sensors with the correct color coding?
I'm pretty sure red is V+, white is ground, and yellow is data.
 

Mikeneedsahobby

Well-Known Member
View Badges
Joined
Sep 16, 2018
Messages
516
Reaction score
922
Rating - 0%
0   0   0
I am having an issue with a timer triggering a macro. I am on 3.3.1. I left a message with details in an existing issue post from May.

I can get a timer to start a simple macro, but when I try to have a timer trigger my real macro nothing happens.

If I missed something explaining this here let me know. Maybe I missed it.

Thanks,
Mike

I left the timer to start every minute at 0 seconds after about 10 minutes it ran. Over night I set it to run at 5 hr, 0 min, 0 sec. It ran.

From what I can tell the issue either resolved itself or it will work intermittently. Is there possibly an issue where if the pi doesn't look at the timer program during the "0" second that it misses the signal to start?
 

Mikeneedsahobby

Well-Known Member
View Badges
Joined
Sep 16, 2018
Messages
516
Reaction score
922
Rating - 0%
0   0   0
I've recently been down the rabbithole of Macros and Timers and thought I'd share some of my findings.

So, reef-pi can do the following since 3.0 :
  • Run a series of commands called a Macro - (Old news, but one of the most amazing features I believe)
  • Use a Timer to trigger a Macro to run.
  • Use a Macro to run another Macro or series of Macro's
  • Run a Macro in reverse. This runs the Macro steps in the reverse order and also reverses the individual steps - so "turn Item X on" becomes "turn Item X off". So a Macro with 3 steps like below
    • 1 - Turn X on
    • 2 - Turn Y off
    • 3 - Turn Z off will run as follows when run in reverse
    • 1 - Turn Z on
    • 2 - Turn Y on
    • 3 - Turn X off
  • To use this reversible function, Macros must have "Make Reversible" - "Yes" selected.
  • Once this is selected, you can run the Macro in reverse and you can use Timers and other Macros totrigger that Macro, BUT IT WILL RUN IN REVERSE. You can still run the Macro manually in forward mode, but any attempt to automate it's running will trigger it in reverse.
So for my Auto Water Change (AWC) macro, as long as I triggered it manually, it ran fine. However the only way I could get it to run properly on a timer was to re-write the Macro in reverse. Reversing the series of steps and their actions. This achieved what I was wanting - an AWC done at a preset time with no interaction from me.

This reversing thing isn't a big deal on simple Macros like "Turn X off, wait 300 seconds, Turn X on". If you run that in reverse, its exactly the same as forward. More complex Macros are not the same.

Macro's to run Macro's
I've had a "Feed" macro that I've developed and updated over time to be about an hour long now. It's evolved to be pretty bulletproof. Turning return off, skimmer off, temperature control, plus the chiller / heater off to make sure they aren't running while return is off. Turns wavemaker off for a calm period ofr fish to eat, then sowly turning the various pumps on to distribute the uneaten food so that it doesn't just end up down the overflow.
Now I managed to get a dry pellet autofeeder to run from reef-pi, I would like to be able to have a new Macro that triggers "Feed", waits 3 minutes, then triggers the autofeeder as often as I want. In order to get this right, I either need to re-write the new "Feed with autofeed" Macro or write the old "Feed" macro in reverse.
Not a big deal either way, but if you're planning on trying something similar, these are teh ways I've discovered to get these things done.

What would be nice (I think)
  • To be able to have Timers and Macros trigger Macros forward.
  • to be able to choose whether the reversible Macro runs steps in reverse, states in reverse, or both. I think I can see uses for all three.
I've rambled a bit in this post, I know, but if my experience helps another user, I'll be a happy boy.
I personally think that this kind of functionality is what makes these controllers some of the most powerful innovations in the reefkeeping hobby in recent years. Well, this and automated testing :D
I thought it would be good to repost this. This is the issue I was having with my macro. Using this post helped solve the issue.
 

Mastering the art of locking and unlocking water pathways: What type of valves do you have on your aquarium plumbing?

  • Ball valves.

    Votes: 38 47.5%
  • Gate valves.

    Votes: 42 52.5%
  • Check valves.

    Votes: 16 20.0%
  • None.

    Votes: 21 26.3%
  • Other.

    Votes: 8 10.0%
Back
Top