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,166
Location
Winchester, TN
Rating - 0%
0   0   0
Hmmm...
upload_2019-2-9_22-8-35.png
 

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
and that is the end....

Feb 3 06:24:38 raspberrypi reef-pi[25088]: 2019/02/03 06:24:38 health check: Used memory: 15.89 Load5: 0.1
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 temperature sub-system: sensor Sump-Temp value: 77.45
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 temperature sub-system: sensor Tank-Temp value: 77.3366
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 temperature subsystem: Current temperature is below minimum threshold. Executing warm up routine
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 Setting GPIO Pin: 6 State: 1
Feb 3 06:24:41 raspberrypi reef-pi[25088]: 2019/02/03 06:24:41 ato sub-system: sensor ATO value: 1
Feb 3 06:24:41 raspberrypi reef-pi[25088]: 2019/02/03 06:24:41 Setting GPIO Pin: 5 State: 0
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 Reading temperature from device: 28-021316a280aa
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 ato sub-system: sensor ATO value: 1
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 Setting GPIO Pin: 5 State: 0
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 temperature sub-system: sensor Room-Temp value: 67.775
Feb 3 06:24:51 raspberrypi reef-pi[25088]: 2019/02/03 06:24:51 ato sub-system: sensor ATO value: 1
Feb 3 06:24:51 raspberrypi reef-pi[25088]: 2019/02/03 06:24:51 Setting GPIO Pin: 5 State: 0
Feb 3 06:24:56 raspberrypi reef-pi[25088]: 2019/02/03 06:24:56 ato sub-system: sensor ATO value: 1
Feb 3 06:24:56 raspberrypi reef-pi[25088]: 2019/02/03 06:24:56 Setting GPIO Pin: 5 State: 0
Feb 3 06:25:01 raspberrypi reef-pi[25088]: 2019/02/03 06:25:01 ato sub-system: sensor ATO value: 1
Feb 3 06:25:01 raspberrypi reef-pi[25088]: 2019/02/03 06:25:01 Setting GPIO Pin: 5 State: 0
Feb 3 06:25:01 raspberrypi CRON[21992]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,345
Reaction score
1,722
Location
Missouri
Rating - 0%
0   0   0
Thank you. I have a feeling my answer will be at the end of the log here.

You can start from the end also, depends on how you want to go through it:

Code:
tail -n 1000 /var/log/syslog | more

That will display the last 1000 lines, you can then page through them that way, lots of options. :)
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,345
Reaction score
1,722
Location
Missouri
Rating - 0%
0   0   0
and that is the end....

Feb 3 06:24:38 raspberrypi reef-pi[25088]: 2019/02/03 06:24:38 health check: Used memory: 15.89 Load5: 0.1
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 temperature sub-system: sensor Sump-Temp value: 77.45
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 temperature sub-system: sensor Tank-Temp value: 77.3366
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 temperature subsystem: Current temperature is below minimum threshold. Executing warm up routine
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 Setting GPIO Pin: 6 State: 1
Feb 3 06:24:41 raspberrypi reef-pi[25088]: 2019/02/03 06:24:41 ato sub-system: sensor ATO value: 1
Feb 3 06:24:41 raspberrypi reef-pi[25088]: 2019/02/03 06:24:41 Setting GPIO Pin: 5 State: 0
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 Reading temperature from device: 28-021316a280aa
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 ato sub-system: sensor ATO value: 1
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 Setting GPIO Pin: 5 State: 0
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 temperature sub-system: sensor Room-Temp value: 67.775
Feb 3 06:24:51 raspberrypi reef-pi[25088]: 2019/02/03 06:24:51 ato sub-system: sensor ATO value: 1
Feb 3 06:24:51 raspberrypi reef-pi[25088]: 2019/02/03 06:24:51 Setting GPIO Pin: 5 State: 0
Feb 3 06:24:56 raspberrypi reef-pi[25088]: 2019/02/03 06:24:56 ato sub-system: sensor ATO value: 1
Feb 3 06:24:56 raspberrypi reef-pi[25088]: 2019/02/03 06:24:56 Setting GPIO Pin: 5 State: 0
Feb 3 06:25:01 raspberrypi reef-pi[25088]: 2019/02/03 06:25:01 ato sub-system: sensor ATO value: 1
Feb 3 06:25:01 raspberrypi reef-pi[25088]: 2019/02/03 06:25:01 Setting GPIO Pin: 5 State: 0
Feb 3 06:25:01 raspberrypi CRON[21992]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))

Well thats certainly odd, looks like it just locked up, that last line is running cron jobs....
 

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
Tom, I found it. went to just the syslog. it happened at 17:38

@Ranjib amazingly I didnt even notice it until I put my hands into the water. Corals looked good. clam was not open which initially concerned me.
 

Attachments

  • Reefpi log.txt
    60.9 KB · Views: 57
Last edited:

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,345
Reaction score
1,722
Location
Missouri
Rating - 0%
0   0   0
and that is the end....

Feb 3 06:24:38 raspberrypi reef-pi[25088]: 2019/02/03 06:24:38 health check: Used memory: 15.89 Load5: 0.1
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 temperature sub-system: sensor Sump-Temp value: 77.45
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 temperature sub-system: sensor Tank-Temp value: 77.3366
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 temperature subsystem: Current temperature is below minimum threshold. Executing warm up routine
Feb 3 06:24:39 raspberrypi reef-pi[25088]: 2019/02/03 06:24:39 Setting GPIO Pin: 6 State: 1
Feb 3 06:24:41 raspberrypi reef-pi[25088]: 2019/02/03 06:24:41 ato sub-system: sensor ATO value: 1
Feb 3 06:24:41 raspberrypi reef-pi[25088]: 2019/02/03 06:24:41 Setting GPIO Pin: 5 State: 0
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 Reading temperature from device: 28-021316a280aa
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 ato sub-system: sensor ATO value: 1
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 Setting GPIO Pin: 5 State: 0
Feb 3 06:24:46 raspberrypi reef-pi[25088]: 2019/02/03 06:24:46 temperature sub-system: sensor Room-Temp value: 67.775
Feb 3 06:24:51 raspberrypi reef-pi[25088]: 2019/02/03 06:24:51 ato sub-system: sensor ATO value: 1
Feb 3 06:24:51 raspberrypi reef-pi[25088]: 2019/02/03 06:24:51 Setting GPIO Pin: 5 State: 0
Feb 3 06:24:56 raspberrypi reef-pi[25088]: 2019/02/03 06:24:56 ato sub-system: sensor ATO value: 1
Feb 3 06:24:56 raspberrypi reef-pi[25088]: 2019/02/03 06:24:56 Setting GPIO Pin: 5 State: 0
Feb 3 06:25:01 raspberrypi reef-pi[25088]: 2019/02/03 06:25:01 ato sub-system: sensor ATO value: 1
Feb 3 06:25:01 raspberrypi reef-pi[25088]: 2019/02/03 06:25:01 Setting GPIO Pin: 5 State: 0
Feb 3 06:25:01 raspberrypi CRON[21992]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))

Can you do this and see what your disk space looks like:
Code:
df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       7.3G  1.2G  5.8G  17% /
devtmpfs        212M     0  212M   0% /dev
tmpfs           216M     0  216M   0% /dev/shm
tmpfs           216M   22M  195M  11% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           216M     0  216M   0% /sys/fs/cgroup
/dev/mmcblk0p1   44M   23M   22M  51% /boot
tmpfs            44M     0   44M   0% /run/user/1001
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,345
Reaction score
1,722
Location
Missouri
Rating - 0%
0   0   0
Tom, I found it. went to just the syslog. it happened at 17:38

@Ranjib amazingly I didnt even notice it until I put my hands into the water. Corals looked good. clam was not open which initially concerned me.

Looks like it rebooted for some reason, but it should have started back up fine, ATO looks out of range but I'm not sure why it didn't pick right back up where it left, off. will Look at this more in the morning..
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
It looks like the nightly cron job that rotates log etc caused the system to hung up on 3rd. This was not reef-pi related , but Linux /raspbian related (does not matter really ). I’m glad livestock is ok (finger crossed). I’ll dig up and share the watchdog thing soon
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,966
Reaction score
3,360
Location
Sacramento, CA area
Rating - 0%
0   0   0
It looks like the nightly cron job that rotates log etc caused the system to hung up on 3rd. This was not reef-pi related , but Linux /raspbian related (does not matter really ). I’m glad livestock is ok (finger crossed). I’ll dig up and share the watchdog thing soon

Do you have the watchdog based on reef-pi running or are you clearing it in a systemd timer? It may be useful to fully integrate this into reef-pi. Happy to noodle through this one, since I also want to ship the hard power off watchdog that’s on the Pico board.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Do you have the watchdog based on reef-pi running or are you clearing it in a systemd timer? It may be useful to fully integrate this into reef-pi. Happy to noodle through this one, since I also want to ship the hard power off watchdog that’s on the Pico board.
I used the hardware watchdog , pretty much this : https://www.switchdoc.com/2014/11/reliable-projects-using-internal-watchdog-timer-raspberry-pi/
Except I use system to enable instead of chkconfig (I think they do the same internally )
 

KevinDodge

New Member
View Badges
Joined
Jan 31, 2019
Messages
22
Reaction score
27
Rating - 0%
0   0   0
Has anyone extended the length of the Photoelectric Water Sensor cord? The sensor looks really interesting but its cord is super short. I am hoping to extend it up to 4-6 feet but am unsure on the best parts to do it with. My initial thought are to cut the cord between the sensor and its board and install some sort of 4 pin jack. Thoughts?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
On the development side, slowly getting back to ph board support after the flu. The ph driver code in reef-pi now works exactly same as Roberto ‘s example code (value to value match) and integrated from low level driver to reef-pi ui. It still needs some math fixes (values are still shown up as raw analog voltage reading , which needs to be converted to ph) and calibration etc. but I was able to do a hardware based preliminary testing. Without any probe attached it reads 32767 and with the probe attached and the test probe (american marine pin point) in storage solution its 20116. In ph 7.0 buffer it read as -485. All these readings were observed via reef-pi UI, ph chart. I am not sure the values make sense, except its same as the example code of Roberto, and they changed as I change the probe. This is good enough for me to proceed to next level testing where that I need for conversion and calibration work and I am not very confident on the probe
anyway. So here is a build in progress, it will house a Pi 2 (i have lots of older pi, and I thought why not, I should test these older model anyway, since reef-pi should work just fine, and I know at least a dozen of builds that are running these, so I might have one build each with pi 2 and model B). Anyway, here is the initial version, this build will house two temperature probe and ph probe. ph probe is backed by ph board. I am yet to finish the wiring/circuit. Only enclosure fabrication is done. But once completed (tomorrow likely) I'll be able to test the ph board as well as the american marine probe against my atlas scientific ezo circuit/probe based build.
5C2A2C1E-E2ED-4B25-BA74-CD1DF70DBA82.jpeg
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,966
Reaction score
3,360
Location
Sacramento, CA area
Rating - 0%
0   0   0

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,966
Reaction score
3,360
Location
Sacramento, CA area
Rating - 0%
0   0   0
On the development side, slowly getting back to ph board support after the flu. The ph driver code in reef-pi now works exactly same as Roberto ‘s example code (value to value match) and integrated from low level driver to reef-pi ui. It still needs some math fixes (values are still shown up as raw analog voltage reading , which needs to be converted to ph) and calibration etc. but I was able to do a hardware based preliminary testing. Without any probe attached it reads 32767 and with the probe attached and the test probe (american marine pin point) in storage solution its 20116. In ph 7.0 buffer it read as -485. All these readings were observed via reef-pi UI, ph chart. I am not sure the values make sense, except its same as the example code of Roberto, and they changed as I change the probe. This is good enough for me to proceed to next level testing where that I need for conversion and calibration work and I am not very confident on the

Excellent. I’ll test drive the integrated driver on the Pico then. While the scaling is different the output is also voltage.
 

Bubbles, bubbles, and more bubbles: Do you keep bubble-like corals in your reef?

  • I currently have bubble-like corals in my reef.

    Votes: 47 40.9%
  • I don’t currently have bubble-like corals in my reef, but I have in the past.

    Votes: 12 10.4%
  • I don’t currently have bubble-like corals in my reef, but I plan to in the future.

    Votes: 33 28.7%
  • I don’t currently have bubble-like corals in my reef and have no plans to in the future.

    Votes: 21 18.3%
  • Other.

    Votes: 2 1.7%
Back
Top