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

Hmmm...
upload_2019-2-9_22-8-35.png
 
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 ))
 
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. :)
 
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....
 
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

Last edited:
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
 
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..
 
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
 
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.
 
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 )
 
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?
 
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
 
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.
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top