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

Aaron Smith

Active Member
View Badges
Joined
Apr 9, 2017
Messages
250
Reaction score
267
Location
Oregon
yup, its running. Is the raspberry pi connected to internet via wifi ? If so, change the config from `interface: eth0` to `interface: wlan0` , also change the address from `address: "localhost:8080"` to `address: "0.0.0.0:8080"` . And restart reef-pi service `sudo systemctl restart reef-pi.service` . You have to be root for all the things (sudo )
I am connected via Ethernet.

To access reef-pi, do I go to my web browser (on pi) and type HTTPS://localhost:8080 ?
 
Top Shelf Aquatics
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
6,818
Reaction score
11,874
Location
Palo Alto, Bay Area
Yes. if the browser is from raspberry pi's display this will work (i.e. the touchscreen or some hdmi display attached to raspberry pi) , if not (i.e. if the brower is some other device, say mobile phone or tablet), then you have to change the conig to tell reef-pi to allow connecting from outside ,(address: "localhost:8080", change it to address: "0.0.0.0:8080", and restart reef pi using `sudo systemctl restart reef-pi.service`) , then you can connect to reef-pi UI from any device using the raspberry pi's ip. If that 10.0.0.47 (you can get it from the command `ip a s`), then your url will be `http://10.0.0.47:8080`
 

Aaron Smith

Active Member
View Badges
Joined
Apr 9, 2017
Messages
250
Reaction score
267
Location
Oregon
Yes. if the browser is from raspberry pi's display this will work (i.e. the touchscreen or some hdmi display attached to raspberry pi) , if not (i.e. if the brower is some other device, say mobile phone or tablet), then you have to change the conig to tell reef-pi to allow connecting from outside ,(address: "localhost:8080", change it to address: "0.0.0.0:8080", and restart reef pi using `sudo systemctl restart reef-pi.service`) , then you can connect to reef-pi UI from any device using the raspberry pi's ip. If that 10.0.0.47 (you can get it from the command `ip a s`), then your url will be `http://10.0.0.47:8080`


Local host refused to connect.

Should be something simple eh?
 

Aaron Smith

Active Member
View Badges
Joined
Apr 9, 2017
Messages
250
Reaction score
267
Location
Oregon
Formatted and re-installed everything. I am up and running. One thing on the reef-pi install. I had to rename the file to match the install on the directions from page 2.

Now the fun begins!

I will be 5v pwm controlling 1 black box led with white blue channels. Let's see what we can do. I have the relay module but have not yet wired that up.
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
6,818
Reaction score
11,874
Location
Palo Alto, Bay Area
are you using the mcp3008 sensor board or pca9685 , or is it just the raspberry pi . If so, you have to disable the pwm, and sensor features, to do so set pwm and adc to false in /etc/reef-pi/config.yml and restart reef pi
```
enable_pwm: false
enable_adc: false
```
`sudo systemctl restart reef-pi.service`
 

Aaron Smith

Active Member
View Badges
Joined
Apr 9, 2017
Messages
250
Reaction score
267
Location
Oregon
I have the pca9685 and the mcp3008. I didn't get the other ic as my fixtures dim via 5v. I see that the config files are set to false by default. Should I enable to use the added components?
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
6,818
Reaction score
11,874
Location
Palo Alto, Bay Area
Nope. This should work, can you share the output of `sudo journalctl -u reef-pi.service` , in its entirety
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
6,818
Reaction score
11,874
Location
Palo Alto, Bay Area
Its a config file issue. You have a empty outlet type specified somewhere. Can you share the config file content ?

something like this:
```
outlets:
foo:
pin: 14
type:
```
so.. type should be either "pwm" or "relay", or absent (defaults to relay), but cant be empty

change it to
```
outlets:
foo:
pin: 14
```
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
6,818
Reaction score
11,874
Location
Palo Alto, Bay Area
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
6,818
Reaction score
11,874
Location
Palo Alto, Bay Area
I just tried it (starting reef-pi without any outlet defined, and it worked for me). Can you delete the database file and restart reef-pi service

```
sudo systemctl stop reef-pi.service
sudo rm /var/lib/reef-pi/reef-pi.db
sudo systemctl start reef-pi.service
```
 
OP
Ranjib

Ranjib

Valuable Member
View Badges
Joined
Apr 16, 2016
Messages
6,818
Reaction score
11,874
Location
Palo Alto, Bay Area
You can only add component via the config file. In the beginning I had UI to add /remove components, but later I moved those to configuration file (/etc/reef-pi/config.yml) . How many relay , pwm device you want to configure?
 
Corals.com

Is your Build Thread Badge missing? Uh oh!

  • Yes it's gone

    Votes: 86 27.6%
  • Nope, I'm quick

    Votes: 93 29.8%
  • Uh I don't understand. (you better click and read)

    Votes: 61 19.6%
  • Never had one...until now!

    Votes: 72 23.1%

Online statistics

Members online
1,656
Guests online
4,134
Total visitors
5,790
Top Shelf Aquatics
Mistress Corals
Top