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

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
You could also use something like a mosfet, but for larger voltage. Using the arduino for the gate
Agree, I was referring to the kessil controller circuit that uses common npn transistor (2n222 or 2n3904 etc). For high power LED use a logic level mosfet (e.g IRLB8721).
I do think l293d are better for driving the peristaltic pump though, they provide ESD protection as well as control of direction (h bridges)
 
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
So I've gone and messed something up again :(

I was playing with the Dashboard settings, trying to get the Dashboard to display bigger on my PC particularly. I set column width to 800 and now when I try load the IP address to access the Reef-Pi, I see the dashboard flash on for a fraction of a second - like literally a blink and then blank screen.

I've tried on my iPhone and laptop. I've also tried logging into the Pi directly through Teamviewer and get the same result every time.

The system is running fine though.

Can someone please help un-fcuk this thing. :oops:
let's refrain from using bad words.
On your error, its not very clear what error you are hitting. Can you look at the javascript console. You can right click on your browser (e.g. chrome) and go to inspect and then check the console tab, it will show the details of the error, once we know that, we can fix the specific problem
 
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 everyone,
I am having trouble getting software to run. I can access reef-pi but it does not appear to be running correctly. I currently do not have anything hooked up to the controller but I was hoping to play around with it and start off with a ATO then temp. Here is the error that I am getting in the terminal, I am running 1.5. Can you guys help me out?

reef-pi
2018/07/21 19:46:44 DB: reef-pi.db
2018/07/21 19:46:44 Successfully started subsystem: system
2018/07/21 19:46:44 INFO: equipment subsystem: Finished syncing all equipment
2018/07/21 19:46:44 Successfully started subsystem: equipments
2018/07/21 19:46:44 Successfully started subsystem: timers
2018/07/21 19:46:44 ERROR: ato sub-system failed to restore usage statistics from db. Error: Item 'usage' does not exist in bucket 'ato'
2018/07/21 19:46:44 Successfully started subsystem: ato
2018/07/21 19:46:44 Starting ato sub system
2018/07/21 19:46:44 ERROR: temperature sub-system failed to restore usage statistics from db. Error: Item 'usage' does not exist in bucket 'temperature'
2018/07/21 19:46:44 ERROR: temperature sub-system failed to restore readings from db. Error: Item 'readings' does not exist in bucket 'temperature'
2018/07/21 19:46:44 Successfully started subsystem: temperature
2018/07/21 19:46:44 Starting temperature controller
2018/07/21 19:46:44 reef-pi is up and running
2018/07/21 19:46:44 ERROR: health check sub-system failed to restore hourly usage statistics from db. Error: Item 'm_usage' does not exist in bucket 'reef-pi'
2018/07/21 19:46:44 ERROR: health check sub-system failed to restore weekly usage statistics from db. Error: Item 'h_usage' does not exist in bucket 'reef-pi'
2018/07/21 19:46:44 Starting health checker
2018/07/21 19:46:44 Starting http server at: 0.0.0.0:80
2018/07/21 19:46:44 ERROR: Failed to run http server. Error: listen tcp 0.0.0.0:80: bind: permission denied
there are multiple things going on here
1) You have started reef-pi directly , as normal (pi) user, which does not have required privileges. permission denied errors are related to that. Stop the current process (Ctl+C) , that you started. The right way to start or stop reef-pi is
Code:
sudo systemctl start reef-pi.service
change start to stop in the above command for stopping reef-pi. The troubleshooting page details how to check log and status, use those when you report an error, it will be easier to debug
2) the usage errors are benign and expected . When you first start reef-pi usage data is not present (since it has not run for long enough).
 

U.P.Guy

Community Member
View Badges
Joined
Jul 24, 2017
Messages
74
Reaction score
62
Rating - 0%
0   0   0
there are multiple things going on here
1) You have started reef-pi directly , as normal (pi) user, which does not have required privileges. permission denied errors are related to that. Stop the current process (Ctl+C) , that you started. The right way to start or stop reef-pi is
Code:
sudo systemctl start reef-pi.service
change start to stop in the above command for stopping reef-pi. The troubleshooting page details how to check log and status, use those when you report an error, it will be easier to debug
2) the usage errors are benign and expected . When you first start reef-pi usage data is not present (since it has not run for long enough).

Ok, thank you for the help!
I used control C and then started reef pi as instructed. It would appear as if reef-pi is still not running correctly. I also ran information from the troubleshooting page as you said and got this response. forgive me as I am new to this operating system and working with any kind of programming.

sudo systemctl status reef-pi.service
● reef-pi.service - raspberry pi based reef tank controller
Loaded: loaded (/lib/systemd/system/reef-pi.service; enabled; vendor preset:
Active: active (running) since Sat 2018-07-21 22:29:05 EDT; 6min ago
Main PID: 302 (reef-pi)
CGroup: /system.slice/reef-pi.service
└─302 /usr/bin/reef-pi -config /etc/reef-pi/config.yml

Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 ERROR: Failed to l
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 ERROR: health chec
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 ERROR: health chec
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting health ch
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting http serv
Jul 21 22:30:06 raspberrypi reef-pi[302]: 2018/07/21 22:30:06 health check: Used
Jul 21 22:31:26 raspberrypi reef-pi[302]: 2018/07/21 22:31:26 health check: Used
Jul 21 22:32:26 raspberrypi reef-pi[302]: 2018/07/21 22:32:26 health check: Used
Jul 21 22:33:26 raspberrypi reef-pi[302]: 2018/07/21 22:33:26 health check: Used
Jul 21 22:34:26 raspberrypi reef-pi[302]: 2018/07/21 22:34:26 health check: Used
lines 1-17/17 (END)

sudo journalctl -fu reef-pi.service
-- Logs begin at Thu 2016-11-03 13:16:42 EDT. --
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting health checker
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting http server at: 0.0.0.0:80
Jul 21 22:30:06 raspberrypi reef-pi[302]: 2018/07/21 22:30:06 health check: Used memory: 15.96 Load5: 0.18
Jul 21 22:31:26 raspberrypi reef-pi[302]: 2018/07/21 22:31:26 health check: Used memory: 16.28 Load5: 0.2
Jul 21 22:32:26 raspberrypi reef-pi[302]: 2018/07/21 22:32:26 health check: Used memory: 16.55 Load5: 0.23
Jul 21 22:33:26 raspberrypi reef-pi[302]: 2018/07/21 22:33:26 health check: Used memory: 16.25 Load5: 0.21
Jul 21 22:34:26 raspberrypi reef-pi[302]: 2018/07/21 22:34:26 health check: Used memory: 28.95 Load5: 0.35
Jul 21 22:35:26 raspberrypi reef-pi[302]: 2018/07/21 22:35:26 health check: Used memory: 16.61 Load5: 0.39
Jul 21 22:36:26 raspberrypi reef-pi[302]: 2018/07/21 22:36:26 health check: Used memory: 16.6 Load5: 0.36
Jul 21 22:37:26 raspberrypi reef-pi[302]: 2018/07/21 22:37:26 health check: Used memory: 16.6 Load5: 0.33

reef-pi -version
1.5
 

U.P.Guy

Community Member
View Badges
Joined
Jul 24, 2017
Messages
74
Reaction score
62
Rating - 0%
0   0   0
Ranjib Is it possible i do not know how to access reef-pi correctly?
I used the http: server address from entering reef-pi... which you said was not the correct way to start reef-pi?
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
Ranjib Is it possible i do not know how to access reef-pi correctly?
I used the http: server address from entering reef-pi... which you said was not the correct way to start reef-pi?

two ways
Open browser on pi Machine running Reef-pi and type in localhost long is in reef-pi password reef-pi
from a different computer on the same network.. type the ip address of the machine running reef-pi... ie 192.168.0.xx
 
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
Ok, thank you for the help!
I used control C and then started reef pi as instructed. It would appear as if reef-pi is still not running correctly. I also ran information from the troubleshooting page as you said and got this response. forgive me as I am new to this operating system and working with any kind of programming.

sudo systemctl status reef-pi.service
● reef-pi.service - raspberry pi based reef tank controller
Loaded: loaded (/lib/systemd/system/reef-pi.service; enabled; vendor preset:
Active: active (running) since Sat 2018-07-21 22:29:05 EDT; 6min ago
Main PID: 302 (reef-pi)
CGroup: /system.slice/reef-pi.service
└─302 /usr/bin/reef-pi -config /etc/reef-pi/config.yml

Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 ERROR: Failed to l
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 ERROR: health chec
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 ERROR: health chec
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting health ch
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting http serv
Jul 21 22:30:06 raspberrypi reef-pi[302]: 2018/07/21 22:30:06 health check: Used
Jul 21 22:31:26 raspberrypi reef-pi[302]: 2018/07/21 22:31:26 health check: Used
Jul 21 22:32:26 raspberrypi reef-pi[302]: 2018/07/21 22:32:26 health check: Used
Jul 21 22:33:26 raspberrypi reef-pi[302]: 2018/07/21 22:33:26 health check: Used
Jul 21 22:34:26 raspberrypi reef-pi[302]: 2018/07/21 22:34:26 health check: Used
lines 1-17/17 (END)

sudo journalctl -fu reef-pi.service
-- Logs begin at Thu 2016-11-03 13:16:42 EDT. --
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting health checker
Jul 21 22:29:06 raspberrypi reef-pi[302]: 2018/07/21 22:29:06 Starting http server at: 0.0.0.0:80
Jul 21 22:30:06 raspberrypi reef-pi[302]: 2018/07/21 22:30:06 health check: Used memory: 15.96 Load5: 0.18
Jul 21 22:31:26 raspberrypi reef-pi[302]: 2018/07/21 22:31:26 health check: Used memory: 16.28 Load5: 0.2
Jul 21 22:32:26 raspberrypi reef-pi[302]: 2018/07/21 22:32:26 health check: Used memory: 16.55 Load5: 0.23
Jul 21 22:33:26 raspberrypi reef-pi[302]: 2018/07/21 22:33:26 health check: Used memory: 16.25 Load5: 0.21
Jul 21 22:34:26 raspberrypi reef-pi[302]: 2018/07/21 22:34:26 health check: Used memory: 28.95 Load5: 0.35
Jul 21 22:35:26 raspberrypi reef-pi[302]: 2018/07/21 22:35:26 health check: Used memory: 16.61 Load5: 0.39
Jul 21 22:36:26 raspberrypi reef-pi[302]: 2018/07/21 22:36:26 health check: Used memory: 16.6 Load5: 0.36
Jul 21 22:37:26 raspberrypi reef-pi[302]: 2018/07/21 22:37:26 health check: Used memory: 16.6 Load5: 0.33

reef-pi -version
1.5
Dont be apologetic. You are doing awesome.
from your log it look like reef-pi is running fine.
 

MaccaPopEye

Well-Known Member
View Badges
Joined
Jan 5, 2016
Messages
697
Reaction score
1,224
Rating - 0%
0   0   0
Going to have to give it a try, most of the stuff I print aren't critical anyway if the do start to degrade, and it sounds like it takes alot longer that reported. Again, any particular brand that you have been using?
Tell me about the nitrate reactor? Did you post the .stl? Not too long ago someone started a poll on a 3d sub forum, shame it never got off the ground.
I've been using a mix of brands. The main one I prefer is PLA+ from 3D Fillies in Australia, but I also get a bit of PLA, PETG and ABS form hobby king because its cheap (and they have free shipping over a certain amount).

Here is the link to the thread about Donovan's Nitrate Destroyer and where I posed the link to the .stl files
https://www.reef2reef.com/threads/p...nitrate-destroyer.302685/page-38#post-4777651

I plan to get the .slt files for the Reef-Pi powerboard and brain up in the next 2 days.

I know there is a couple of threads for reef related 3D prints, I 'll find that poll and see if we can get it restarted. Then we can keep this thread a bit more on topic haha :p
 

philshel

Active Member
View Badges
Joined
Jul 24, 2010
Messages
365
Reaction score
375
Rating - 0%
0   0   0
I've been using a mix of brands. The main one I prefer is PLA+ from 3D Fillies in Australia, but I also get a bit of PLA, PETG and ABS form hobby king because its cheap (and they have free shipping over a certain amount).

Here is the link to the thread about Donovan's Nitrate Destroyer and where I posed the link to the .stl files
https://www.reef2reef.com/threads/p...nitrate-destroyer.302685/page-38#post-4777651

I plan to get the .slt files for the Reef-Pi powerboard and brain up in the next 2 days.

I know there is a couple of threads for reef related 3D prints, I 'll find that poll and see if we can get it restarted. Then we can keep this thread a bit more on topic haha :p

Ummm...... how about, it is on topic because we need to print an enclosure......yeah, yeah, that's the ticket. Sorry I took things off on a bit of a tangent.
 

MaccaPopEye

Well-Known Member
View Badges
Joined
Jan 5, 2016
Messages
697
Reaction score
1,224
Rating - 0%
0   0   0
Ummm...... how about, it is on topic because we need to print an enclosure......yeah, yeah, that's the ticket. Sorry I took things off on a bit of a tangent.
I didn't mean you in particular, I'm guilty of it too :p

Keen as to see some other 3D printed housings though!
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
Circuit board etching, Materials and Methods.. Anyone done this or attempted to do so.. I have been reading several sources (well watching some on that tube place) It appears to be Straight forward and quite Easily with a bit of time and Patience.. Thoughts ?
 

morpheas

Well-Known Member
View Badges
Joined
Apr 3, 2016
Messages
532
Reaction score
447
Rating - 0%
0   0   0
Circuit board etching, Materials and Methods.. Anyone done this or attempted to do so.. I have been reading several sources (well watching some on that tube place) It appears to be Straight forward and quite Easily with a bit of time and Patience.. Thoughts ?
I would strongly recommend using a service like JLCPCB. You get professional boards for cheap and you don't have to mess around with dangerous acids, fumes, uv light, disposal etc I've used them quite a few times and their boards are always to spec, never had a problem...
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
I would strongly recommend using a service like JLCPCB. You get professional boards for cheap and you don't have to mess around with dangerous acids, fumes, uv light, disposal etc I've used them quite a few times and their boards are always to spec, never had a problem...
I agree that is best , Once you have a final design.. But with min order, Wait time (shipping) . Testing make changes have reprinted ..... Creating a Single board for testing seems more economical until you get Exactly what you want.

Then do a Group order for larger Quantity .
 

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 4 66.7%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 2 33.3%
Back
Top
Home
Post thread…
Market
What's new