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

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
So the macro works great. It seems to turn off the sensor and disable the pump as I expected when I run it manually.

However, running it from another ATO sensor kills reef-pi a slow death. The log shows that there is a constant API call. ATO interface becomes unresponsive and I have to stop reef-pi and wipe the DB to recover.

My best guess is that ATO is still not hooked up to Macros despite having the option? Dunno.. its a pity, since if I run the macro it will disable the main ato and shut off the power to the pump. Just what I want in that scenario. I am not sure if I would need to disable the watch dog sensor too just to shut it all down (I did try to no avail) but its moot.

Well, that and an alert. I can't get alerts to work either. Alerts working, thanks.

Yes. I documented thins in one of my posts a little while ago. An ATO can only seem to work on Equipment. Even though you can choose a Macro, it doesn't work.
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
1595592883432.png

Soo... anybody got an idea why 14:07 is in between 11:46 and 12:28? Got this on al the graphs... have been playing with the names (remov spaces) and deleting ADAfruit feeds ... (got to much error's from this...)

Edit: Stil got the Adafruit error's (and lose temp sensor error)
1595593164966.png

I had this happen to me and could not fix it. I eventually deleted the temp sensor and re-installed it from scratch.
 
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
Those of you making backups of your SD cards, what are you using to so it?
I just run a cron job that scp my reef-pi.db to another place. I had also used google drive in past.
 
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
Yes. I documented thins in one of my posts a little while ago. An ATO can only seem to work on Equipment. Even though you can choose a Macro, it doesn't work.
:-/ . This is a bug then . Let me try to verify and report back. If it’s a bug we’ll get it fixed
 
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 is there a way to exclude something from the adafruit feed? for example, my lights get graphed on adafruid but i would prefere this not to happen. I got 6 differend light outputs and 4 temp readings... i get constant errors becous wel adafruit is only letting me save 10 feeds
Not yet :-/
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
I just run a cron job that scp my reef-pi.db to another place. I had also used google drive in past.

I have at times wished there was an option to back up the database to an email address manually . Like somewhere under telemetry or Admin tabs Almost like sending a test alert email.
 

ChrisNH

Active Member
View Badges
Joined
Mar 21, 2019
Messages
306
Reaction score
251
Rating - 0%
0   0   0
-/ . This is a bug then . Let me try to verify and report back. If it’s a bug we’ll get it fixed

Awesome! My experience it was a gnarly fail too, it keeps trying so it really pummels the whole thing. If you can't reproduce I will set it up again and send my log.

Quick sanity check, is the HS-100 smart plug appropriate for use with reef pi?

Thanks!
 

Yov

Community Member
View Badges
Joined
May 24, 2020
Messages
51
Reaction score
44
Rating - 0%
0   0   0
I had this happen to me and could not fix it. I eventually deleted the temp sensor and re-installed it from scratch.
I did this with one sensor... (its a terrarium and i got 3 inside one outside) it stil happens.
 
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
Awesome! My experience it was a gnarly fail too, it keeps trying so it really pummels the whole thing. If you can't reproduce I will set it up again and send my log.

Quick sanity check, is the HS-100 smart plug appropriate for use with reef pi?

Thanks!
yes
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
I'm battling with Adafruit IO integration - I have had it working before, to graph my pH, but disabled it in reef-pi because of the false pH readings I was getting due to a sketchy power supply. I have that sorted and the pH readings are now pretty stable, but difficult to see in a meaningful way on the pH graph on reef-pi. (as mentioned in a few recent posts).

I do have email alerts configured and working and I can get a test email sent. All good there.

Now when I try and add the Adafruit key, and hit the "update" block at the bottom of the page, I get a message relating to the email credentials and AIO is not getting data. I have reloaded reef-pi after adding

Is this a sign that I need to go down the Grafana / Prometheus route?
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
I'm battling with Adafruit IO integration - I have had it working before, to graph my pH, but disabled it in reef-pi because of the false pH readings I was getting due to a sketchy power supply. I have that sorted and the pH readings are now pretty stable, but difficult to see in a meaningful way on the pH graph on reef-pi. (as mentioned in a few recent posts).

I do have email alerts configured and working and I can get a test email sent. All good there.

Now when I try and add the Adafruit key, and hit the "update" block at the bottom of the page, I get a message relating to the email credentials and AIO is not getting data. I have reloaded reef-pi after adding

Is this a sign that I need to go down the Grafana / Prometheus route?


I'm always amazed at this. I battled and tried all sorts of things for days, and had no success. But as soon as I write a message here, the feed starts working.

Sorry for the disruption!
 

Mikeneedsahobby

Well-Known Member
View Badges
Joined
Sep 16, 2018
Messages
516
Reaction score
916
Rating - 0%
0   0   0
I'm always amazed at this. I battled and tried all sorts of things for days, and had no success. But as soon as I write a message here, the feed starts working.

Sorry for the disruption!
I find just the act of writing out my question often results in the issue going away or me understanding what I was doing wrong.
 

iLMaRiO

Well-Known Member
View Badges
Joined
Jun 24, 2020
Messages
601
Reaction score
129
Rating - 0%
0   0   0
Hi guys
Veeeeeeeeeeeery simple question: what if I need more ports/sensors ? Can reef-pi control multiple reef-pi via I2C or similiar ? Something like an extension...
 

NeonRabbit221B

2500 Club Member
View Badges
Joined
Jun 21, 2019
Messages
3,037
Reaction score
5,408
Location
Richmond, Va
Rating - 0%
0   0   0
im trying to use a relay to trigger my lights, i have the right relay. For some reason the pi will not trigger the relay ?
Post a picture of wiring and connectors/equipment.
Does the relay have an onboard LED for power/state? Double check wiring and connector tab and make sure you use the GPIO pin number
 

Hookster15

Active Member
View Badges
Joined
Sep 28, 2017
Messages
111
Reaction score
73
Location
Hobart , Indiana
Rating - 0%
0   0   0
Post a picture of wiring and connectors/equipment.
Does the relay have an onboard LED for power/state? Double check wiring and connector tab and make sure you use the GPIO pin number
it will energize the relay, i have not control through the software. its a single channel relay.
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,409
Reaction score
1,726
Location
Missouri
Rating - 0%
0   0   0
Those of you making backups of your SD cards, what are you using to so it?

You can use something like clonezilla or depending on OS some DD equivalent to make a duplicate. Although I have opted for just installing the OS and reefpi and then restoring the database. Installing the OS/application and configuring is pretty quick and painless here are my notes for doing it, pretty rough but should be a good start, YMMV

I give up and will try to post later tonight for some reason its objecting that I have a line in there for editing the passwd file..

Specifically this line errors out - #disable pi user login (sudo vi /etc/p butt w d

if it is written without the spaces it will not save...LAME :)

Take2:

Code:
Rasbian information Headless setup:

Pre-work:

#Download latest raspbian version that you want to use and install to SD card - https://www.raspberrypi.org/downloads/raspbian/

#wpa_supplicant.conf - file created in /boot

      country=US
      ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
      update_config=1
        network={
        ssid="YourNetworkSSID"
        psk="Your Network's Passphrase"
        key_mgmt=WPA-PSK
        }

#Create empty file in /boot called "ssh" (enables SSH on first boot)

#SSH to pi
    username-pi
    password-raspberry
####Change password######

#adduser account (/home/"user")
#add new user to sudoers (cmd usermod -aG sudo username)
#add new user to same groups as "pi" user
    (cmd display groups - pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi)
    (cmd usermod -a -G pi,adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,gpio,i2c,spi,username)
*disable pi user login (sudo vi  /etc/p asswd, change user pi to pi:x:1000:1000:,,,:/home/pi:/usr/sbin/nologin)
*change hostname (cmd hostname (new name), sudo vi /etc/h osts, sudo vi /etc/h ostname)
#set timezone (cmd raspi-config or sudo timedatectl set-timezone America/Chicago or America/#insert city#)
#sudo systemctl start systemd-timesyncd
#sudo systemctl enable systemd-timesync
#Edit config.txt for pi pwm sudo vi /boot/config.txt (add dtoverlay=pwm-2chan)
#raspi-config updates, enable I2c and 1-wire
#Install reef-pi (cmd dpkg -i reef-pi-2.2-pi3.deb
                 (cmd sudo systemctl stop reef-pi.service)
                 (cmd sudo mv /var/lib/reef-pi/reef-pi.db /var/lib/reef-pi/reef-pi.org)
                  (cmd sudo cp reef-pi.db /var/lib/reef-pi/.)
                 (cmd sudo systemctl start reef-pi.service)

*keep in mind for the lines marked with an asterisk that they would not save without the spaces, no idea what the issue is but remove spaces for those commands. Also substitute the editor of choice, I do everything from CLI and have always used VI.

If anyone has any questions let me know. :)
 
Last edited:

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