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
273
Location
Oregon
Rating - 0%
0   0   0
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 ?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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
273
Location
Oregon
Rating - 0%
0   0   0
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`

f4bdb2f55afeec0857ef8c089dd7d3f8.jpg


Local host refused to connect.

Should be something simple eh?
 

Aaron Smith

Active Member
View Badges
Joined
Apr 9, 2017
Messages
250
Reaction score
273
Location
Oregon
Rating - 0%
0   0   0
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
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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
273
Location
Oregon
Rating - 0%
0   0   0
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
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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?
 

HAVE YOU EVER KEPT A RARE/UNCOMMON FISH, CORAL, OR INVERT? SHOW IT OFF IN THE THREAD!

  • 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%
Back
Top