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

Free Phyto Promo
Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed Spend $39+ → free 16oz Phyto · Use code FREEPHYTO at checkout · $16.99 value · Densest 6-species blend · Free shipping on every order · 100% live arrival guaranteed
Shop Now Code: FREEPHYTO
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
Thanks for your help. I tried reloading and rebooting without improvement. I used to have 6 timers in place. I tried the curl command as above for ID 1-10 and got the following output for each one "{"error":"Failed to delete. Error: Cron ID not found for job ID:1"}". I am assuming that this output means that those timers have been successfully removed?

Unfortunately, I am still unable to add new timers :(
Does the error message appear for all the IDs(1 to 10)
What’s the log says when you restart/reload reef-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
It should also be possible to revert back to 1.1 release (remove the current one and the. Install 1.1 release ), then remove all timers and then update to 1.3
 

Jean-Pierre Renaud

Community Member
View Badges
Joined
Feb 7, 2018
Messages
49
Reaction score
39
Location
Blainville
Rating - 0%
0   0   0
So i got it all working, great program!

but now i want to modify some things, where do i read about making my own tabs or configuring things?
what language is the reef-pi using?
i want to have multiple temperature probes, i also want to display the raspberry pi3 CPU temperature using /opt/vc/bin/vcgencmd measure_temp
i can see it in ssh but i want to include it in the reef-pi page

my todo list :
sump temp probe,
main tank temp probe,
CPU temp,
inside sump cabinet ambient temp (to control exhaust fan)

Thanks !
 

Jean-Pierre Renaud

Community Member
View Badges
Joined
Feb 7, 2018
Messages
49
Reaction score
39
Location
Blainville
Rating - 0%
0   0   0
oh, one more thing,

when playing around with the outlets, if i chose the wrong pin, i need to delete and redo ?
is there a way to edit the equipment without deleting?
the same thing with timers, i don't see an option to edit my timers setting
 
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 got it all working, great program!

but now i want to modify some things, where do i read about making my own tabs or configuring things?
what language is the reef-pi using?
i want to have multiple temperature probes, i also want to display the raspberry pi3 CPU temperature using /opt/vc/bin/vcgencmd measure_temp
i can see it in ssh but i want to include it in the reef-pi page

my todo list :
sump temp probe,
main tank temp probe,
CPU temp,
inside sump cabinet ambient temp (to control exhaust fan)

Thanks !
Before 1.0 release reef-pi used to show cpu temperature (no chart, just current temperature in textual format), I have changed that to show cpu usage instead , when charts were introduced. Reef-pi code is here : https://github.com/reef-pi/reef-pi
I think cpu usage represent similar information
 
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
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
oh, one more thing,

when playing around with the outlets, if i chose the wrong pin, i need to delete and redo ?
is there a way to edit the equipment without deleting?
the same thing with timers, i don't see an option to edit my timers setting
Correct. Reef-pi ui does not have support for editing existing equipment or outlet yet. But the api supports it. So if you are comfortable with curl/Json editing , you can try that route
https://reef-pi.github.io/additional-documentation/api/

Otherwise delete and recreate via ui
 

denierlexiese

Active Member
View Badges
Joined
Jul 7, 2017
Messages
106
Reaction score
68
Rating - 0%
0   0   0
Congrats on the one year!!! I hope I can someday find the bandwidth to program with you like I originally planned to. At this point I'm still writing my own controller code with bash and python scripts but I cherry pick ideas from your code and wiring diagrams all the time. After working with 120v lines and relays, and never getting a stable connection that could last in a GFCI outlet for more than a few days, I"m now investigating the hs100 smart outlet to control heaters / chillers that need the 120v. For the other devices I will probably use a 12v line, standard transformer plug with a relay, but I might be done messing with 120v. I'm just too much of a beginner to do that.

I wish the diy community would come out with a relay box, that was inexpensiive and could control more than two outlets
https://www.amazon.com/Iot-Relay-Enclosed-High-power-Raspberry/dp/B00WV7GMA2
:(

In the mean time I'll have to rely on my stable wifi with the hs100, hs 110.
 

jcmental

Active Member
View Badges
Joined
Jan 25, 2018
Messages
114
Reaction score
137
Rating - 0%
0   0   0
Congrats @Ranjib I love this program. I'm still waiting on parts (they all seem to be coming from China or Japan) but once I get them there will be no stopping me posting question after question ;-) Happy First Birthday
s-l300.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
In process of converting doser electronics to
Perfboard

I am trying out these perma proto boards from adafruit that are tiny, can fit inside mini Altidos tin box.

There’s male pin headers for you pi, lm2596 and 12 v power supply. Central dip socket to mount l293d

FBB2DB01-AD30-449C-9CBC-10A32E78583B.jpeg


Back, not as clean as I had hoped
752F3F74-0A33-4BE0-A02D-499DB369329E.jpeg



Every time I go through this process, I realize it must be rather hard for the uninitiated
 

sector9

Active Member
View Badges
Joined
Jun 26, 2017
Messages
129
Reaction score
189
Rating - 0%
0   0   0
Does the error message appear for all the IDs(1 to 10)
What’s the log says when you restart/reload reef-pi?

It should also be possible to revert back to 1.1 release (remove the current one and the. Install 1.1 release ), then remove all timers and then update to 1.3

Yes, the error message appeared for all IDs (1 through 10)
I needed the timers to work today so this morning, I uninstalled 1.3 and installed 1.1. It still wouldn't work to add new timers (same problem) so I then downgraded to 1.0. I successfully added all my timers on 1.0. I then upgraded to 1.3 so now I have my timers back.

I played around with the API and found out that my timers were added as ID's 12-17. So I deleted them via the curl DELETE command then added them back via the curl POST command. There were no errors with adding this way. I went back to the GUI with no luck, same error

There don't seem to be any problems with the startup sequence on the log
Code:
Feb 12 21:00:48 reefpi systemd[1]: Starting raspberry pi based reef tank controller...
Feb 12 21:00:48 reefpi systemd[1]: Started raspberry pi based reef tank controller.
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 DB: reef-pi.db
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Successfully started subsystem: system
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Setting GPIO Pin: 9 State: 0
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Setting GPIO Pin: 5 State: 0
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Setting GPIO Pin: 11 State: 1
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Setting GPIO Pin: 6 State: 1
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Setting GPIO Pin: 13 State: 0
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Setting GPIO Pin: 10 State: 1
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Setting GPIO Pin: 7 State: 0
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Setting GPIO Pin: 8 State: 1
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 INFO: equipment subsystem: Finished syncing all equipment
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Successfully started subsystem: equipments
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Successfully added cron entry. ID: 1
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Successfully added cron entry. ID: 2
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Successfully added cron entry. ID: 3
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Successfully added cron entry. ID: 4
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Successfully added cron entry. ID: 5
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Successfully added cron entry. ID: 6
Feb 12 21:00:48 reefpi reef-pi[4110]: 2018/02/12 21:00:48 Successfully started subsystem: timers
Feb 12 21:00:49 reefpi reef-pi[4110]: 2018/02/12 21:00:49 Successfully started subsystem: ato
Feb 12 21:00:49 reefpi reef-pi[4110]: 2018/02/12 21:00:49 Starting ATO sub system
Feb 12 21:00:49 reefpi reef-pi[4110]: 2018/02/12 21:00:49 Successfully started subsystem: temperature
Feb 12 21:00:49 reefpi reef-pi[4110]: 2018/02/12 21:00:49 reef-pi is up and running
Feb 12 21:00:49 reefpi reef-pi[4110]: 2018/02/12 21:00:49 Starting temperature controller
Feb 12 21:00:49 reefpi reef-pi[4110]: 2018/02/12 21:00:49 Starting http server at: 0.0.0.0:8080
Feb 12 21:00:49 reefpi reef-pi[4110]: 2018/02/12 21:00:49 Starting health checker
 
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
Congrats on the one year!!! I hope I can someday find the bandwidth to program with you like I originally planned to. At this point I'm still writing my own controller code with bash and python scripts but I cherry pick ideas from your code and wiring diagrams all the time. After working with 120v lines and relays, and never getting a stable connection that could last in a GFCI outlet for more than a few days, I"m now investigating the hs100 smart outlet to control heaters / chillers that need the 120v. For the other devices I will probably use a 12v line, standard transformer plug with a relay, but I might be done messing with 120v. I'm just too much of a beginner to do that.

I wish the diy community would come out with a relay box, that was inexpensiive and could control more than two outlets
https://www.amazon.com/Iot-Relay-Enclosed-High-power-Raspberry/dp/B00WV7GMA2
:(

In the mean time I'll have to rely on my stable wifi with the hs100, hs 110.
Nice. Keep us posted on how your controller doing. I agree having a pi friendly relay+socket setup would be nice.


My ph kit is arriving today :-)
 
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
Yes, the error message appeared for all IDs (1 through 10)
I needed the timers to work today so this morning, I uninstalled 1.3 and installed 1.1. It still wouldn't work to add new timers (same problem) so I then downgraded to 1.0. I successfully added all my timers on 1.0. I then upgraded to 1.3 so now I have my timers back.

I played around with the API and found out that my timers were added as ID's 12-17. So I deleted them via the curl DELETE command then added them back via the curl POST command. There were no errors with adding this way. I went back to the GUI with no luck, same error
Oh ... sorry for the trouble , I am glad it worked out at the end. I hope we won’t have too many cases of folks upgrading from 1.1 . I doubt most users will as tech savvy as you to figure this out, and end up deleting their dB :-(
 

U_ser_ID

Community Member
View Badges
Joined
Feb 10, 2018
Messages
60
Reaction score
42
Rating - 0%
0   0   0
Being that I'm new, is there a specific page I should start reading this monstrous post? 338 pages is a lot to digest.
 

TMB

Well-Known Member
View Badges
Joined
Jul 4, 2017
Messages
625
Reaction score
1,162
Location
Mesa, AZ
Rating - 0%
0   0   0
Being that I'm new, is there a specific page I should start reading this monstrous post? 338 pages is a lot to digest.

@U_ser_ID , no need to read the entire thread, I agree it would take a long time. Check this site out https://reef-pi.github.io/ it has most of the set up information you need. If you have questions there are a bunch on here that will help you get going.
 

TMB

Well-Known Member
View Badges
Joined
Jul 4, 2017
Messages
625
Reaction score
1,162
Location
Mesa, AZ
Rating - 0%
0   0   0
Thanks TMB for the link! I'll check it out.

No problem. I probably should have said to read up on the Reef-Pi site and them read this thread. The beginning of the thread has a lot of good info from Ranjib (the Reef-Pi creator), however some of it is now obsolete as there have been many revisions over time.

The thread has a lot of really good build ideas that will help you decide how to assemble your RPI if you choose to build one.

Don’t be afraid to ask here for help, or build advice, there’s a bunch of really cool people here that want to help!
 

U_ser_ID

Community Member
View Badges
Joined
Feb 10, 2018
Messages
60
Reaction score
42
Rating - 0%
0   0   0
No problem. I probably should have said to read up on the Reef-Pi site and them read this thread. The beginning of the thread has a lot of good info from Ranjib (the Reef-Pi creator), however some of it is now obsolete as there have been many revisions over time.

The thread has a lot of really good build ideas that will help you decide how to assemble your RPI if you choose to build one.

Don’t be afraid to ask here for help, or build advice, there’s a bunch of really cool people here that want to help!
Cool, I can start taking little bites here and there. I still have a ways to go before I even start my tank, I bought a cracked tank and that's the only thing I have so far. Lol. I feel that automation from the beginning will provide the best chance of success. Yes, I'm sure knowing (figuring out) the proper parameters for my tank play a huge part in keeping everything alive but once that's figured out it can become more automated. Automation will help immensely with still having three young children and going to school full time. Stress makes folks forgetful. Haha
 

TOP 10 Trending Threads

Back
Top