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

OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib
Did you see the reference to the esp8266 sonoff devices and tasmota on the other thread?
I myself prefer hardwired reef-pi but the sonoff POW R2 would allow power monitoring for 18 dollars if you could somehow incorporate it easily..
yes. I am paying close attention to this, and will consider all these perspective as and when we induct remote outlets in reef-pi, based on HAL. It will be awesome if you post any relevant r2r links in the corresponding issue: https://github.com/reef-pi/reef-pi/issues/642
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
Can you check if we are seeing fd leak when dashboard is open (/proc/<reef-pi PID>/fd should have some clue).

Sure I can poke around, what should I be looking for?

Code:
bishop@tankpi:~ $ sudo ls -l /proc/20930/fd
total 0
lr-x------ 1 root root 64 Jan 26 21:13 0 -> /dev/null
lrwx------ 1 root root 64 Jan 26 21:13 1 -> socket:[1060637]
lrwx------ 1 root root 64 Jan 26 21:13 10 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio22/value
lrwx------ 1 root root 64 Jan 26 21:13 11 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio22/active_low
lrwx------ 1 root root 64 Jan 26 21:13 12 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio23/direction
lrwx------ 1 root root 64 Jan 26 21:13 13 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio23/value
lrwx------ 1 root root 64 Jan 26 21:13 14 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio23/active_low
lrwx------ 1 root root 64 Jan 26 21:13 15 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24/direction
lrwx------ 1 root root 64 Jan 26 21:13 16 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24/value
lrwx------ 1 root root 64 Jan 26 21:13 17 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24/active_low
lrwx------ 1 root root 64 Jan 26 21:13 18 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio25/direction
lrwx------ 1 root root 64 Jan 29 19:28 19 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio25/value
lrwx------ 1 root root 64 Jan 26 21:13 2 -> socket:[1060637]
lrwx------ 1 root root 64 Jan 26 21:13 20 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio25/active_low
lrwx------ 1 root root 64 Jan 26 21:13 21 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio5/direction
lrwx------ 1 root root 64 Jan 26 21:13 22 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio5/value
lrwx------ 1 root root 64 Jan 26 21:13 23 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio5/active_low
lrwx------ 1 root root 64 Jan 26 21:13 24 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio6/direction
lrwx------ 1 root root 64 Jan 26 21:13 25 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio6/value
lrwx------ 1 root root 64 Jan 26 21:13 26 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio6/active_low
lrwx------ 1 root root 64 Jan 29 19:28 27 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio12/direction
lrwx------ 1 root root 64 Jan 26 21:13 28 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio12/value
lrwx------ 1 root root 64 Jan 29 19:28 29 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio12/active_low
lrwx------ 1 root root 64 Jan 26 21:13 3 -> /var/lib/reef-pi/reef-pi.db
lrwx------ 1 root root 64 Jan 29 19:28 30 -> socket:[1057625]
lrwx------ 1 root root 64 Jan 29 19:28 31 -> socket:[1274707]
lrwx------ 1 root root 64 Jan 26 21:13 4 -> anon_inode:[eventpoll]
lrwx------ 1 root root 64 Jan 26 21:13 5 -> /dev/i2c-1
lrwx------ 1 root root 64 Jan 26 21:13 6 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio27/direction
lrwx------ 1 root root 64 Jan 26 21:13 7 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio27/value
lrwx------ 1 root root 64 Jan 26 21:13 8 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio27/active_low
lrwx------ 1 root root 64 Jan 26 21:13 9 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio22/direction
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
Can someone who is experiencing the supposed dashboard memory leak use wireshark and post a capture? Ideally, start the capture before you open the dashboard, then we can see what the traffic is like, if there are connections that aren't closing or being reset that should be.

Before you post it...PLEASE please please remove the packets containing your login credentials (if you aren't using HTTPS). I'd also use a filter so that you don't post all the other stuff flying around on your network (use a capture filter (not a display filter at the top of the capture window) of host <reef-pi_ip_address>)

I actually do not think its a leak I think its a memory usage thing, with 2.2 it scales memory way down based on your settings. Based on what I am seeing I think I could leave a tab open for days and it not matter. However I do have a wireshark capture, although with everything being encrypted not sure how this will help. Not sure how to upload the file either being a .pcap file.

Let me know who would like the capture, I can email it, just drop me a PM.
 

Panda Jerk

Community Member
View Badges
Joined
May 17, 2016
Messages
76
Reaction score
89
Location
Mesa, AZ
Rating - 0%
0   0   0
reef-pi 1.0 has support for only a single ato, temperature control (tc) etc. reef-pi 2.0 added support for multiple ato, temperature controller etc, which is why your API calls wont work against 2.0, (and also the reason reef-pi had a major version bump, because it breaks older API). Try following:

Code:
# to list tcs
GET /api/tcs
# to fetch a single tc (with ID), this will give the config
GET /api/tcs/<ID>
# usage
GET /api/tcs/<ID>/usage

This should be analogous to most REST based APIs. I didnt get the time to document the 2.0 api , but know that the entire UI is powered by API, and you can find it under LoadAPI methods in each module, here: https://github.com/reef-pi/reef-pi/blob/master/controller/modules/temperature/api.go#L12
thank you for considering reef-pi, I'll love to know more about your build :)
Excellent. Thank you. I hadn't poured over the source code too far yet. My build will be a ways off - there's always something else to do. I'm setting up slowly and it's been a while since my last tank was online, was using a Reef Keeper then - oops, that ended poorly. But this looks very promising. Thanks.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Sure I can poke around, what should I be looking for?

Code:
bishop@tankpi:~ $ sudo ls -l /proc/20930/fd
total 0
lr-x------ 1 root root 64 Jan 26 21:13 0 -> /dev/null
lrwx------ 1 root root 64 Jan 26 21:13 1 -> socket:[1060637]
lrwx------ 1 root root 64 Jan 26 21:13 10 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio22/value
lrwx------ 1 root root 64 Jan 26 21:13 11 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio22/active_low
lrwx------ 1 root root 64 Jan 26 21:13 12 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio23/direction
lrwx------ 1 root root 64 Jan 26 21:13 13 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio23/value
lrwx------ 1 root root 64 Jan 26 21:13 14 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio23/active_low
lrwx------ 1 root root 64 Jan 26 21:13 15 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24/direction
lrwx------ 1 root root 64 Jan 26 21:13 16 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24/value
lrwx------ 1 root root 64 Jan 26 21:13 17 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24/active_low
lrwx------ 1 root root 64 Jan 26 21:13 18 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio25/direction
lrwx------ 1 root root 64 Jan 29 19:28 19 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio25/value
lrwx------ 1 root root 64 Jan 26 21:13 2 -> socket:[1060637]
lrwx------ 1 root root 64 Jan 26 21:13 20 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio25/active_low
lrwx------ 1 root root 64 Jan 26 21:13 21 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio5/direction
lrwx------ 1 root root 64 Jan 26 21:13 22 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio5/value
lrwx------ 1 root root 64 Jan 26 21:13 23 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio5/active_low
lrwx------ 1 root root 64 Jan 26 21:13 24 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio6/direction
lrwx------ 1 root root 64 Jan 26 21:13 25 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio6/value
lrwx------ 1 root root 64 Jan 26 21:13 26 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio6/active_low
lrwx------ 1 root root 64 Jan 29 19:28 27 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio12/direction
lrwx------ 1 root root 64 Jan 26 21:13 28 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio12/value
lrwx------ 1 root root 64 Jan 29 19:28 29 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio12/active_low
lrwx------ 1 root root 64 Jan 26 21:13 3 -> /var/lib/reef-pi/reef-pi.db
lrwx------ 1 root root 64 Jan 29 19:28 30 -> socket:[1057625]
lrwx------ 1 root root 64 Jan 29 19:28 31 -> socket:[1274707]
lrwx------ 1 root root 64 Jan 26 21:13 4 -> anon_inode:[eventpoll]
lrwx------ 1 root root 64 Jan 26 21:13 5 -> /dev/i2c-1
lrwx------ 1 root root 64 Jan 26 21:13 6 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio27/direction
lrwx------ 1 root root 64 Jan 26 21:13 7 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio27/value
lrwx------ 1 root root 64 Jan 26 21:13 8 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio27/active_low
lrwx------ 1 root root 64 Jan 26 21:13 9 -> /sys/devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio22/direction
Thank you for this data. No bad signs here..
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib question about the ATO alerts. I just set this up as follows and it should have tripped a the far right in this screen cap. I did not get a notification and the pump is currently on. can you assist on this because my wife is HORRIBLE at telling me she unplugged the pump once it ran dry. Plus on a controlled device, you cannot turn it off if programming wants it on. It instantly comes back on at the check period.

upload_2019-1-29_16-22-42.png
@pickupman66 I tried to reproduce this tonight in dev_mode and the alert dispatch worked as expected. From the UI its clear that the usage breached alert threshold, lets cross check if reef-pi attempted to send alerts or not. Can you check reef-pi log during that time period,
Code:
journalctl --since "3:0:0" --until "3:01:50"
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
646
Location
United States
Rating - 0%
0   0   0
I actually do not think its a leak I think its a memory usage thing, with 2.2 it scales memory way down based on your settings. Based on what I am seeing I think I could leave a tab open for days and it not matter. However I do have a wireshark capture, although with everything being encrypted not sure how this will help. Not sure how to upload the file either being a .pcap file.

Let me know who would like the capture, I can email it, just drop me a PM.

The data isn't as important as seeing the transactions between the client machine and the Pi...are connections being left open for too long, etc? Anecdotal evidence would suggest that's not the case though, and it might be more on the backend, perhaps.
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,166
Location
Winchester, TN
Rating - 0%
0   0   0
-- Logs begin at Tue 2019-01-29 10:56:47 CST, end at Wed 2019-01-30 07:30:48 CST
Jan 30 03:00:03 raspberrypi reef-pi[25088]: 2019/01/30 03:00:03 ato sub-system:
Jan 30 03:00:03 raspberrypi reef-pi[25088]: 2019/01/30 03:00:03 Setting GPIO Pin
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 ato sub-system:
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting GPIO Pin
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Lighting: Calcul
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsyst
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driv
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsyst
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driv
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsyst
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driv
Jan 30 03:00:11 raspberrypi dhcpcd[387]: wlan0: Router Advertisement from fe80::
Jan 30 03:00:11 raspberrypi dhcpcd[387]: wlan0: requesting DHCPv6 information
Jan 30 03:00:13 raspberrypi reef-pi[25088]: 2019/01/30 03:00:13 ato sub-system:
Jan 30 03:00:13 raspberrypi reef-pi[25088]: 2019/01/30 03:00:13 Setting GPIO Pin
Jan 30 03:00:18 raspberrypi reef-pi[25088]: 2019/01/30 03:00:18 ato sub-system:
Jan 30 03:00:18 raspberrypi reef-pi[25088]: 2019/01/30 03:00:18 Setting GPIO Pin
Jan 30 03:00:23 raspberrypi reef-pi[25088]: 2019/01/30 03:00:23 ato sub-system:
Jan 30 03:00:23 raspberrypi reef-pi[25088]: 2019/01/30 03:00:23 Setting GPIO Pin
Jan 30 03:00:28 raspberrypi reef-pi[25088]: 2019/01/30 03:00:28 ato sub-system:
Jan 30 03:00:28 raspberrypi reef-pi[25088]: 2019/01/30 03:00:28 Setting GPIO Pin
Jan 30 03:00:33 raspberrypi reef-pi[25088]: 2019/01/30 03:00:33 ato sub-system:
lines 1-23...skipping...
-- Logs begin at Tue 2019-01-29 10:56:47 CST, end at Wed 2019-01-30 07:30:48 CST. --
Jan 30 03:00:03 raspberrypi reef-pi[25088]: 2019/01/30 03:00:03 ato sub-system: sensor ATO value: 1
Jan 30 03:00:03 raspberrypi reef-pi[25088]: 2019/01/30 03:00:03 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 ato sub-system: sensor ATO value: 1
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Lighting: Calculated value(15.000000) for channel 'test pump' is below minimum threshold(20). Resetting
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsystem: Setting PWM value: 20 at channel: 0
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driver: pca9685 pin: 0 value: 20
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsystem: Setting PWM value: 99 at channel: 1
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driver: pca9685 pin: 1 value: 99
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsystem: Setting PWM value: 50 at channel: 2
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driver: pca9685 pin: 2 value: 50
Jan 30 03:00:11 raspberrypi dhcpcd[387]: wlan0: Router Advertisement from fe80::6238:e0ff:fe89:fbf5
Jan 30 03:00:11 raspberrypi dhcpcd[387]: wlan0: requesting DHCPv6 information
Jan 30 03:00:13 raspberrypi reef-pi[25088]: 2019/01/30 03:00:13 ato sub-system: sensor ATO value: 1
Jan 30 03:00:13 raspberrypi reef-pi[25088]: 2019/01/30 03:00:13 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:18 raspberrypi reef-pi[25088]: 2019/01/30 03:00:18 ato sub-system: sensor ATO value: 1
Jan 30 03:00:18 raspberrypi reef-pi[25088]: 2019/01/30 03:00:18 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:23 raspberrypi reef-pi[25088]: 2019/01/30 03:00:23 ato sub-system: sensor ATO value: 1
Jan 30 03:00:23 raspberrypi reef-pi[25088]: 2019/01/30 03:00:23 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:28 raspberrypi reef-pi[25088]: 2019/01/30 03:00:28 ato sub-system: sensor ATO value: 1
Jan 30 03:00:28 raspberrypi reef-pi[25088]: 2019/01/30 03:00:28 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:33 raspberrypi reef-pi[25088]: 2019/01/30 03:00:33 ato sub-system: sensor ATO value: 1
Jan 30 03:00:33 raspberrypi reef-pi[25088]: 2019/01/30 03:00:33 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 ato sub-system: sensor ATO value: 1
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Reading temperature from device: 28-01131e872049
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Reading temperature from device: 28-0213169a87aa
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Lighting: Calculated value(15.000000) for channel 'test pump' is below minimum threshold(20). Resetting
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 lighting-subsystem: Setting PWM value: 20 at channel: 0
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Setting pwm driver: pca9685 pin: 0 value: 20
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 lighting-subsystem: Setting PWM value: 99 at channel: 1
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Setting pwm driver: pca9685 pin: 1 value: 99
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 lighting-subsystem: Setting PWM value: 50 at channel: 2
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Setting pwm driver: pca9685 pin: 2 value: 50
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 health check: Used memory: 14.06 Load5: 0.08
Jan 30 03:00:39 raspberrypi reef-pi[25088]: 2019/01/30 03:00:39 temperature sub-system: sensor Sump-Temp value: 76.8866
Jan 30 03:00:39 raspberrypi reef-pi[25088]: 2019/01/30 03:00:39 temperature sub-system: sensor Tank-Temp value: 76.8866
Jan 30 03:00:39 raspberrypi reef-pi[25088]: 2019/01/30 03:00:39 temperature subsystem: Current temperature is below minimum threshold. Executing warm up routine
Jan 30 03:00:39 raspberrypi reef-pi[25088]: 2019/01/30 03:00:39 Setting GPIO Pin: 6 State: 1
Jan 30 03:00:43 raspberrypi reef-pi[25088]: 2019/01/30 03:00:43 ato sub-system: sensor ATO value: 1
Jan 30 03:00:43 raspberrypi reef-pi[25088]: 2019/01/30 03:00:43 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:48 raspberrypi reef-pi[25088]: 2019/01/30 03:00:48 ato sub-system: sensor ATO value: 1
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
-- Logs begin at Tue 2019-01-29 10:56:47 CST, end at Wed 2019-01-30 07:30:48 CST
Jan 30 03:00:03 raspberrypi reef-pi[25088]: 2019/01/30 03:00:03 ato sub-system:
Jan 30 03:00:03 raspberrypi reef-pi[25088]: 2019/01/30 03:00:03 Setting GPIO Pin
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 ato sub-system:
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting GPIO Pin
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Lighting: Calcul
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsyst
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driv
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsyst
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driv
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsyst
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driv
Jan 30 03:00:11 raspberrypi dhcpcd[387]: wlan0: Router Advertisement from fe80::
Jan 30 03:00:11 raspberrypi dhcpcd[387]: wlan0: requesting DHCPv6 information
Jan 30 03:00:13 raspberrypi reef-pi[25088]: 2019/01/30 03:00:13 ato sub-system:
Jan 30 03:00:13 raspberrypi reef-pi[25088]: 2019/01/30 03:00:13 Setting GPIO Pin
Jan 30 03:00:18 raspberrypi reef-pi[25088]: 2019/01/30 03:00:18 ato sub-system:
Jan 30 03:00:18 raspberrypi reef-pi[25088]: 2019/01/30 03:00:18 Setting GPIO Pin
Jan 30 03:00:23 raspberrypi reef-pi[25088]: 2019/01/30 03:00:23 ato sub-system:
Jan 30 03:00:23 raspberrypi reef-pi[25088]: 2019/01/30 03:00:23 Setting GPIO Pin
Jan 30 03:00:28 raspberrypi reef-pi[25088]: 2019/01/30 03:00:28 ato sub-system:
Jan 30 03:00:28 raspberrypi reef-pi[25088]: 2019/01/30 03:00:28 Setting GPIO Pin
Jan 30 03:00:33 raspberrypi reef-pi[25088]: 2019/01/30 03:00:33 ato sub-system:
lines 1-23...skipping...
-- Logs begin at Tue 2019-01-29 10:56:47 CST, end at Wed 2019-01-30 07:30:48 CST. --
Jan 30 03:00:03 raspberrypi reef-pi[25088]: 2019/01/30 03:00:03 ato sub-system: sensor ATO value: 1
Jan 30 03:00:03 raspberrypi reef-pi[25088]: 2019/01/30 03:00:03 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 ato sub-system: sensor ATO value: 1
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Lighting: Calculated value(15.000000) for channel 'test pump' is below minimum threshold(20). Resetting
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsystem: Setting PWM value: 20 at channel: 0
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driver: pca9685 pin: 0 value: 20
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsystem: Setting PWM value: 99 at channel: 1
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driver: pca9685 pin: 1 value: 99
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 lighting-subsystem: Setting PWM value: 50 at channel: 2
Jan 30 03:00:08 raspberrypi reef-pi[25088]: 2019/01/30 03:00:08 Setting pwm driver: pca9685 pin: 2 value: 50
Jan 30 03:00:11 raspberrypi dhcpcd[387]: wlan0: Router Advertisement from fe80::6238:e0ff:fe89:fbf5
Jan 30 03:00:11 raspberrypi dhcpcd[387]: wlan0: requesting DHCPv6 information
Jan 30 03:00:13 raspberrypi reef-pi[25088]: 2019/01/30 03:00:13 ato sub-system: sensor ATO value: 1
Jan 30 03:00:13 raspberrypi reef-pi[25088]: 2019/01/30 03:00:13 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:18 raspberrypi reef-pi[25088]: 2019/01/30 03:00:18 ato sub-system: sensor ATO value: 1
Jan 30 03:00:18 raspberrypi reef-pi[25088]: 2019/01/30 03:00:18 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:23 raspberrypi reef-pi[25088]: 2019/01/30 03:00:23 ato sub-system: sensor ATO value: 1
Jan 30 03:00:23 raspberrypi reef-pi[25088]: 2019/01/30 03:00:23 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:28 raspberrypi reef-pi[25088]: 2019/01/30 03:00:28 ato sub-system: sensor ATO value: 1
Jan 30 03:00:28 raspberrypi reef-pi[25088]: 2019/01/30 03:00:28 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:33 raspberrypi reef-pi[25088]: 2019/01/30 03:00:33 ato sub-system: sensor ATO value: 1
Jan 30 03:00:33 raspberrypi reef-pi[25088]: 2019/01/30 03:00:33 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 ato sub-system: sensor ATO value: 1
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Reading temperature from device: 28-01131e872049
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Reading temperature from device: 28-0213169a87aa
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Lighting: Calculated value(15.000000) for channel 'test pump' is below minimum threshold(20). Resetting
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 lighting-subsystem: Setting PWM value: 20 at channel: 0
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Setting pwm driver: pca9685 pin: 0 value: 20
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 lighting-subsystem: Setting PWM value: 99 at channel: 1
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Setting pwm driver: pca9685 pin: 1 value: 99
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 lighting-subsystem: Setting PWM value: 50 at channel: 2
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 Setting pwm driver: pca9685 pin: 2 value: 50
Jan 30 03:00:38 raspberrypi reef-pi[25088]: 2019/01/30 03:00:38 health check: Used memory: 14.06 Load5: 0.08
Jan 30 03:00:39 raspberrypi reef-pi[25088]: 2019/01/30 03:00:39 temperature sub-system: sensor Sump-Temp value: 76.8866
Jan 30 03:00:39 raspberrypi reef-pi[25088]: 2019/01/30 03:00:39 temperature sub-system: sensor Tank-Temp value: 76.8866
Jan 30 03:00:39 raspberrypi reef-pi[25088]: 2019/01/30 03:00:39 temperature subsystem: Current temperature is below minimum threshold. Executing warm up routine
Jan 30 03:00:39 raspberrypi reef-pi[25088]: 2019/01/30 03:00:39 Setting GPIO Pin: 6 State: 1
Jan 30 03:00:43 raspberrypi reef-pi[25088]: 2019/01/30 03:00:43 ato sub-system: sensor ATO value: 1
Jan 30 03:00:43 raspberrypi reef-pi[25088]: 2019/01/30 03:00:43 Setting GPIO Pin: 5 State: 0
Jan 30 03:00:48 raspberrypi reef-pi[25088]: 2019/01/30 03:00:48 ato sub-system: sensor ATO value: 1
Need more logs, this is the beginning of the hour, since your threshold is 200 we should see the alert triggered around 3:04 .. so check log for next 4 minutes (—until 3:04:00)
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,166
Location
Winchester, TN
Rating - 0%
0   0   0
Here is that time slot. I dont see it tiggering the email.

Jan 30 03:01:38 raspberrypi reef-pi[25088]: 2019/01/30 03:01:38 Reading temperature from device: 28-01131e872049
Jan 30 03:01:38 raspberrypi reef-pi[25088]: 2019/01/30 03:01:38 Lighting: Calculated value(15.000000) for channel 'test pump' is below minimum threshold(20). Resetting to 1
Jan 30 03:01:38 raspberrypi reef-pi[25088]: 2019/01/30 03:01:38 lighting-subsystem: Setting PWM value: 20 at channel: 0
Jan 30 03:01:38 raspberrypi reef-pi[25088]: 2019/01/30 03:01:38 Setting pwm driver: pca9685 pin: 0 value: 20
Jan 30 03:01:38 raspberrypi reef-pi[25088]: 2019/01/30 03:01:38 lighting-subsystem: Setting PWM value: 99 at channel: 1
Jan 30 03:01:38 raspberrypi reef-pi[25088]: 2019/01/30 03:01:38 Setting pwm driver: pca9685 pin: 1 value: 99
Jan 30 03:01:38 raspberrypi reef-pi[25088]: 2019/01/30 03:01:38 lighting-subsystem: Setting PWM value: 50 at channel: 2
Jan 30 03:01:38 raspberrypi reef-pi[25088]: 2019/01/30 03:01:38 Setting pwm driver: pca9685 pin: 2 value: 50
Jan 30 03:01:38 raspberrypi reef-pi[25088]: 2019/01/30 03:01:38 health check: Used memory: 14.06 Load5: 0.08
Jan 30 03:01:39 raspberrypi reef-pi[25088]: 2019/01/30 03:01:39 temperature sub-system: sensor Sump-Temp value: 76.8866
Jan 30 03:01:43 raspberrypi reef-pi[25088]: 2019/01/30 03:01:43 ato sub-system: sensor ATO value: 1
Jan 30 03:01:43 raspberrypi reef-pi[25088]: 2019/01/30 03:01:43 Setting GPIO Pin: 5 State: 0
Jan 30 03:01:48 raspberrypi reef-pi[25088]: 2019/01/30 03:01:48 ato sub-system: sensor ATO value: 1
Jan 30 03:01:48 raspberrypi reef-pi[25088]: 2019/01/30 03:01:48 Setting GPIO Pin: 5 State: 0
Jan 30 03:01:53 raspberrypi reef-pi[25088]: 2019/01/30 03:01:53 ato sub-system: sensor ATO value: 1
Jan 30 03:01:53 raspberrypi reef-pi[25088]: 2019/01/30 03:01:53 Setting GPIO Pin: 5 State: 0
Jan 30 03:01:58 raspberrypi reef-pi[25088]: 2019/01/30 03:01:58 ato sub-system: sensor ATO value: 1
Jan 30 03:01:58 raspberrypi reef-pi[25088]: 2019/01/30 03:01:58 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:03 raspberrypi reef-pi[25088]: 2019/01/30 03:02:03 ato sub-system: sensor ATO value: 1
Jan 30 03:02:03 raspberrypi reef-pi[25088]: 2019/01/30 03:02:03 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:08 raspberrypi reef-pi[25088]: 2019/01/30 03:02:08 ato sub-system: sensor ATO value: 1
Jan 30 03:02:08 raspberrypi reef-pi[25088]: 2019/01/30 03:02:08 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:08 raspberrypi reef-pi[25088]: 2019/01/30 03:02:08 Reading temperature from device: 28-0213169a87aa
Jan 30 03:02:08 raspberrypi reef-pi[25088]: 2019/01/30 03:02:08 Lighting: Calculated value(15.000000) for channel 'test pump' is below minimum threshold(20). Resetting to 1
Jan 30 03:02:08 raspberrypi reef-pi[25088]: 2019/01/30 03:02:08 lighting-subsystem: Setting PWM value: 20 at channel: 0
Jan 30 03:02:08 raspberrypi reef-pi[25088]: 2019/01/30 03:02:08 Setting pwm driver: pca9685 pin: 0 value: 20
Jan 30 03:02:08 raspberrypi reef-pi[25088]: 2019/01/30 03:02:08 lighting-subsystem: Setting PWM value: 99 at channel: 1
Jan 30 03:02:08 raspberrypi reef-pi[25088]: 2019/01/30 03:02:08 Setting pwm driver: pca9685 pin: 1 value: 99
Jan 30 03:02:08 raspberrypi reef-pi[25088]: 2019/01/30 03:02:08 lighting-subsystem: Setting PWM value: 50 at channel: 2
Jan 30 03:02:08 raspberrypi reef-pi[25088]: 2019/01/30 03:02:08 Setting pwm driver: pca9685 pin: 2 value: 50
Jan 30 03:02:09 raspberrypi reef-pi[25088]: 2019/01/30 03:02:09 temperature sub-system: sensor Tank-Temp value: 76.8866
Jan 30 03:02:09 raspberrypi reef-pi[25088]: 2019/01/30 03:02:09 temperature subsystem: Current temperature is below minimum threshold. Executing warm up routine
Jan 30 03:02:09 raspberrypi reef-pi[25088]: 2019/01/30 03:02:09 Setting GPIO Pin: 6 State: 1
Jan 30 03:02:13 raspberrypi reef-pi[25088]: 2019/01/30 03:02:13 ato sub-system: sensor ATO value: 1
Jan 30 03:02:13 raspberrypi reef-pi[25088]: 2019/01/30 03:02:13 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:18 raspberrypi reef-pi[25088]: 2019/01/30 03:02:18 ato sub-system: sensor ATO value: 1
Jan 30 03:02:18 raspberrypi reef-pi[25088]: 2019/01/30 03:02:18 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:23 raspberrypi reef-pi[25088]: 2019/01/30 03:02:23 ato sub-system: sensor ATO value: 1
Jan 30 03:02:23 raspberrypi reef-pi[25088]: 2019/01/30 03:02:23 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:28 raspberrypi reef-pi[25088]: 2019/01/30 03:02:28 ato sub-system: sensor ATO value: 1
Jan 30 03:02:28 raspberrypi reef-pi[25088]: 2019/01/30 03:02:28 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:33 raspberrypi reef-pi[25088]: 2019/01/30 03:02:33 ato sub-system: sensor ATO value: 1
Jan 30 03:02:33 raspberrypi reef-pi[25088]: 2019/01/30 03:02:33 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:38 raspberrypi reef-pi[25088]: 2019/01/30 03:02:38 ato sub-system: sensor ATO value: 1
Jan 30 03:02:38 raspberrypi reef-pi[25088]: 2019/01/30 03:02:38 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:38 raspberrypi reef-pi[25088]: 2019/01/30 03:02:38 Reading temperature from device: 28-01131e872049
Jan 30 03:02:38 raspberrypi reef-pi[25088]: 2019/01/30 03:02:38 Lighting: Calculated value(15.000000) for channel 'test pump' is below minimum threshold(20). Resetting to 1
Jan 30 03:02:38 raspberrypi reef-pi[25088]: 2019/01/30 03:02:38 lighting-subsystem: Setting PWM value: 20 at channel: 0
Jan 30 03:02:38 raspberrypi reef-pi[25088]: 2019/01/30 03:02:38 Setting pwm driver: pca9685 pin: 0 value: 20
Jan 30 03:02:38 raspberrypi reef-pi[25088]: 2019/01/30 03:02:38 lighting-subsystem: Setting PWM value: 99 at channel: 1
Jan 30 03:02:38 raspberrypi reef-pi[25088]: 2019/01/30 03:02:38 Setting pwm driver: pca9685 pin: 1 value: 99
Jan 30 03:02:38 raspberrypi reef-pi[25088]: 2019/01/30 03:02:38 lighting-subsystem: Setting PWM value: 50 at channel: 2
Jan 30 03:02:38 raspberrypi reef-pi[25088]: 2019/01/30 03:02:38 Setting pwm driver: pca9685 pin: 2 value: 50
Jan 30 03:02:38 raspberrypi reef-pi[25088]: 2019/01/30 03:02:38 health check: Used memory: 14.06 Load5: 0.06
Jan 30 03:02:39 raspberrypi reef-pi[25088]: 2019/01/30 03:02:39 temperature sub-system: sensor Sump-Temp value: 76.8866
Jan 30 03:02:40 raspberrypi dhcpcd[387]: wlan0: Router Advertisement from fe80::6238:e0ff:fe89:fbf5
Jan 30 03:02:40 raspberrypi dhcpcd[387]: wlan0: requesting DHCPv6 information
Jan 30 03:02:43 raspberrypi reef-pi[25088]: 2019/01/30 03:02:43 ato sub-system: sensor ATO value: 1
Jan 30 03:02:43 raspberrypi reef-pi[25088]: 2019/01/30 03:02:43 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:48 raspberrypi reef-pi[25088]: 2019/01/30 03:02:48 ato sub-system: sensor ATO value: 1
Jan 30 03:02:48 raspberrypi reef-pi[25088]: 2019/01/30 03:02:48 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:53 raspberrypi reef-pi[25088]: 2019/01/30 03:02:53 ato sub-system: sensor ATO value: 1
Jan 30 03:02:53 raspberrypi reef-pi[25088]: 2019/01/30 03:02:53 Setting GPIO Pin: 5 State: 0
Jan 30 03:02:58 raspberrypi reef-pi[25088]: 2019/01/30 03:02:58 ato sub-system: sensor ATO value: 1
Jan 30 03:02:58 raspberrypi reef-pi[25088]: 2019/01/30 03:02:58 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:03 raspberrypi reef-pi[25088]: 2019/01/30 03:03:03 ato sub-system: sensor ATO value: 1
Jan 30 03:03:03 raspberrypi reef-pi[25088]: 2019/01/30 03:03:03 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:08 raspberrypi reef-pi[25088]: 2019/01/30 03:03:08 ato sub-system: sensor ATO value: 1
Jan 30 03:03:08 raspberrypi reef-pi[25088]: 2019/01/30 03:03:08 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:08 raspberrypi reef-pi[25088]: 2019/01/30 03:03:08 Lighting: Calculated value(15.000000) for channel 'test pump' is below minimum threshold(20). Resetting to 1
Jan 30 03:03:08 raspberrypi reef-pi[25088]: 2019/01/30 03:03:08 lighting-subsystem: Setting PWM value: 20 at channel: 0
Jan 30 03:03:08 raspberrypi reef-pi[25088]: 2019/01/30 03:03:08 Setting pwm driver: pca9685 pin: 0 value: 20
Jan 30 03:03:08 raspberrypi reef-pi[25088]: 2019/01/30 03:03:08 lighting-subsystem: Setting PWM value: 99 at channel: 1
Jan 30 03:03:08 raspberrypi reef-pi[25088]: 2019/01/30 03:03:08 Setting pwm driver: pca9685 pin: 1 value: 99
Jan 30 03:03:08 raspberrypi reef-pi[25088]: 2019/01/30 03:03:08 lighting-subsystem: Setting PWM value: 50 at channel: 2
Jan 30 03:03:08 raspberrypi reef-pi[25088]: 2019/01/30 03:03:08 Setting pwm driver: pca9685 pin: 2 value: 50
Jan 30 03:03:08 raspberrypi reef-pi[25088]: 2019/01/30 03:03:08 Setting pwm driver: pca9685 pin: 2 value: 50
Jan 30 03:03:13 raspberrypi reef-pi[25088]: 2019/01/30 03:03:13 ato sub-system: sensor ATO value: 1
Jan 30 03:03:13 raspberrypi reef-pi[25088]: 2019/01/30 03:03:13 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:18 raspberrypi reef-pi[25088]: 2019/01/30 03:03:18 ato sub-system: sensor ATO value: 1
Jan 30 03:03:18 raspberrypi reef-pi[25088]: 2019/01/30 03:03:18 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:23 raspberrypi reef-pi[25088]: 2019/01/30 03:03:23 ato sub-system: sensor ATO value: 1
Jan 30 03:03:23 raspberrypi reef-pi[25088]: 2019/01/30 03:03:23 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:28 raspberrypi reef-pi[25088]: 2019/01/30 03:03:28 ato sub-system: sensor ATO value: 1
Jan 30 03:03:28 raspberrypi reef-pi[25088]: 2019/01/30 03:03:28 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:33 raspberrypi reef-pi[25088]: 2019/01/30 03:03:33 ato sub-system: sensor ATO value: 1
Jan 30 03:03:33 raspberrypi reef-pi[25088]: 2019/01/30 03:03:33 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 ato sub-system: sensor ATO value: 1
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 Reading temperature from device: 28-01131e872049
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 Reading temperature from device: 28-0213169a87aa
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 Lighting: Calculated value(15.000000) for channel 'test pump' is below minimum threshold(20). Resetting to 1
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 lighting-subsystem: Setting PWM value: 20 at channel: 0
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 Setting pwm driver: pca9685 pin: 0 value: 20
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 lighting-subsystem: Setting PWM value: 99 at channel: 1
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 Setting pwm driver: pca9685 pin: 1 value: 99
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 lighting-subsystem: Setting PWM value: 50 at channel: 2
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 Setting pwm driver: pca9685 pin: 2 value: 50
Jan 30 03:03:38 raspberrypi reef-pi[25088]: 2019/01/30 03:03:38 health check: Used memory: 14.06 Load5: 0.05
Jan 30 03:03:39 raspberrypi reef-pi[25088]: 2019/01/30 03:03:39 temperature sub-system: sensor Sump-Temp value: 76.8866
Jan 30 03:03:39 raspberrypi reef-pi[25088]: 2019/01/30 03:03:39 temperature sub-system: sensor Tank-Temp value: 76.775
Jan 30 03:03:39 raspberrypi reef-pi[25088]: 2019/01/30 03:03:39 temperature subsystem: Current temperature is below minimum threshold. Executing warm up routine
Jan 30 03:03:39 raspberrypi reef-pi[25088]: 2019/01/30 03:03:39 Setting GPIO Pin: 6 State: 1
Jan 30 03:03:43 raspberrypi reef-pi[25088]: 2019/01/30 03:03:43 ato sub-system: sensor ATO value: 1
Jan 30 03:03:43 raspberrypi reef-pi[25088]: 2019/01/30 03:03:43 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:48 raspberrypi reef-pi[25088]: 2019/01/30 03:03:48 ato sub-system: sensor ATO value: 1
Jan 30 03:03:48 raspberrypi reef-pi[25088]: 2019/01/30 03:03:48 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:53 raspberrypi reef-pi[25088]: 2019/01/30 03:03:53 ato sub-system: sensor ATO value: 1
Jan 30 03:03:53 raspberrypi reef-pi[25088]: 2019/01/30 03:03:53 Setting GPIO Pin: 5 State: 0
Jan 30 03:03:58 raspberrypi reef-pi[25088]: 2019/01/30 03:03:58 ato sub-system: sensor ATO value: 1
Jan 30 03:03:58 raspberrypi reef-pi[25088]: 2019/01/30 03:03:58 Setting GPIO Pin: 5 State: 0
Jan 30 03:04:03 raspberrypi reef-pi[25088]: 2019/01/30 03:04:03 ato sub-system: sensor ATO value: 1
Jan 30 03:04:03 raspberrypi reef-pi[25088]: 2019/01/30 03:04:03 Setting GPIO Pin: 5 State: 0
Jan 30 03:04:08 raspberrypi reef-pi[25088]: 2019/01/30 03:04:08 ato sub-system: sensor ATO value: 1
Jan 30 03:04:08 raspberrypi reef-pi[25088]: 2019/01/30 03:04:08 Setting GPIO Pin: 5 State: 0
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,166
Location
Winchester, TN
Rating - 0%
0   0   0
Wait. I think we need to change the date and timeframe. that error occurred at 14:00 and 17:00 on 1/29. how can I change the date in our journal?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Wait. I think we need to change the date and timeframe. that error occurred at 14:00 and 17:00 on 1/29. how can I change the date in our journal?
What version of reef-pi you are running? Is it showing the same timezone as your local time? use the --until and --since options in journalctl to get exact log of the timer when you think the alert should have triggered. I'll update the logging statement to reflect total usage of that hour.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Wait. I think we need to change the date and timeframe. that error occurred at 14:00 and 17:00 on 1/29. how can I change the date in our journal?
you cant change the journal time, it reflects the system time when the message was logged. You can however reset the pi time if its incorrect and recreate the situation.
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,166
Location
Winchester, TN
Rating - 0%
0   0   0
I am running version 2.2. the issue occurred yesterday now. how do I add the date into your statement so I can pull the log time from 1/29/18 ?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I am running version 2.2. the issue occurred yesterday now. how do I add the date into your statement so I can pull the log time from 1/29/18 ?
Code:
journalctl --since "2019-01-29  3:0:0" --until "2019-01-29 3:01:50"
change the time/date accordingly. The format is: "YYYY-MM-DD HH:MM:SS"
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,166
Location
Winchester, TN
Rating - 0%
0   0   0
OK. I will have to replicate it again tonight as the logs are no longer available for that timeframe. ill trip the switch and let it be on for a while.
Logs begin at Tue 2019-01-29 16:48:23 CST, end at Wed 2019-01-30 14:58:58 CST
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
OK. I will have to replicate it again tonight as the logs are no longer available for that timeframe. ill trip the switch and let it be on for a while.
Logs begin at Tue 2019-01-29 16:48:23 CST, end at Wed 2019-01-30 14:58:58 CST

I think the logs are still there, in raspbian they roll them daily so look here and see if this helps, I sometimes can be too brief, so if something doesn't make sense let me know and I can provide more details:

Additional logging can be found in syslog which is found here /var/log/

if you do something like this it will show you the files: ls -l /var/log/sys*

Code:
bishop@tankpi:~ $ ls -l /var/log/sys*
-rw-r----- 1 root adm 2248393 Jan 30 17:13 /var/log/syslog
-rw-r----- 1 root adm 5184178 Jan 30 06:25 /var/log/syslog.1
-rw-r----- 1 root adm  239482 Jan 29 06:25 /var/log/syslog.2.gz
-rw-r----- 1 root adm  239003 Jan 28 06:25 /var/log/syslog.3.gz
-rw-r----- 1 root adm  222247 Jan 27 06:25 /var/log/syslog.4.gz
-rw-r----- 1 root adm  179615 Jan 26 06:25 /var/log/syslog.5.gz
-rw-r----- 1 root adm  164837 Jan 25 06:25 /var/log/syslog.6.gz
-rw-r----- 1 root adm  153403 Jan 24 06:25 /var/log/syslog.7.gz

They compress the older logs to save space, that is what the .gz is indicating, to decompress a log file the
command you would use is :
Code:
sudo gunzip /var/log/syslog.2.gz

Then you can see the contents, since you are looking for a time period I would do something like this:
Code:
cat /var/log/syslog.2 | grep "Jan 29 09:" | more

That will produce something like this:
Code:
Jan 29 09:00:17 tankpi reef-pi[20930]: 2019/01/29 09:00:17 lighting-subsystem: Setting PWM value: 0  at channel: 1
Jan 29 09:00:17 tankpi reef-pi[20930]: 2019/01/29 09:00:17 Setting pwm driver: rpi pin: 1 value: 0
Jan 29 09:00:17 tankpi reef-pi[20930]: 2019/01/29 09:00:17 health check: Used memory: 11.14  Load5: 0.02
Jan 29 09:00:21 tankpi dhcpcd[524]: wlan0: adding address 2001:470:7c:4ef:3f5f:fb0d:5a08:4bc7/66
Jan 29 09:00:21 tankpi dhcpcd[524]: if_addaddress6: Invalid argument
Jan 29 09:00:29 tankpi reef-pi[20930]: 2019/01/29 09:00:29 Reading temperature from device: 28-00000a9aeb40
Jan 29 09:00:30 tankpi reef-pi[20930]: 2019/01/29 09:00:30 temperature sub-system:  sensor Temp2-5g value: 79.025
Jan 29 09:00:30 tankpi reef-pi[20930]: 2019/01/29 09:00:30 temperature subsystem: Current temperature is below minimum threshold. Executing w
arm up routine
Jan 29 09:00:31 tankpi reef-pi[20930]: 2019/01/29 09:00:31 Setting GPIO Pin: 6 State: 1
--More--

Notice the --More-- callout at the bottom, that will return a page at a time or you can also search within the output by using the "/" and then indicating the string you want to search for, or you can just page through the log file page by page. Noticing I was trying to start at a certain time so you don't have to page through so much but you would input your date and time range where I have "Jan 29 09:"

Once you are finished with the log file and if you want to compress it again just issue this command:
Code:
sudo gzip /var/log/syslog.2

Hope this helps, should be able to find the information in your logs. :)
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
It should be trivial to test the alert dispatch on demand. Like you can configure the ato to poll at 2 second interval while the alert threshold is set to 6, and then just hold the probe above water for 6 seconds... and that should trigger an alert. Watch the log while you are doing all this, to see what reef-pi is doing
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
It should be trivial to test the alert dispatch on demand. Like you can configure the ato to poll at 2 second interval while the alert threshold is set to 6, and then just hold the probe above water for 6 seconds... and that should trigger an alert. Watch the log while you are doing all this, to see what reef-pi is doing

Well that would probably be the easier path :)
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,166
Location
Winchester, TN
Rating - 0%
0   0   0
It is not calling to send message.

Jan 30 20:26:41 raspberrypi reef-pi[25088]: 2019/01/30 20:26:41 ato sub-system: sensor ATO value: 1
Jan 30 20:26:41 raspberrypi reef-pi[25088]: 2019/01/30 20:26:41 Setting GPIO Pin: 5 State: 0
Jan 30 20:26:46 raspberrypi reef-pi[25088]: 2019/01/30 20:26:46 ato sub-system: sensor ATO value: 0
Jan 30 20:26:46 raspberrypi reef-pi[25088]: 2019/01/30 20:26:46 Setting GPIO Pin: 5 State: 1
Jan 30 20:26:51 raspberrypi reef-pi[25088]: 2019/01/30 20:26:51 ato sub-system: sensor ATO value: 0
Jan 30 20:26:51 raspberrypi reef-pi[25088]: 2019/01/30 20:26:51 Setting GPIO Pin: 5 State: 1
Jan 30 20:26:56 raspberrypi reef-pi[25088]: 2019/01/30 20:26:56 ato sub-system: sensor ATO value: 0
Jan 30 20:26:56 raspberrypi reef-pi[25088]: 2019/01/30 20:26:56 Setting GPIO Pin: 5 State: 1
Jan 30 20:27:01 raspberrypi reef-pi[25088]: 2019/01/30 20:27:01 ato sub-system: sensor ATO value: 0
Jan 30 20:27:01 raspberrypi reef-pi[25088]: 2019/01/30 20:27:01 Setting GPIO Pin: 5 State: 1
Jan 30 20:27:06 raspberrypi reef-pi[25088]: 2019/01/30 20:27:06 ato sub-system: sensor ATO value: 0
Jan 30 20:27:06 raspberrypi reef-pi[25088]: 2019/01/30 20:27:06 Setting GPIO Pin: 5 State: 1
Jan 30 20:27:11 raspberrypi reef-pi[25088]: 2019/01/30 20:27:11 ato sub-system: sensor ATO value: 0
Jan 30 20:27:11 raspberrypi reef-pi[25088]: 2019/01/30 20:27:11 Setting GPIO Pin: 5 State: 1
Jan 30 20:27:16 raspberrypi reef-pi[25088]: 2019/01/30 20:27:16 ato sub-system: sensor ATO value: 0
Jan 30 20:27:16 raspberrypi reef-pi[25088]: 2019/01/30 20:27:16 Setting GPIO Pin: 5 State: 1
Jan 30 20:27:21 raspberrypi reef-pi[25088]: 2019/01/30 20:27:21 ato sub-system: sensor ATO value: 0
Jan 30 20:27:21 raspberrypi reef-pi[25088]: 2019/01/30 20:27:21 Setting GPIO Pin: 5 State: 1
Jan 30 20:27:26 raspberrypi reef-pi[25088]: 2019/01/30 20:27:26 ato sub-system: sensor ATO value: 0
Jan 30 20:27:26 raspberrypi reef-pi[25088]: 2019/01/30 20:27:26 Setting GPIO Pin: 5 State: 1
Jan 30 20:27:31 raspberrypi reef-pi[25088]: 2019/01/30 20:27:31 ato sub-system: sensor ATO value: 0
Jan 30 20:27:31 raspberrypi reef-pi[25088]: 2019/01/30 20:27:31 Setting GPIO Pin: 5 State: 1
Jan 30 20:27:36 raspberrypi reef-pi[25088]: 2019/01/30 20:27:36 ato sub-system: sensor ATO value: 0
Jan 30 20:27:36 raspberrypi reef-pi[25088]: 2019/01/30 20:27:36 Setting GPIO Pin: 5 State: 1
Jan 30 20:27:39 raspberrypi reef-pi[25088]: 2019/01/30 20:27:39 Reading temperature from device: 28-01131e872049
Jan 30 20:27:39 raspberrypi reef-pi[25088]: 2019/01/30 20:27:39 Reading temperature from device: 28-0213169a87aa
Jan 30 20:27:39 raspberrypi reef-pi[25088]: 2019/01/30 20:27:39 health check: Used memory: 14.45 Load5: 0.02
Jan 30 20:27:40 raspberrypi reef-pi[25088]: 2019/01/30 20:27:40 temperature sub-system: sensor Sump-Temp value: 77.45
Jan 30 20:27:40 raspberrypi reef-pi[25088]: 2019/01/30 20:27:40 temperature sub-system: sensor Tank-Temp value: 77.5616
Jan 30 20:27:40 raspberrypi reef-pi[25088]: 2019/01/30 20:27:40 temperature subsystem: Current temperature is within range switching off heater/cooler
Jan 30 20:27:40 raspberrypi reef-pi[25088]: 2019/01/30 20:27:40 Setting GPIO Pin: 6 State: 0
Jan 30 20:27:41 raspberrypi reef-pi[25088]: 2019/01/30 20:27:41 ato sub-system: sensor ATO value: 0
Jan 30 20:27:41 raspberrypi reef-pi[25088]: 2019/01/30 20:27:41 Setting GPIO Pin: 5 State: 1
Jan 30 20:27:46 raspberrypi reef-pi[25088]: 2019/01/30 20:27:46 ato sub-system: sensor ATO value: 0
Jan 30 20:27:46 raspberrypi reef-pi[25088]: 2019/01/30 20:27:46 Setting GPIO Pin: 5 State: 1
Jan 30 20:27:51 raspberrypi reef-pi[25088]: 2019/01/30 20:27:51 ato sub-system: sensor ATO value: 0
Jan 30 20:27:51 raspberrypi reef-pi[25088]: 2019/01/30 20:27:51 Setting GPIO Pin: 5 State: 1

upload_2019-1-30_20-38-34.png
 
Back
Top