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

Discussion in 'Do It Yourself (DIY)' started by Ranjib, Feb 10, 2017.

  1. Aaron Smith

    Aaron Smith Active Member R2R Supporter

    Joined:
    Apr 9, 2017
    Messages:
    249
    Likes Received:
    262
    Location:
    Oregon
    I am connected via Ethernet.

    To access reef-pi, do I go to my web browser (on pi) and type HTTPS://localhost:8080 ?
     
    njtiger aquariums likes this.

  2. Ranjib

    Ranjib Valuable Member R2R Supporter Reef Squad R2R Excellence Award Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    4,822
    Likes Received:
    7,365
    Location:
    Foster City, 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`
     
    njtiger aquariums likes this.
  3. Ranjib

    Ranjib Valuable Member R2R Supporter Reef Squad R2R Excellence Award Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    4,822
    Likes Received:
    7,365
    Location:
    Foster City, Bay Area
    njtiger aquariums likes this.
  4. Aaron Smith

    Aaron Smith Active Member R2R Supporter

    Joined:
    Apr 9, 2017
    Messages:
    249
    Likes Received:
    262
    Location:
    Oregon
    [​IMG]

    Local host refused to connect.

    Should be something simple eh?
     
    njtiger aquariums likes this.
  5. Ranjib

    Ranjib Valuable Member R2R Supporter Reef Squad R2R Excellence Award Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    4,822
    Likes Received:
    7,365
    Location:
    Foster City, Bay Area
    Http not https,remove the extra s
     
    njtiger aquariums likes this.
  6. Aaron Smith

    Aaron Smith Active Member R2R Supporter

    Joined:
    Apr 9, 2017
    Messages:
    249
    Likes Received:
    262
    Location:
    Oregon
    [​IMG]

    Restarted pi and reef-pi failed

    Any ideas

    Thanks again for all the help!
     
    njtiger aquariums likes this.
  7. Aaron Smith

    Aaron Smith Active Member R2R Supporter

    Joined:
    Apr 9, 2017
    Messages:
    249
    Likes Received:
    262
    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.
     
    njtiger aquariums likes this.
  8. Ranjib

    Ranjib Valuable Member R2R Supporter Reef Squad R2R Excellence Award Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    4,822
    Likes Received:
    7,365
    Location:
    Foster City, 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`
     
    njtiger aquariums likes this.
  9. Aaron Smith

    Aaron Smith Active Member R2R Supporter

    Joined:
    Apr 9, 2017
    Messages:
    249
    Likes Received:
    262
    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?
     
    njtiger aquariums likes this.
  10. Ranjib

    Ranjib Valuable Member R2R Supporter Reef Squad R2R Excellence Award Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    4,822
    Likes Received:
    7,365
    Location:
    Foster City, Bay Area
    Nope. This should work, can you share the output of `sudo journalctl -u reef-pi.service` , in its entirety
     
    njtiger aquariums likes this.
  11. Aaron Smith

    Aaron Smith Active Member R2R Supporter

    Joined:
    Apr 9, 2017
    Messages:
    249
    Likes Received:
    262
    Location:
    Oregon
    [​IMG]

    Not much there...... But here ya go!
     
    njtiger aquariums likes this.
  12. Ranjib

    Ranjib Valuable Member R2R Supporter Reef Squad R2R Excellence Award Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    4,822
    Likes Received:
    7,365
    Location:
    Foster City, 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
    ```
     
    njtiger aquariums likes this.
  13. Aaron Smith

    Aaron Smith Active Member R2R Supporter

    Joined:
    Apr 9, 2017
    Messages:
    249
    Likes Received:
    262
    Location:
    Oregon
    config.yml? Or something else. I will need directions
     
    njtiger aquariums likes this.
  14. Ranjib

    Ranjib Valuable Member R2R Supporter Reef Squad R2R Excellence Award Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    4,822
    Likes Received:
    7,365
    Location:
    Foster City, Bay Area
    yes /etc/reef-pi/config.yml , can you share the content of that file.
     
    njtiger aquariums likes this.
  15. Aaron Smith

    Aaron Smith Active Member R2R Supporter

    Joined:
    Apr 9, 2017
    Messages:
    249
    Likes Received:
    262
    Location:
    Oregon
    [​IMG]
     
    njtiger aquariums likes this.
  16. Ranjib

    Ranjib Valuable Member R2R Supporter Reef Squad R2R Excellence Award Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    4,822
    Likes Received:
    7,365
    Location:
    Foster City, Bay Area
    njtiger aquariums likes this.
  17. Ranjib

    Ranjib Valuable Member R2R Supporter Reef Squad R2R Excellence Award Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    4,822
    Likes Received:
    7,365
    Location:
    Foster City, 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
    ```
     
    njtiger aquariums likes this.
  18. Aaron Smith

    Aaron Smith Active Member R2R Supporter

    Joined:
    Apr 9, 2017
    Messages:
    249
    Likes Received:
    262
    Location:
    Oregon
    [​IMG]
     
    njtiger aquariums likes this.
  19. Aaron Smith

    Aaron Smith Active Member R2R Supporter

    Joined:
    Apr 9, 2017
    Messages:
    249
    Likes Received:
    262
    Location:
    Oregon
    Should I start adding components to the browser interface?
     
    njtiger aquariums likes this.
  20. Ranjib

    Ranjib Valuable Member R2R Supporter Reef Squad R2R Excellence Award Build Thread Contributor

    Joined:
    Apr 16, 2016
    Messages:
    4,822
    Likes Received:
    7,365
    Location:
    Foster City, 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?
     
    njtiger aquariums likes this.
Draft saved Draft deleted

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
Loading...