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

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
640
Location
United States
Rating - 0%
0   0   0
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?
I have 4 spare TPLink plugs that I can test on...
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,075
Location
Gambrills
Rating - 0%
0   0   0
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
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,075
Location
Gambrills
Rating - 0%
0   0   0
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
 
OP
OP
Ranjib

Ranjib

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

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Other than the hardware, what changes are required in the reef-pi?
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
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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.
This is still an issue?
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
640
Location
United States
Rating - 0%
0   0   0
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

what command is used to create the driver?
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
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
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
This is still an issue?

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!!
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
what command is used to create the driver?
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 :-)
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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!!
this is a bug. :-( . We'll have to fix it.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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 :)
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.
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
640
Location
United States
Rating - 0%
0   0   0
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.
I'm building from source. I'll test later today.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
The really great thing about the tplink driver, or reef pi supporting a good smart plug, is that it eliminates having non technical people having to wire up something to control MAINS(120v or 240v) power. Issues with safety(UL listings and such) are taken off the table if well made UL listed devices are used for the AC side of things.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
The really great thing about the tplink driver, or reef pi supporting a good smart plug, is that it eliminates having non technical people having to wire up something to control MAINS(120v or 240v) power. Issues with safety(UL listings and such) are taken off the table if well made UL listed devices are used for the AC side of things.
I must say I also like the less wire aspect of it :-) . The dependency on WiFi is a concern though.
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
640
Location
United States
Rating - 0%
0   0   0
if i'm developing my own driver, where should i put the source code in my local repo? any time i try to add it with a command similar to yours above, i get an error about an unknown driver type.
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
640
Location
United States
Rating - 0%
0   0   0
i should add to my above post that i've updated factories.go to include my driver directory, and placed it in it's own directory in /gospace/pkg/dep/sources/https---github.com-reef--pi-drivers/ and did a make clean and make start-dev...but still no joy.
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 38 26.8%
  • 100% dry rock + 100% live sand

    Votes: 48 33.8%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 32 22.5%
  • 75% live rock, 25% live sand

    Votes: 14 9.9%
  • 25% live rock, 75% live sand

    Votes: 10 7.0%
Back
Top