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

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,165
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,409
Reaction score
1,726
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,876
Reaction score
16,682
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,409
Reaction score
1,726
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,165
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
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
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
Can you check you have alert enabled in your telemetry configuration? Remember you have to reload reef-pi if you change telemetry configuration, for it to take effect.
 

KGTD

New Member
View Badges
Joined
Dec 16, 2018
Messages
3
Reaction score
8
Rating - 0%
0   0   0
Hey Ranjib, quick question for you. The American DJ SR P8 - are those relays normally-open or normally-closed? I am thinking about putting a CO2 solenoid on there and I want the solenoid output to default to off.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hey Ranjib, quick question for you. The American DJ SR P8 - are those relays normally-open or normally-closed? I am thinking about putting a CO2 solenoid on there and I want the solenoid output to default to off.
Normally open, i.e. if pi is powered down, the outlets will be turned off.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hey Ranjib, quick question for you. The American DJ SR P8 - are those relays normally-open or normally-closed? I am thinking about putting a CO2 solenoid on there and I want the solenoid output to default to off.
Welcome to reef2reef :-)
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
Normally open, i.e. if pi is powered down, the outlets will be turned off.
Looks like a fellow freshwater planted convert possibly. Welcome! Start a build thread when you build!

Freshwater planted pi, frog pi, turtle pi...if someone controls a grow tent with this will that be reefer pi?
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
640
Location
United States
Rating - 0%
0   0   0
Looks like a fellow freshwater planted convert possibly. Welcome! Start a build thread when you build!

Freshwater planted pi, frog pi, turtle pi...if someone controls a grow tent with this will that be reefer pi?

Port OS-X to it...Apple Pi....nom nom nom
 

pickupman66

5000 Club Member
View Badges
Joined
Aug 10, 2010
Messages
6,032
Reaction score
1,165
Location
Winchester, TN
Rating - 0%
0   0   0
Can you check you have alert enabled in your telemetry configuration? Remember you have to reload reef-pi if you change telemetry configuration, for it to take effect.
yes. Telemetry is been enabled for quite some time. The only change I've made recently was a password update to it. It properly sends a test message. I have verified that functionality.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
@Ranjib, what is this error that updates every minute? My Adafruit.IO is currently turned off but it still shows up. The error is always there but the time changes to the current time. If I clear it it comes back but does not seem to affect anything.

Jan 31 09:53:30
{"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs"}
 

That Crusso Kid

10K Club member
View Badges
Joined
Oct 21, 2018
Messages
15,499
Reaction score
78,751
Location
SW, FL, USA
Rating - 0%
0   0   0
Looks like a fellow freshwater planted convert possibly. Welcome! Start a build thread when you build!

Freshwater planted pi, frog pi, turtle pi...if someone controls a grow tent with this will that be reefer pi?

"reefer pi"... absolutely!
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib, what is this error that updates every minute? My Adafruit.IO is currently turned off but it still shows up. The error is always there but the time changes to the current time. If I clear it it comes back but does not seem to affect anything.

Jan 31 09:53:30
{"error":"not found - API documentation can be found at https://io.adafruit.com/api/docs"}
Something is trying to send an adafruit metric to a feed that does not exist. Clear them, and see if it reappears after reboot.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Something is trying to send an adafruit metric to a feed that does not exist. Clear them, and see if it reappears after reboot.
Oops, sorry I didn’t read through . If it’s reappearing even if telemetry is disabled , then it’s a bug. I have to track down exactly which component is doing that. You have three of these errors? Which component you have three ? Like temperature or ato ?
 

KGTD

New Member
View Badges
Joined
Dec 16, 2018
Messages
3
Reaction score
8
Rating - 0%
0   0   0
Looks like a fellow freshwater planted convert possibly. Welcome! Start a build thread when you build!

Freshwater planted pi, frog pi, turtle pi...if someone controls a grow tent with this will that be reefer pi?
Yup! Thanks for the welcome all. This is a great project and community. I will definitely share my build soon :)
 

That Crusso Kid

10K Club member
View Badges
Joined
Oct 21, 2018
Messages
15,499
Reaction score
78,751
Location
SW, FL, USA
Rating - 0%
0   0   0
Yup! Thanks for the welcome all. This is a great project and community. I will definitely share my build soon :)

Welcome aboard! Looking forward to seeing your build.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
Oops, sorry I didn’t read through . If it’s reappearing even if telemetry is disabled , then it’s a bug. I have to track down exactly which component is doing that. You have three of these errors? Which component you have three ? Like temperature or ato ?

I have two temp probes and one ATO. The ATO is set to check every 10 sec, one temp probe is set to check every 30 seconds, and one set to check every 60 seconds. The error appears to update every 60 seconds.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
I have a light adjustment question. When the lights are in Auto mode do you need to set the minimum and maximum in the top bar? Or do you just adjust the individual sliders? for instance I was wondering if you set min to 0 and max to 50 in the top bar then the slider only gives you 50% max when its set to 100.
 

DO YOU THINK TECHNOLOGICAL ADVANCEMENTS ARE MORE HELPFUL OR HURTFUL TO REEFING?

  • More helpful.

    Votes: 59 42.1%
  • More hurtful.

    Votes: 5 3.6%
  • I think it depends mostly on the technology.

    Votes: 53 37.9%
  • I think it dependsmostly on the reefer behind the technology.

    Votes: 42 30.0%
Back
Top
Home
Post thread…
Market
What's new