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

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Much prefer wired everything. My original LEDBrick lights still run BLE and... yeah, if you don't need it, don't use wireless :-D
Thats what attracted me to reef pi, everything wired, Im not a fan of everything having to reach the cloud to be connected... but some wireless modules could be useful.
 
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
This would be fantastic. Bonus points if it can rasterize the dashboard charts (= dependencies :))
we can do some server side rendering.. or use plotlib/R stuff to generate graphs.. I'll think about it
 
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
I was thinking about something but on my simple level of a cron job (how often is up to you) tailing the last 50 to 100 lines from syslog and sending that via email, reef-pi is pretty chatty so should be a pretty good summary, maybe make it 200 lines..what I was thinking for health check in, quick and dirty but useful.
One improvement may be . Use the API to get some data instead of syslog. Or use some fancy grep to get relevent stuff from syslog
 
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
So all this talk about failures. I looked at my dashboard and my historical CPU usage had been reset along with historical ATO and heater usage. My dosers missed the normal dose at 11:05 and dosed at 11:22 instead. I looked at aadafruit IO and noticed a dip in my lights at 10:44 and also noticed my CPU usage dropped to zero around 10:17. So I went and checked the logs and something strange happened. I am not home so it may have been a power outage and all appears to be running on the screen lol I will know more when I get home tonight. But I looked through the logs and found some strange stuff. Looks like at 10:17 reef-pi rebooted for some reason? I am not sure about the TLS handshake error that coincides with my lighting dip in adafruit IO but I am assuming maybe a communication error with IO? I dont recognize the IP address but I x'd out the last two octets just in case.

Feb 12 10:43:57 myReef reef-pi[308]: 2019/02/12 10:43:57 http: TLS handshake error from 143.85.X.X:56111: EOF

Feb 12 10:43:57 myReef reef-pi[308]: 2019/02/12 10:43:57 http: TLS handshake error from 143.85.X.X:52124: EOF

Feb 12 10:43:58 myReef reef-pi[308]: 2019/02/12 10:43:58 http: TLS handshake error from 143.85.X.X:59768: EOF

Feb 12 10:43:58 myReef reef-pi[308]: 2019/02/12 10:43:58 http: TLS handshake error from 143.85.X.X:52107: EOF


Feb 12 10:17:03 myReef fake-hwclock[84]: Tue Feb 12 15:17:01 UTC 2019

Feb 12 10:17:03 myReef systemd[1]: Started Create Static Device Nodes in /dev.

Feb 12 10:17:03 myReef systemd[1]: Starting udev Kernel Device Manager...

Feb 12 10:17:03 myReef systemd-fsck[118]: e2fsck 1.43.4 (31-Jan-2017)

Feb 12 10:17:03 myReef systemd-fsck[118]: rootfs: clean, 129237/1926848 files, 1373258/7779456 blocks

Feb 12 10:17:03 myReef systemd[1]: Started File System Check on Root Device.

Feb 12 10:17:03 myReef systemd[1]: Starting Remount Root and Kernel File Systems...

Feb 12 10:17:03 myReef systemd[1]: Started udev Kernel Device Manager.

Feb 12 10:17:03 myReef systemd[1]: Started Remount Root and Kernel File Systems.

Feb 12 10:17:03 myReef systemd[1]: Starting Load/Save Random Seed...

Feb 12 10:17:03 myReef systemd[1]: Starting Flush Journal to Persistent Storage...

Feb 12 10:17:03 myReef systemd[1]: Starting udev Coldplug all Devices...

Feb 12 10:17:03 myReef systemd[1]: Started Load/Save Random Seed.

Feb 12 10:17:03 myReef systemd[1]: Started Flush Journal to Persistent Storage.

Feb 12 10:17:03 myReef systemd[1]: Started Set the console keyboard layout.

Feb 12 10:17:03 myReef kernel: [ 0.000000] Booting Linux on physical CPU 0x0
This is not reef-pi related (the controller software I meant), but your system (pi/raspbian) was rebooted. I can also see a huge delta in timestamp (reverse :-( ), which is not good (10:43 to 10:17). You can ignore the TLS error messages, those are benign.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,241
Location
Columbia MD
Rating - 0%
0   0   0
This is not reef-pi related (the controller software I meant), but your system (pi/raspbian) was rebooted. I can also see a huge delta in timestamp (reverse :-( ), which is not good (10:43 to 10:17). You can ignore the TLS error messages, those are benign.

What does that mean lol. The two time frames are not pasted in order. I just copied a small section from each time frame and pasted them here.
 

16Reefer170

Community Member
View Badges
Joined
May 14, 2018
Messages
44
Reaction score
67
Rating - 0%
0   0   0
Hello, I am hoping that someone can offer some advice on fixing the settings that I have made that causes these errors.
IMG_0021.JPG
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,955
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
What does that mean lol. The two time frames are not pasted in order. I just copied a small section from each time frame and pasted them here.

Reboots can be Linux kernel panics, or power issues.

Do you port forward just 443 or put the device in a DMZ (is port 22 also exposed to the internet?)
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,241
Location
Columbia MD
Rating - 0%
0   0   0
@theatrus I have two routers connected to each other. My ISP router serves as the makeshift DMZ. This where my reefpi resides. This router has port forwarding turned on for 443 all the time and 22 is normally off but I turned it on today because I Wanted to poke around in the terminal. My second router connects to the main router and is where my home network is.
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,344
Reaction score
1,722
Location
Missouri
Rating - 0%
0   0   0
@theatrus I have two routers connected to each other. My ISP router serves as the makeshift DMZ. This where my reefpi resides. This router has port forwarding turned on for 443 all the time and 22 is normally off but I turned it on today because I Wanted to poke around in the terminal. My second router connects to the main router and is where my home network is.

Actually thats not a bad setup but your still exposing reef-pi to anyone that wants to knock on the door, honestly I haven't poked much at the code or tried to bypass stuff but not something I would recommend. Even though it doesn't contain personal information or allow lateral movement, I'm not sure if someone hacked into it I'd want them to be able to mess with my aquarium, turn up the heaters etc...
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,955
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
@theatrus I have two routers connected to each other. My ISP router serves as the makeshift DMZ. This where my reefpi resides. This router has port forwarding turned on for 443 all the time and 22 is normally off but I turned it on today because I Wanted to poke around in the terminal. My second router connects to the main router and is where my home network is.

I assume you changed the default raspberry pi password for the pi account? :)
 

Rock solid aquascape: Does the weight of the rocks in your aquascape matter?

  • The weight of the rocks is a key factor.

    Votes: 12 8.6%
  • The weight of the rocks is one of many factors.

    Votes: 48 34.5%
  • The weight of the rocks is a minor factor.

    Votes: 45 32.4%
  • The weight of the rocks is not a factor.

    Votes: 32 23.0%
  • Other.

    Votes: 2 1.4%
Back
Top