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

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
Thats pretty long. I have tested as far as 6 feet only.
On main raspberry pi forum, some folks have recommended p
If its to long i wonder if the signal could be amplified, Or would it (my best guess) Use a pi-zero as a separate controller for my RODI -Water change stuff.

I will test today or tomorrow and let you know if it worked that far..
Official raspberry pi forum has some mentions of wire length as long as 15m, but different installation have different tunings (from 5v power rails to lower resistors, to using dedicated one wire driver using i2c -> one wire breakout board).
https://www.raspberrypi.org/forums/viewtopic.php?t=109723
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
On main raspberry pi forum, some folks have recommended p

Official raspberry pi forum has some mentions of wire length as long as 15m, but different installation have different tunings (from 5v power rails to lower resistors, to using dedicated one wire driver using i2c -> one wire breakout board).
https://www.raspberrypi.org/forums/viewtopic.php?t=109723

I tested it with a piece of cat 5 cable about 14 feet long and it appears to be working. I have 4 sensors . 1 at 14 ft 3 at the 2-3 feet what ever the cable was that come on them ...Will let it run a few days and see if its stable ....
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
Strange ui chart bug.

ATO = Running two temp switches not the photo sensor . (worked fine on 1.5)
ATO 1 and ATO 2 The charts under ato tab and on dashboard seem to be synced .

I can remove both switches in ato tab, Refresh in setting and Browser . .. with both ato the charts seem to be synced when i switch one ato on and off . then charts stop working... This Does not interfere with function... when i switch the ato switches they do trip relays 3 ,4 on and off as they should...
Its a chart issue...... I am testing this with just one ato to see if its just with two or more ....
Same with one sensor.. The charts blue bar raises and lowers but the date-time stamp does not update ...
Again not a Complaint just trying to help...

Thanks Erica Renee
 
Last edited:
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
Strange ui chart bug.

ATO = Running two temp switches not the photo sensor . (worked fine on 1.5)
ATO 1 and ATO 2 The charts under ato tab and on dashboard seem to be synced .

I can remove both switches in ato tab, Refresh in setting and Browser . .. with both ato the charts seem to be synced when i switch one ato on and off . then charts stop working... This Does not interfere with function... when i switch the ato switches they do trip relays 3 ,4 on and off as they should...
Its a chart issue...... I am testing this with just one ato to see if its just with two or more ....

Again not a Complaint just trying to help...

Thanks Erica Renee
Thank you for reporting this. I'll look into the chart issue tonight.

I just fixed the doser deletion via UI bug: https://github.com/reef-pi/reef-pi/pull/367

@Erica-Renee I really appreciate you reporting these bug, its a HUGE help. I dont take them as complaints, I am a career software professional, software bugs are my daily chores :-) , instead I am thankful that you are testing this and letting me know, which helps me fixing them for me and other users.
thanks again..
 
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
Too many non-coral posts :0)
DSC_1158.JPG
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
Here is the log
---------------------------------------------------------------------------------------------------------------------------------------
wn routine
May 11 11:02:20 raspberrypi reef-pi[6479]: 2018/05/11 11:02:20 ato sub-system: sensor ATO 1 value: 1
May 11 11:02:20 raspberrypi reef-pi[6479]: 2018/05/11 11:02:20 Setting GPIO Pin: 5 State: 0
May 11 11:02:20 raspberrypi reef-pi[6479]: 2018/05/11 11:02:20 Reading temperature from device: 28-051760afa4ff
May 11 11:02:20 raspberrypi reef-pi[6479]: 2018/05/11 11:02:20 Reading temperature from device: 28-03173055c7ff
May 11 11:02:21 raspberrypi reef-pi[6479]: 2018/05/11 11:02:21 temperature sub-system: sensor Temp Sensor 1 value: 78.35
May 11 11:02:21 raspberrypi reef-pi[6479]: 2018/05/11 11:02:21 Setting GPIO Pin: 27 State: 0
May 11 11:02:21 raspberrypi reef-pi[6479]: 2018/05/11 11:02:21 Setting GPIO Pin: 27 State: 0
May 11 11:02:21 raspberrypi reef-pi[6479]: 2018/05/11 11:02:21 temperature sub-system: sensor Temp Sensor 2 value: 78.0116
May 11 11:02:21 raspberrypi reef-pi[6479]: 2018/05/11 11:02:21 Current temperature is above maximum threshold. Executing cool down routine
May 11 11:02:25 raspberrypi reef-pi[6479]: 2018/05/11 11:02:25 Reading temperature from device: 28-051760afa4ff
May 11 11:02:25 raspberrypi reef-pi[6479]: 2018/05/11 11:02:25 Reading temperature from device: 28-03173055c7ff
May 11 11:02:25 raspberrypi reef-pi[6479]: 2018/05/11 11:02:25 ERROR: stats for id: '18' not found
May 11 11:02:25 raspberrypi reef-pi[6479]: 2018/05/11 11:02:25 ERROR: GET /api/atos/18/usage stats for id: '18' not found
May 11 11:02:25 raspberrypi reef-pi[6479]: 2018/05/11 11:02:25 ERROR: stats for id: '17' not found
May 11 11:02:25 raspberrypi reef-pi[6479]: 2018/05/11 11:02:25 ERROR: GET /api/atos/17/usage stats for id: '17' not found
May 11 11:02:26 raspberrypi reef-pi[6479]: 2018/05/11 11:02:26 temperature sub-system: sensor Temp Sensor 1 value: 78.35
May 11 11:02:26 raspberrypi reef-pi[6479]: 2018/05/11 11:02:26 temperature sub-system: sensor Temp Sensor 2 value: 78.0116
May 11 11:02:26 raspberrypi reef-pi[6479]: 2018/05/11 11:02:26 Current temperature is above maximum threshold. Executing cool down routine
May 11 11:02:26 raspberrypi reef-pi[6479]: 2018/05/11 11:02:26 Setting GPIO Pin: 27 State: 0
May 11 11:02:26 raspberrypi reef-pi[6479]: 2018/05/11 11:02:26 Setting GPIO Pin: 27 State: 0
May 11 11:02:30 raspberrypi reef-pi[6479]: 2018/05/11 11:02:30 ato sub-system: sensor ATO 1 value: 1
May 11 11:02:30 raspberrypi reef-pi[6479]: 2018/05/11 11:02:30 Setting GPIO Pin: 5 State: 0
May 11 11:02:30 raspberrypi reef-pi[6479]: 2018/05/11 11:02:30 Reading temperature from device: 28-051760afa4ff
May 11 11:02:30 raspberrypi reef-pi[6479]: 2018/05/11 11:02:30 Reading temperature from device: 28-03173055c7ff
May 11 11:02:31 raspberrypi reef-pi[6479]: 2018/05/11 11:02:31 temperature sub-system: sensor Temp Sensor 1 value: 78.35
May 11 11:02:31 raspberrypi reef-pi[6479]: 2018/05/11 11:02:31 Setting GPIO Pin: 27 State: 0
May 11 11:02:31 raspberrypi reef-pi[6479]: 2018/05/11 11:02:31 Setting GPIO Pin: 27 State: 0
May 11 11:02:31 raspberrypi reef-pi[6479]: 2018/05/11 11:02:31 temperature sub-system: sensor Temp Sensor 2 value: 78.0116
May 11 11:02:31 raspberrypi reef-pi[6479]: 2018/05/11 11:02:31 Current temperature is above maximum threshold. Executing cool down routine
---------------------------------------------------------------


I should have posted this with the first post ...
 
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
@Erica-Renee the log does not have any serious error. There are couple of error statement of missing ato sensor, which is normal if you delete a sensor but the chart is still configured to use them, thus making API call for non existing sensor data.

When you delete a sensor (temperature or ato) or light or any other component, you have to go back and update the chart settings under configuration -> dashboard ,
did you do that? or the dashboard settings were still using older/non-existent ato sensors?
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
@Erica-Renee the log does not have any serious error. There are couple of error statement of missing ato sensor, which is normal if you delete a sensor but the chart is still configured to use them, thus making API call for non existing sensor data.

When you delete a sensor (temperature or ato) or light or any other component, you have to go back and update the chart settings under configuration -> dashboard ,
did you do that? or the dashboard settings were still using older/non-existent ato sensors?

Yes but the update button is never red...

What i tried last time...
Delete ato 1 in ato tab.
go to settings Dashboard change ato 1 chart to health -currant ... hit update (thou it was not red) Hit reload. Refresh browser . Go back into ato and recreate ato 1 ..
go to settings tab and Refresh . go back to ato and trip ato switch.. It moves the Relay and the chart appears and blue bar will move up and down upon switching.. but date and time does not change from that moment . or moves forward ..

I also ran the ,, stop rm database restart pi command and rebooted pi a few times .......

I think its not updating the Database .. maybe to much tinkering?
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
ok so

I deleted ato ... under ato tab.. Deleted ato under connectors inlets ..
hit reload from settings and refreshed browser
then

sudo systemctl stop reef-pi.service
sudo rm -rf /var/lib/reef-pi/reef-pi.dbsudo
sudo systemctl start reef-pi.service
Rebooted pi
Ran sudo journalctl -fu reef-pi.service
------------- OUT PUT
34]: 2018/05/11 11:51:57 Current temperature is above maximum threshold. Executing cool down routine
May 11 11:52:01 raspberrypi reef-pi[2034]: 2018/05/11 11:52:01 Reading temperature from device: 28-051760afa4ff
May 11 11:52:01 raspberrypi reef-pi[2034]: 2018/05/11 11:52:01 Reading temperature from device: 28-03173055c7ff
May 11 11:52:02 raspberrypi reef-pi[2034]: 2018/05/11 11:52:02 temperature sub-system: sensor Temp Sensor 1 value: 80.6
May 11 11:52:02 raspberrypi reef-pi[2034]: 2018/05/11 11:52:02 Setting GPIO Pin: 27 State: 0
May 11 11:52:02 raspberrypi reef-pi[2034]: 2018/05/11 11:52:02 Setting GPIO Pin: 27 State: 0
May 11 11:52:02 raspberrypi reef-pi[2034]: 2018/05/11 11:52:02 temperature sub-system: sensor Temp Sensor 2 value: 80.2616
May 11 11:52:02 raspberrypi reef-pi[2034]: 2018/05/11 11:52:02 Current temperature is above maximum threshold. Executing cool down routine
May 11 11:52:06 raspberrypi reef-pi[2034]: 2018/05/11 11:52:06 ERROR: stats for id: '22' not found
May 11 11:52:06 raspberrypi reef-pi[2034]: 2018/05/11 11:52:06 ERROR: GET /api/atos/22/usage stats for id: '22' not found
May 11 11:52:06 raspberrypi reef-pi[2034]: 2018/05/11 11:52:06 Reading temperature from device: 28-051760afa4ff
May 11 11:52:06 raspberrypi reef-pi[2034]: 2018/05/11 11:52:06 Reading temperature from device: 28-03173055c7ff
May 11 11:52:07 raspberrypi reef-pi[2034]: 2018/05/11 11:52:07 temperature sub-system: sensor Temp Sensor 1 value: 80.6
May 11 11:52:07 raspberrypi reef-pi[2034]: 2018/05/11 11:52:07 Setting GPIO Pin: 27 State: 0
May 11 11:52:07 raspberrypi reef-pi[2034]: 2018/05/11 11:52:07 Setting GPIO Pin: 27 State: 0
May 11 11:52:07 raspberrypi reef-pi[2034]: 2018/05/11 11:52:07 temperature sub-system: sensor Temp Sensor 2 value: 80.2616
------------------------------------

It appears something is not updated or db is not being deleted... OR I just broke something ...
 
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
ok so

I deleted ato ... under ato tab.. Deleted ato under connectors inlets ..
hit reload from settings and refreshed browser
then

sudo systemctl stop reef-pi.service
sudo rm -rf /var/lib/reef-pi/reef-pi.dbsudo
sudo systemctl start reef-pi.service
Rebooted pi
Ran sudo journalctl -fu reef-pi.service
------------- OUT PUT
34]: 2018/05/11 11:51:57 Current temperature is above maximum threshold. Executing cool down routine
May 11 11:52:01 raspberrypi reef-pi[2034]: 2018/05/11 11:52:01 Reading temperature from device: 28-051760afa4ff
May 11 11:52:01 raspberrypi reef-pi[2034]: 2018/05/11 11:52:01 Reading temperature from device: 28-03173055c7ff
May 11 11:52:02 raspberrypi reef-pi[2034]: 2018/05/11 11:52:02 temperature sub-system: sensor Temp Sensor 1 value: 80.6
May 11 11:52:02 raspberrypi reef-pi[2034]: 2018/05/11 11:52:02 Setting GPIO Pin: 27 State: 0
May 11 11:52:02 raspberrypi reef-pi[2034]: 2018/05/11 11:52:02 Setting GPIO Pin: 27 State: 0
May 11 11:52:02 raspberrypi reef-pi[2034]: 2018/05/11 11:52:02 temperature sub-system: sensor Temp Sensor 2 value: 80.2616
May 11 11:52:02 raspberrypi reef-pi[2034]: 2018/05/11 11:52:02 Current temperature is above maximum threshold. Executing cool down routine
May 11 11:52:06 raspberrypi reef-pi[2034]: 2018/05/11 11:52:06 ERROR: stats for id: '22' not found
May 11 11:52:06 raspberrypi reef-pi[2034]: 2018/05/11 11:52:06 ERROR: GET /api/atos/22/usage stats for id: '22' not found
May 11 11:52:06 raspberrypi reef-pi[2034]: 2018/05/11 11:52:06 Reading temperature from device: 28-051760afa4ff
May 11 11:52:06 raspberrypi reef-pi[2034]: 2018/05/11 11:52:06 Reading temperature from device: 28-03173055c7ff
May 11 11:52:07 raspberrypi reef-pi[2034]: 2018/05/11 11:52:07 temperature sub-system: sensor Temp Sensor 1 value: 80.6
May 11 11:52:07 raspberrypi reef-pi[2034]: 2018/05/11 11:52:07 Setting GPIO Pin: 27 State: 0
May 11 11:52:07 raspberrypi reef-pi[2034]: 2018/05/11 11:52:07 Setting GPIO Pin: 27 State: 0
May 11 11:52:07 raspberrypi reef-pi[2034]: 2018/05/11 11:52:07 temperature sub-system: sensor Temp Sensor 2 value: 80.2616
------------------------------------

It appears something is not updated or db is not being deleted... OR I just broke something ...
It is as expected in the current build.. nothing is broken. The dashboard settings are not aware of the fact that the ato's are gone, and to generate charts, they are trying to fetch usage data of a stale (now deleted ato). You just have to go to configuration and update the dashboard settings.

Everytime you add or delete any ato or temperature or ph sensor you have to manually go to dashboard and the update it to see its chart or to remove the corresponding chart of deleted ato/ph/temperature sensor. It (dashboard) does not automatically remove stale things.
Also remember, this does not impact the controller other than stale UI/ and those benign error messages.
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
It is as expected in the current build.. nothing is broken. The dashboard settings are not aware of the fact that the ato's are gone, and to generate charts, they are trying to fetch usage data of a stale (now deleted ato). You just have to go to configuration and update the dashboard settings.

Everytime you add or delete any ato or temperature or ph sensor you have to manually go to dashboard and the update it to see its chart or to remove the corresponding chart of deleted ato/ph/temperature sensor. It (dashboard) does not automatically remove stale things.
Also remember, this does not impact the controller other than stale UI/ and those benign error messages.

So . I go into dashboard .. set to 0 row 0 column .. the update button turns red.. I click on update ... then refresh . i refresh the browser go back into dashboard and click 1 row 1 column . the update button does not turn red. I hit it anyway and hit reload.. then reload the browser .. It will reload the dashboard that was there before...

I set 2 x 2 in dashboard.. all to health -currant Again no red update .. i hit refresh and then reload the browser and the change does stick...
I go into ato and recreate the deleted ato again.. (deleted before changing things in configuration ) It will create the new ato.. its working as its switching the relay assigned to it... The chart will come up a few seconds to minute later with a date and time.. If i switch the ato sensor on it will move the blue bar up the scale turn it off it stops moving.. Wait a few minutes and it will do the same.. you can see the sensor raising the blue bar on the scale but under the same time stamp . there is never a second blue bar... the scale just keeping getting higher and higher... ....

I am going to try a new build on a different sd card later ,

back to the configuration... If i create a new ato dashboard chart . it will load same as above no red update button . but show the same as it does under the ato tab..

ONE Question .. is there a way to manually delete the database. I have ran the troubleshooting . The remove to reinstall commands .... but everything is still there and its not making changes....

This might be a freak issue not a bug.....
 
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
So . I go into dashboard .. set to 0 row 0 column .. the update button turns red.. I click on update ... then refresh . i refresh the browser go back into dashboard and click 1 row 1 column . the update button does not turn red. I hit it anyway and hit reload.. then reload the browser .. It will reload the dashboard that was there before...

I set 2 x 2 in dashboard.. all to health -currant Again no red update .. i hit refresh and then reload the browser and the change does stick...
I go into ato and recreate the deleted ato again.. (deleted before changing things in configuration ) It will create the new ato.. its working as its switching the relay assigned to it... The chart will come up a few seconds to minute later with a date and time.. If i switch the ato sensor on it will move the blue bar up the scale turn it off it stops moving.. Wait a few minutes and it will do the same.. you can see the sensor raising the blue bar on the scale but under the same time stamp . there is never a second blue bar... the scale just keeping getting higher and higher... ....

I am going to try a new build on a different sd card later ,

back to the configuration... If i create a new ato dashboard chart . it will load same as above no red update button . but show the same as it does under the ato tab..

ONE Question .. is there a way to manually delete the database. I have ran the troubleshooting . The remove to reinstall commands .... but everything is still there and its not making changes....

This might be a freak issue not a bug.....
I'll look into the update button color logic, this is likely a bug.

The blue bar thing is also expected. Its a hourly roll up. So every bar represents one hour. You'll see new bar coming up in next hour. Till then the current hour bar will raise.
to remove database
Code:
sudo systemctl stop reef-pi.service
sudo rm -rf /var/lib/reef-pi/reef-pi.db
sudo systemctl start reef-pi.service
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
I'll look into the update button color logic, this is likely a bug.

The blue bar thing is also expected. Its a hourly roll up. So every bar represents one hour. You'll see new bar coming up in next hour. Till then the current hour bar will raise.
to remove database
Code:
sudo systemctl stop reef-pi.service
sudo rm -rf /var/lib/reef-pi/reef-pi.db
sudo systemctl start reef-pi.service

that is the commands i used.. The hour update i was not aware of .I will give it more time. Maybe its just user error..
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
I feel kinda dumb now... The issue of it not updating was not a issue at all. the issue of the sensors graph bar moving together was a short ..... Been one of those days.

Ohh and to make it more fun our AC Went out today... Its bad compressor it appears .. To old to bother with getting new one installed . We are going to get the whole HVAC System replaced in a week or two..... 7k i did NOT Really have to spend...
 
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
I’ll fix the update button color issue (I fear there are few others in the 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
it does update... Just the color is not right... No biggie...
Yeah, it’s not impacting the function , but users will be confused. Not a nice thing :/) . And it’s like one line fix in code
 

janos

Active Member
View Badges
Joined
Jun 4, 2017
Messages
267
Reaction score
259
Location
Toronto,Canada
Rating - 0%
0   0   0
Hi to all,would like to know any of this sensor do we need EZO circuit? Thank you .
Tentacle T3

atlas.png


$105.00



4+ units
10+ units
25+ units
$99.28
$96.66
$94.05





 
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
Hi to all,would like to know any of this sensor do we need EZO circuit? Thank you .
Tentacle T3

atlas.png


$105.00



4+ units
10+ units
25+ units
$99.28
$96.66
$94.05





We have discussed this multiple times before. This board needs additional ezo circuit for each of the probes. After a lot of thinking I decided not to pursue this route, as it will significantly increase the cost (the board itself is 100$, ezo circuit, probe all are separate), and unless I need multiple probes, I won't use all three probes. I also felt orp and ec is not as important as ph or temperature.

But reef-pi should work without any extra configuration with this board, reef-pi's ph integration only assume an ezo circuit, which tentacle will also use. So if you take this route, reef-pi should work with it, without any changes. But you do need to buy extra ezo circuit. This board provides the voltage isolation and bnc connect0rs, thats all.
 

TOP 10 Trending Threads

Back
Top