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

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
Easy enough! Works perfectly on my HS105 btw, so you can maybe call those HS103/HS105.

Next issue. ugh. sorry about all this. I can't seem to get my GPIO equipment outlets working.. same wiring setup I used before with my other Pi3 that was just working. so I was just moving it over to a replacement Pi3. so I know for a fact that it's something in the OS settings. Temp sensors are working fine, just not the equipment outlets.

I updated all the settings as per this page.. anything else I might be missing or should check? **Edit - Also verified I can't get an LED light to turn on with GPIO. maybe something wrong with this new pi3?

Double check your wiring maybe you have a bad ground somewhere.
 
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
Easy enough! Works perfectly on my HS105 btw, so you can maybe call those HS103/HS105.

Next issue. ugh. sorry about all this. I can't seem to get my GPIO equipment outlets working.. same wiring setup I used before with my other Pi3 that was just working. so I was just moving it over to a replacement Pi3. so I know for a fact that it's something in the OS settings. Temp sensors are working fine, just not the equipment outlets.

I updated all the settings as per this page.. anything else I might be missing or should check? **Edit - Also verified I can't get an LED light to turn on with GPIO. maybe something wrong with this new pi3?

hmm.. GPIO does not need any specific setting.

Whatever it is, we can figure it out if we do systematic troubleshooting. Lets focus on the specific issue first (GPIO not turning on LED). Share your setting, i.e. which GPIO you are using, how outlet and equipment is declared in reef-pi and finally your circuit. Share a picture if possible to illustrate the circuit and if you have multimeter take the voltage reading. Also share the reef-pi log when you click the equioment on/off button
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
hmm.. GPIO does not need any specific setting.

Whatever it is, we can figure it out if we do systematic troubleshooting. Lets focus on the specific issue first (GPIO not turning on LED). Share your setting, i.e. which GPIO you are using, how outlet and equipment is declared in reef-pi and finally your circuit. Share a picture if possible to illustrate the circuit and if you have multimeter take the voltage reading. Also share the reef-pi log when you click the equioment on/off button


Right now, just broke the system down to the simplest components. verified the led's light on direct power. - gpio 23 and 24. pics attached. where are the logs located?

pic2.jpg pic1.jpg ReefPiEquipment.PNG

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

just fyi on what version I'm running

Also, just FYI. I reloaded my original Pi3 and having the same issue. so I verified that it's not a hardware issue. because I've been using that one for a while with no issues.
 
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
wiring looks ok, for logs
Code:
journalctl -fu reef-pi.service

Check with multimeter the voltage on the +ve side of the LED or the connecting jumper, it should read 3.3v when on and 0 when off. You should also see 1 or 0 written in corresponding sysfs file
Code:
cat /sys/class/gpio/gpio23
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
wiring looks ok, for logs
Code:
journalctl -fu reef-pi.service

Check with multimeter the voltage on the +ve side of the LED or the connecting jumper, it should read 3.3v when on and 0 when off. You should also see 1 or 0 written in corresponding sysfs file
Code:
cat /sys/class/gpio/gpio23

showing 0 on the multimeter - I see the posts when I click the button.

Dec 03 22:06:11 raspberrypi reef-pi[1781]: 2019/12/03 22:06:11 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:15 raspberrypi reef-pi[1781]: 2019/12/03 22:06:15 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:19 raspberrypi reef-pi[1781]: 2019/12/03 22:06:19 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:23 raspberrypi reef-pi[1781]: 2019/12/03 22:06:23 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 Reading temperature from device: 28-f0a0a0abbd4f
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 Reading temperature from device: 28-04177049bcff
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 Temperature controller is running in dev mode, skipping sensor reading.
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 temperature sub-system: sensor Probe 3 value: 80.05
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 Reading temperature from device: 28-2392abcabcabc
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 Temperature controller is running in dev mode, skipping sensor reading.
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 temperature sub-system: sensor Probe 2 value: 80.94
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 temperature sub-system: sensor Probe 1 value: 80.69
Dec 03 22:06:25 raspberrypi reef-pi[1781]: 2019/12/03 22:06:25 health check: Used memory: 14.57 Load5: 0.62
Dec 03 22:06:26 raspberrypi reef-pi[1781]: 2019/12/03 22:06:26 API Request:' POST /api/equipment/7' from: 10.10.0.138:55250
Dec 03 22:06:26 raspberrypi reef-pi[1781]: 2019/12/03 22:06:26 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:06:27 raspberrypi reef-pi[1781]: 2019/12/03 22:06:27 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:30 raspberrypi reef-pi[1781]: 2019/12/03 22:06:30 API Request:' POST /api/equipment/7' from: 10.10.0.138:55250
Dec 03 22:06:30 raspberrypi reef-pi[1781]: 2019/12/03 22:06:30 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:06:31 raspberrypi reef-pi[1781]: 2019/12/03 22:06:31 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:35 raspberrypi reef-pi[1781]: 2019/12/03 22:06:35 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:39 raspberrypi reef-pi[1781]: 2019/12/03 22:06:39 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:43 raspberrypi reef-pi[1781]: 2019/12/03 22:06:43 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:47 raspberrypi reef-pi[1781]: 2019/12/03 22:06:47 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:51 raspberrypi reef-pi[1781]: 2019/12/03 22:06:51 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:52 raspberrypi reef-pi[1781]: 2019/12/03 22:06:52 API Request:' POST /api/equipment/7' from: 10.10.0.138:55250
Dec 03 22:06:52 raspberrypi reef-pi[1781]: 2019/12/03 22:06:52 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:06:54 raspberrypi reef-pi[1781]: 2019/12/03 22:06:54 API Request:' POST /api/equipment/7' from: 10.10.0.138:55250
Dec 03 22:06:54 raspberrypi reef-pi[1781]: 2019/12/03 22:06:54 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:06:55 raspberrypi reef-pi[1781]: 2019/12/03 22:06:55 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:59 raspberrypi reef-pi[1781]: 2019/12/03 22:06:59 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:07:03 raspberrypi reef-pi[1781]: 2019/12/03 22:07:03 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:07:05 raspberrypi reef-pi[1781]: 2019/12/03 22:07:05 API Request:' POST /api/equipment/4' from: 10.10.0.138:55250
Dec 03 22:07:05 raspberrypi reef-pi[1781]: 2019/12/03 22:07:05 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:07:06 raspberrypi reef-pi[1781]: 2019/12/03 22:07:06 API Request:' POST /api/equipment/4' from: 10.10.0.138:55250
Dec 03 22:07:06 raspberrypi reef-pi[1781]: 2019/12/03 22:07:06 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:07:07 raspberrypi reef-pi[1781]: 2019/12/03 22:07:07 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:07:09 raspberrypi reef-pi[1781]: 2019/12/03 22:07:09 API Request:' POST /api/equipment/14' from: 10.10.0.138:55250
Dec 03 22:07:09 raspberrypi reef-pi[1781]: 2019/12/03 22:07:09 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:07:10 raspberrypi reef-pi[1781]: 2019/12/03 22:07:10 API Request:' POST /api/equipment/14' from: 10.10.0.138:55250
Dec 03 22:07:10 raspberrypi reef-pi[1781]: 2019/12/03 22:07:10 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:07:11 raspberrypi reef-pi[1781]: 2019/12/03 22:07:11 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:07:15 raspberrypi reef-pi[1781]: 2019/12/03 22:07:15 API Request:' GET /api/me' from: 10.10.0.138:55250
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
hello @Ranjib or other friends , is this MCP23017 can still be input into reef-pi ?, sorry I need enlightenment because I read back there is rarely anyone talking about MCP23017, I just need an additional inlet for the Ato function.

Thank you very much.
Support for MCP23017 was not implemented in 3.0. On the other hand, we added support for using the PCA9685 as GPIO outputs, so that could free up some GPIO inputs.
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
150
Rating - 0%
0   0   0
showing 0 on the multimeter - I see the posts when I click the button.

Dec 03 22:06:11 raspberrypi reef-pi[1781]: 2019/12/03 22:06:11 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:15 raspberrypi reef-pi[1781]: 2019/12/03 22:06:15 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:19 raspberrypi reef-pi[1781]: 2019/12/03 22:06:19 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:23 raspberrypi reef-pi[1781]: 2019/12/03 22:06:23 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 Reading temperature from device: 28-f0a0a0abbd4f
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 Reading temperature from device: 28-04177049bcff
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 Temperature controller is running in dev mode, skipping sensor reading.
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 temperature sub-system: sensor Probe 3 value: 80.05
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 Reading temperature from device: 28-2392abcabcabc
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 Temperature controller is running in dev mode, skipping sensor reading.
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 temperature sub-system: sensor Probe 2 value: 80.94
Dec 03 22:06:24 raspberrypi reef-pi[1781]: 2019/12/03 22:06:24 temperature sub-system: sensor Probe 1 value: 80.69
Dec 03 22:06:25 raspberrypi reef-pi[1781]: 2019/12/03 22:06:25 health check: Used memory: 14.57 Load5: 0.62
Dec 03 22:06:26 raspberrypi reef-pi[1781]: 2019/12/03 22:06:26 API Request:' POST /api/equipment/7' from: 10.10.0.138:55250
Dec 03 22:06:26 raspberrypi reef-pi[1781]: 2019/12/03 22:06:26 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:06:27 raspberrypi reef-pi[1781]: 2019/12/03 22:06:27 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:30 raspberrypi reef-pi[1781]: 2019/12/03 22:06:30 API Request:' POST /api/equipment/7' from: 10.10.0.138:55250
Dec 03 22:06:30 raspberrypi reef-pi[1781]: 2019/12/03 22:06:30 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:06:31 raspberrypi reef-pi[1781]: 2019/12/03 22:06:31 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:35 raspberrypi reef-pi[1781]: 2019/12/03 22:06:35 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:39 raspberrypi reef-pi[1781]: 2019/12/03 22:06:39 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:43 raspberrypi reef-pi[1781]: 2019/12/03 22:06:43 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:47 raspberrypi reef-pi[1781]: 2019/12/03 22:06:47 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:51 raspberrypi reef-pi[1781]: 2019/12/03 22:06:51 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:52 raspberrypi reef-pi[1781]: 2019/12/03 22:06:52 API Request:' POST /api/equipment/7' from: 10.10.0.138:55250
Dec 03 22:06:52 raspberrypi reef-pi[1781]: 2019/12/03 22:06:52 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:06:54 raspberrypi reef-pi[1781]: 2019/12/03 22:06:54 API Request:' POST /api/equipment/7' from: 10.10.0.138:55250
Dec 03 22:06:54 raspberrypi reef-pi[1781]: 2019/12/03 22:06:54 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:06:55 raspberrypi reef-pi[1781]: 2019/12/03 22:06:55 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:06:59 raspberrypi reef-pi[1781]: 2019/12/03 22:06:59 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:07:03 raspberrypi reef-pi[1781]: 2019/12/03 22:07:03 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:07:05 raspberrypi reef-pi[1781]: 2019/12/03 22:07:05 API Request:' POST /api/equipment/4' from: 10.10.0.138:55250
Dec 03 22:07:05 raspberrypi reef-pi[1781]: 2019/12/03 22:07:05 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:07:06 raspberrypi reef-pi[1781]: 2019/12/03 22:07:06 API Request:' POST /api/equipment/4' from: 10.10.0.138:55250
Dec 03 22:07:06 raspberrypi reef-pi[1781]: 2019/12/03 22:07:06 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:07:07 raspberrypi reef-pi[1781]: 2019/12/03 22:07:07 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:07:09 raspberrypi reef-pi[1781]: 2019/12/03 22:07:09 API Request:' POST /api/equipment/14' from: 10.10.0.138:55250
Dec 03 22:07:09 raspberrypi reef-pi[1781]: 2019/12/03 22:07:09 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:07:10 raspberrypi reef-pi[1781]: 2019/12/03 22:07:10 API Request:' POST /api/equipment/14' from: 10.10.0.138:55250
Dec 03 22:07:10 raspberrypi reef-pi[1781]: 2019/12/03 22:07:10 API Request:' GET /api/equipment' from: 10.10.0.138:55250
Dec 03 22:07:11 raspberrypi reef-pi[1781]: 2019/12/03 22:07:11 API Request:' GET /api/me' from: 10.10.0.138:55250
Dec 03 22:07:15 raspberrypi reef-pi[1781]: 2019/12/03 22:07:15 API Request:' GET /api/me' from: 10.10.0.138:55250

Also..

pi@raspberrypi:~ $ cat /sys/class/gpio/gpio23
cat: /sys/class/gpio/gpio23: No such file or directory
 

hhaase

Active Member
View Badges
Joined
Nov 11, 2019
Messages
418
Reaction score
344
Rating - 0%
0   0   0
I finally got a chance to get mine booted up and do some initial testing. The good news is a basic hat board can easily be run off an 7805 regulator, no need for the switcher. The DS18B20 temp sensors I have are also running ok off the 5v bus, the datasheet said they are tolerant of 3v to 5.5v input. Next step for me is to grab a water photo-sensor and check that circuit is running ok as well. Either way I'm going to start doing a revised version shortly of my basic hat board, since I have to order some boards for my business next week, and it'd be nice to combine shipping.

Ranjib and I had a brief PM discussion about those photo-sensors. It seems the consensus, which I agree with, is float switches are better for control purposes. But I believe the photo-sensors are much better suited as flood/leak detectors, so I'd like to keep one on my own board layout.

I also have to figure out how to access via my phone, right now I have it plugged into a small computer monitor I have, but I need that monitor for other uses so I can only borrow it temporarily. Oh, and I just followed the github instructions, so I installed ReefPi 2.0, I'll need to get 3.0 on there soon too.

Either way a fun day for me.
 
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 reloaded with NOOBS Raspbian vs my Berryboot Raspbian.. and it's working now.. all of that issue was OS related. not sure what or why that would be.
Wow :-) I was perplexed by gpio 100 and 500
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
@Ranjib
Still getting the daily reboot at midnight...have a more meaningful log now

Dec 03 23:58:34 75gallon reef-pi[6735]: 2019/12/03 23:58:34 Reading temperature from device: 28-00000ab39d96
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: RearLight Channel: Blue Value: 98.95719270325979
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 98.95719270325979 at channel: 7
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4052
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Reading temperature from device: 28-00000ab3a23f
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: RearLight Channel: White Value: 0
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 0 at channel: 6
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4096
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: FrontLight Channel: White Value: 0
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 0 at channel: 3
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4096
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: FrontLight Channel: Blue Value: 98.95779903116652
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 98.95779903116652 at channel: 4
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4052
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Reading temperature from device: 28-00000a9a1050
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 temperature sub-system: sensor RightTemp value: 77.79
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 temperature sub-system: sensor AmbientTemp value: 69.13
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Current value of 'RightTemp' is below minimum threshold. Executing up routine
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Euipment: 4 On: true
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 ERROR: Failed to submit data to adafruit.io. User: Bigtrout Feed: righttemp-down Error: {"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 temperature sub-system: sensor LeftTemp value: 77.68
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 health check: Used memory: 7.66 Load5: 0.14
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 Current value of 'LeftTemp' is below minimum threshold. Executing up routine
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 Euipment: 3 On: true
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 ERROR: Failed to submit data to adafruit.io. User: Bigtrout Feed: lefttemp-down Error: {"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs"
Dec 03 23:59:05 75gallon reef-pi[6735]: panic: runtime error: index out of range [12] with length 12
Dec 03 23:59:05 75gallon reef-pi[6735]: goroutine 43 [running]:
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/pwm_profile.(*interval).Get(0x26ebd40, 0x4006d459, 0xbf71ed26, 0x784d8ecf, 0x4e80, 0xa20568, 0xa20568, 0x2709bd0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/pwm_profile/interval.go:27 +0x154
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Channel).ValueAt(0x2455180, 0x4006d459, 0xbf71ed26, 0x784d8ecf, 0x4e80, 0xa20568, 0x4058bd4c, 0x0, 0x0, 0x40590000)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/channel.go:57 +0x58
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).syncLight(0x244b4d0, 0x28e2a60)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/light.go:134 +0x1f8
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).syncLights(0x244b4d0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:102 +0x58
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).StartCycle(0x244b4d0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:59 +0x4c
Dec 03 23:59:05 75gallon reef-pi[6735]: created by github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).Start
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:48 +0x2c
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Unit entered failed state.
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Failed with result 'exit-code'.
Dec 04 00:00:35 75gallon systemd[1]: reef-pi.service: Service hold-off time over, scheduling restart.
Dec 04 00:00:35 75gallon systemd[1]: fake-hwclock.service: Cannot add dependency job, ignoring: Unit fake-hwclock.service is masked.
Dec 04 00:00:35 75gallon systemd[1]: Stopped raspberry pi based reef tank controller.
Dec 04 00:00:35 75gallon systemd[1]: Started raspberry pi based reef tank controller.
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: rpi Name: Raspberry Pi
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: 1 Name: pHboard
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: 3 Name: PWM
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: system
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 INFO: equipment subsystem: Finished syncing all equipment
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: equipment
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: ato
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 Successfully started subsystem: lightings
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 lighting subsystem: Setting Light: RearLight Channel: White Value: 0
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 lighting-subsystem: Setting PWM value: 0 at channel: 6
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 onTime 0 offTime 4096
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting subsystem: Setting Light: RearLight Channel: Blue Value: 98.51961305183093
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting-subsystem: Setting PWM value: 98.51961305183093 at channel: 7
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 onTime 0 offTime 4034
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting subsystem: Setting Light: FrontLight Channel: White Value: 0

Looks to be the lighting module causing the crash somehow
 
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
Still getting the daily reboot at midnight...have a more meaningful log now

Dec 03 23:58:34 75gallon reef-pi[6735]: 2019/12/03 23:58:34 Reading temperature from device: 28-00000ab39d96
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: RearLight Channel: Blue Value: 98.95719270325979
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 98.95719270325979 at channel: 7
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4052
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Reading temperature from device: 28-00000ab3a23f
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: RearLight Channel: White Value: 0
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 0 at channel: 6
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4096
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: FrontLight Channel: White Value: 0
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 0 at channel: 3
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4096
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting subsystem: Setting Light: FrontLight Channel: Blue Value: 98.95779903116652
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 lighting-subsystem: Setting PWM value: 98.95779903116652 at channel: 4
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 onTime 0 offTime 4052
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Reading temperature from device: 28-00000a9a1050
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 temperature sub-system: sensor RightTemp value: 77.79
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 temperature sub-system: sensor AmbientTemp value: 69.13
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Current value of 'RightTemp' is below minimum threshold. Executing up routine
Dec 03 23:58:35 75gallon reef-pi[6735]: 2019/12/03 23:58:35 Euipment: 4 On: true
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 ERROR: Failed to submit data to adafruit.io. User: Bigtrout Feed: righttemp-down Error: {"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 temperature sub-system: sensor LeftTemp value: 77.68
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 health check: Used memory: 7.66 Load5: 0.14
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 Current value of 'LeftTemp' is below minimum threshold. Executing up routine
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 Euipment: 3 On: true
Dec 03 23:58:36 75gallon reef-pi[6735]: 2019/12/03 23:58:36 ERROR: Failed to submit data to adafruit.io. User: Bigtrout Feed: lefttemp-down Error: {"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs"
Dec 03 23:59:05 75gallon reef-pi[6735]: panic: runtime error: index out of range [12] with length 12
Dec 03 23:59:05 75gallon reef-pi[6735]: goroutine 43 [running]:
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/pwm_profile.(*interval).Get(0x26ebd40, 0x4006d459, 0xbf71ed26, 0x784d8ecf, 0x4e80, 0xa20568, 0xa20568, 0x2709bd0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/pwm_profile/interval.go:27 +0x154
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Channel).ValueAt(0x2455180, 0x4006d459, 0xbf71ed26, 0x784d8ecf, 0x4e80, 0xa20568, 0x4058bd4c, 0x0, 0x0, 0x40590000)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/channel.go:57 +0x58
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).syncLight(0x244b4d0, 0x28e2a60)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/light.go:134 +0x1f8
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).syncLights(0x244b4d0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:102 +0x58
Dec 03 23:59:05 75gallon reef-pi[6735]: github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).StartCycle(0x244b4d0)
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:59 +0x4c
Dec 03 23:59:05 75gallon reef-pi[6735]: created by github.com/reef-pi/reef-pi/controller/modules/lighting.(*Controller).Start
Dec 03 23:59:05 75gallon reef-pi[6735]: /Users/ranjib/workspace/reef-pi/reef-pi/controller/modules/lighting/controller.go:48 +0x2c
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Unit entered failed state.
Dec 03 23:59:05 75gallon systemd[1]: reef-pi.service: Failed with result 'exit-code'.
Dec 04 00:00:35 75gallon systemd[1]: reef-pi.service: Service hold-off time over, scheduling restart.
Dec 04 00:00:35 75gallon systemd[1]: fake-hwclock.service: Cannot add dependency job, ignoring: Unit fake-hwclock.service is masked.
Dec 04 00:00:35 75gallon systemd[1]: Stopped raspberry pi based reef tank controller.
Dec 04 00:00:35 75gallon systemd[1]: Started raspberry pi based reef tank controller.
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: rpi Name: Raspberry Pi
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: 1 Name: pHboard
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 driver-subsystem: registering driver id: 3 Name: PWM
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: system
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 INFO: equipment subsystem: Finished syncing all equipment
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: equipment
Dec 04 00:00:35 75gallon reef-pi[7696]: 2019/12/04 00:00:35 Successfully started subsystem: ato
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 Successfully started subsystem: lightings
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 lighting subsystem: Setting Light: RearLight Channel: White Value: 0
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 lighting-subsystem: Setting PWM value: 0 at channel: 6
Dec 04 00:00:37 75gallon reef-pi[7696]: 2019/12/04 00:00:37 onTime 0 offTime 4096
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting subsystem: Setting Light: RearLight Channel: Blue Value: 98.51961305183093
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting-subsystem: Setting PWM value: 98.51961305183093 at channel: 7
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 onTime 0 offTime 4034
Dec 04 00:00:38 75gallon reef-pi[7696]: 2019/12/04 00:00:38 lighting subsystem: Setting Light: FrontLight Channel: White Value: 0

Looks to be the lighting module causing the crash somehow
Definitely a bug in reef-pi lighting module. I'lll fix it asap. Thank you for reporting.Im tracking it here: https://github.com/reef-pi/reef-pi/issues/960
any chance you can share the light settings? I can dig it up in case you have already shared it
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
@Ranjib An add to above...all 4 of my lighting channels are on interval start time of 00:00:00 and ending 23:59:59

Pca9685 set at 250hz light1 jack pins 3,4 light2 jack pins 6,7

Frontlight is light1(3,4) and rearlight is light2(6,7)
 

Soulreefer

Community Member
View Badges
Joined
Aug 16, 2018
Messages
44
Reaction score
67
Location
Jakarta, Indonesia
Rating - 0%
0   0   0
Support for MCP23017 was not implemented in 3.0. On the other hand, we added support for using the PCA9685 as GPIO outputs, so that could free up some GPIO inputs.
@Michael Lane thank you for the answer. okay, now the problem is resolved, I can use GPIO17, 23, 24 for the ATO function and it works correctly .. apparently I have to learn so much to understand the Pin function correctly.

thank You
 
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 An add to above...all 4 of my lighting channels are on interval start time of 00:00:00 and ending 23:59:59

Pca9685 set at 250hz light1 jack pins 3,4 light2 jack pins 6,7

Frontlight is light1(3,4) and rearlight is light2(6,7)
Thanks I needed the profile details, so
start: 00:00:00
end: 23:59:59
what about interval and the setpoints?
 
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 needed the profile details, so
start: 00:00:00
end: 23:59:59
what about interval and the setpoints?
So this is effectively a 24 hour light setup ?
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
So this is effectively a 24 hour light setup ?
Yes intervals are what the ui made them. Nl special profiles yet I use blue nightlights overnight til 2am.

White lights...pins 3 and 6 are off at the time thisn
happens but blues pins 4 and 7 are at 99 or 100 percent at the time.

White lights
Screenshot_20191204-014152_Chrome.jpg


Blue lights
Screenshot_20191204-014214_Chrome.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
Yes intervals are what the ui made them. Nl special profiles yet I use blue nightlights overnight til 2am.

White lights...pins 3 and 6 are off at the time thisn
happens but blues pins 4 and 7 are at 99 or 100 percent at the time.

White lights
Screenshot_20191204-014152_Chrome.jpg


Blue lights
Screenshot_20191204-014214_Chrome.jpg
While i work on the fix, i was also thinking this profile can be written more tersely,
Screen Shot 2019-12-03 at 11.52.09 PM.png
 

TOP 10 Trending Threads

Back
Top