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

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

  1. Ranjib

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

    Joined:
    Apr 16, 2016
    Messages:
    6,490
    Likes Received:
    11,097
    Location:
    Palo Alto, Bay Area
    Welcome to reef2reef :)
     
    crusso1993 and DirtDiggler2823 like this.

  2. BenB

    BenB Member

    Joined:
    Jun 11, 2019
    Messages:
    7
    Likes Received:
    7
    I ordered a pca9685, it is not connected to the Pi.
     
  3. BenB

    BenB Member

    Joined:
    Jun 11, 2019
    Messages:
    7
    Likes Received:
    7
    Browser that is build in to raspbian, and Chrome for android.

    The log was empty but that can be because i reset the database, i will try Again.
     
    Ranjib likes this.
  4. DirtDiggler2823

    DirtDiggler2823 Valuable Member R2R Supporter Build Thread Contributor Delaware Reef Club

    Joined:
    Jul 31, 2018
    Messages:
    1,401
    Likes Received:
    1,812
    Location:
    Gambrills
    I should be available to begin testing on the wireless plugs in a month or so. Is that a functionality I can implement on my end, or will it require extensive work in the CLI?
     
    crusso1993 likes this.
  5. dmolavi

    dmolavi Active Member Build Thread Contributor

    Joined:
    Jan 3, 2015
    Messages:
    383
    Likes Received:
    500
    Location:
    United States
    I have 4 spare TPLink plugs that I can test on...
     
    crusso1993 and DirtDiggler2823 like this.
  6. DirtDiggler2823

    DirtDiggler2823 Valuable Member R2R Supporter Build Thread Contributor Delaware Reef Club

    Joined:
    Jul 31, 2018
    Messages:
    1,401
    Likes Received:
    1,812
    Location:
    Gambrills
    Other than the hardware, what changes are required in the reef-pi?
     
    crusso1993 likes this.
  7. DirtDiggler2823

    DirtDiggler2823 Valuable Member R2R Supporter Build Thread Contributor Delaware Reef Club

    Joined:
    Jul 31, 2018
    Messages:
    1,401
    Likes Received:
    1,812
    Location:
    Gambrills
    The pH probe is doing well. I do get this error almost daily though: ph subsystem: Failed read probe:pico-pHError:write /dev/i2c-1: remote I/O error

    pH History.JPG
     
    Ranjib and Bigtrout like this.
  8. DirtDiggler2823

    DirtDiggler2823 Valuable Member R2R Supporter Build Thread Contributor Delaware Reef Club

    Joined:
    Jul 31, 2018
    Messages:
    1,401
    Likes Received:
    1,812
    Location:
    Gambrills
    Noticed the resources getting used up pretty quickly recently, and when I went to log into the reef-pi, the UI was missing a lot of items. I went to reboot, and that action was delayed by about 10 seconds. I have the pH probe polling at 90 second intervals. Is that too frequent? Should I change it to hourly, or every 30 minutes?

    memory creep.JPG
     
    Ranjib likes this.
  9. Ranjib

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

    Joined:
    Apr 16, 2016
    Messages:
    6,490
    Likes Received:
    11,097
    Location:
    Palo Alto, Bay Area
    We have to cross check if the culprit is reef-pi or something else running on pi. Assuming its reef-pi, I am noticing 20% memory usage increase in past 10 days. Is that assessment correct? Can you share some details around what all you have configured on the reef-pi? I can then reproduce and fix the issue. I am specifically looking at timer, lights, ato, temp controller, ph etc.
     
  10. Ranjib

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

    Joined:
    Apr 16, 2016
    Messages:
    6,490
    Likes Received:
    11,097
    Location:
    Palo Alto, Bay Area
    WHich model? The current driver only supports hs1* series with single outlets
     
  11. Ranjib

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

    Joined:
    Apr 16, 2016
    Messages:
    6,490
    Likes Received:
    11,097
    Location:
    Palo Alto, Bay Area
    You need to execute a command to create the tplink driver using API (similar to ph calibration), thats all, then you can create outlet using that driver and associate it with an equipment using the normal UI
     
    DirtDiggler2823 and crusso1993 like this.
  12. Ranjib

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

    Joined:
    Apr 16, 2016
    Messages:
    6,490
    Likes Received:
    11,097
    Location:
    Palo Alto, Bay Area
    This is still an issue?
     
  13. dmolavi

    dmolavi Active Member Build Thread Contributor

    Joined:
    Jan 3, 2015
    Messages:
    383
    Likes Received:
    500
    Location:
    United States
    HS105
     
    Ranjib and crusso1993 like this.
  14. dmolavi

    dmolavi Active Member Build Thread Contributor

    Joined:
    Jan 3, 2015
    Messages:
    383
    Likes Received:
    500
    Location:
    United States
    what command is used to create the driver?
     
    Ranjib, brandon clow and crusso1993 like this.
  15. Bigtrout

    Bigtrout Well-Known Member R2R Supporter R2R Excellence Award

    Joined:
    Dec 16, 2018
    Messages:
    674
    Likes Received:
    1,728
    I have 3.0 and use chrome exclusively to access...3 temp sensors, 2 heater controllers ph board all reading at 60 seconds...8 outlets and 2 macros and 4 lighting pca9685 channels...steady 8 percent mem usage
     
    crusso1993 and Ranjib like this.
  16. BenB

    BenB Member

    Joined:
    Jun 11, 2019
    Messages:
    7
    Likes Received:
    7
    Here are the logs:
    upload_2019-6-14_7-44-8.png

    It looks like a PCA9685 needs to be connected when enabling the PCA9685 option. Only then I do not expect that reef pi does not start, rather gives an error.
    Can someone try the same? I have nothing connected to the PI, running 2.4 with raspbian 4.14. From a blank install just enable the "PCA9685" update and reboot.
    Deleting the database afterward brings you back to a functioning reef-pi, Thanks!!
     
    Ranjib likes this.
  17. Ranjib

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

    Joined:
    Apr 16, 2016
    Messages:
    6,490
    Likes Received:
    11,097
    Location:
    Palo Alto, Bay Area
    create a file with following data (kasa.json) . Type "hs1xx" is important, this tells reef-pi that its a kasa smartplug. Change the SMART_PLUG_IP with your smar plug's IP (check your router or kasa app to get the ip ).
    Code:
    {"name":"KasaTest","type":"hs1xx","config":{"address":"SMART_PLUG_IP:9999"}}
    
    Then use reef-pi api to create a new driver. Use appropriate reef-pi ip. You'll need to create the cookie.txt file using auth/signin api. if its there, it can be reused.
    Code:
    curl -X PUT -d @kasa.json  http://REEF_PI_IP/api/drivers -b cookie.txt
    
    After this you should see a new driver name kasa is visible in Configuration -> Drivers section. You can go to connectors and create outlet and associate the new driver from UI . Let me know how it goes . I was ecstatic to see this working :)
     
    brandon clow, dmolavi and crusso1993 like this.
  18. Ranjib

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

    Joined:
    Apr 16, 2016
    Messages:
    6,490
    Likes Received:
    11,097
    Location:
    Palo Alto, Bay Area
    this is a bug. :-( . We'll have to fix it.
     
    crusso1993 likes this.
  19. Ranjib

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

    Joined:
    Apr 16, 2016
    Messages:
    6,490
    Likes Received:
    11,097
    Location:
    Palo Alto, Bay Area
    I just noticed this driver support was landed soon after the 3.0 alpha prerelease, so this is not present in rhat release. Are you building from master? If not, you have to wait till I cut a new release of build from master.
     
    crusso1993 likes this.
  20. dmolavi

    dmolavi Active Member Build Thread Contributor

    Joined:
    Jan 3, 2015
    Messages:
    383
    Likes Received:
    500
    Location:
    United States
    I'm building from source. I'll test later today.
     
    Ranjib likes this.
Draft saved Draft deleted