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,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib

How difficult would it be to add colors to the on and off state for the outlets?
Not difficult at all. What color you prefer? I am horrible at UI/UX designs.. hence I always try to get the simple things out first, and then take lots of feedback to improve it.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
The NO/NC option could work, however I think for it to be really useful it would need to be on a per outlet basis, but understandable if that is a major task.
However, I still am not sure that that would resolve the issue. As I am seeing it on my system, if an outlet is set to off in the timer the pin is set to 0.
upload_2017-10-10_21-22-36.png

If it is switched off (the button would say off after being clicked) the pin is set to 1.
upload_2017-10-10_21-23-12.png
Right , thats expected. As I mentioned, reef-pi assumes the relay is normally closed. So, setting 0 means switch off, and 1 means switch on. Were you expecting different behavior?
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
Right , thats expected. As I mentioned, reef-pi assumes the relay is normally closed. So, setting 0 means switch off, and 1 means switch on. Were you expecting different behavior?
It seems like the offs are opposite of each other. Timer off is 0, equipment off is 1
 

HM3105

Well-Known Member
View Badges
Joined
Nov 30, 2014
Messages
665
Reaction score
403
Location
United States
Rating - 0%
0   0   0
Not difficult at all. What color you prefer? I am horrible at UI/UX designs.. hence I always try to get the simple things out first, and then take lots of feedback to improve it.

Is this possible?

Red background, black font = off

Green background, white font = on
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
It seems like the offs are opposite of each other. Timer off is 0, equipment off is 1
If this is the case, then its a bug.! really bad bug and have to be fixed as soon as possible. ..
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
Would this also explain why I am having the issue, I previously described with the temperature control?
I was wondering about that too. I currently have my temp settings at 77 & 79. Current tank temp is 79.1 and heater still has power applied to it.
I guess you could also switch the heater/fans to NO circuits and they would perform normally. But then the buttons would be backwards.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Couple of update on the software side,
- I have added support for NC/NO configuration for every outlet. Which means, users can select a checkbox (named 'reverse') to indicate a relay is normal open or normal closed while declaring individual outlets. If not selected, reef-pi will treat the outlet as normally closed and set the GPIO pin to high state to switch it on, low to switch it off. Selecting reverse will do the opposite https://github.com/reef-pi/reef-pi/pull/216
- I have added some code in the UI side to show different colors (I went with red or green outlined buttons, to keep them in sync with reef-pi theme in general) based on the equipment state.

a couple of performance enhancements also went in ...
 

AshwinRavi

Active Member
View Badges
Joined
May 23, 2017
Messages
374
Reaction score
519
Location
Pittsburgh, PA
Rating - 0%
0   0   0
Couple of update on the software side,
- I have added support for NC/NO configuration for every outlet. Which means, users can select a checkbox (named 'reverse') to indicate a relay is normal open or normal closed while declaring individual outlets. If not selected, reef-pi will treat the outlet as normally closed and set the GPIO pin to high state to switch it on, low to switch it off. Selecting reverse will do the opposite https://github.com/reef-pi/reef-pi/pull/216
- I have added some code in the UI side to show different colors (I went with red or green outlined buttons, to keep them in sync with reef-pi theme in general) based on the equipment state.

a couple of performance enhancements also went in ...
thanks Ranjib,

I will update tomorrow and will let you know!! you are awesome!
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
Couple of update on the software side,
- I have added support for NC/NO configuration for every outlet. Which means, users can select a checkbox (named 'reverse') to indicate a relay is normal open or normal closed while declaring individual outlets. If not selected, reef-pi will treat the outlet as normally closed and set the GPIO pin to high state to switch it on, low to switch it off. Selecting reverse will do the opposite https://github.com/reef-pi/reef-pi/pull/216
- I have added some code in the UI side to show different colors (I went with red or green outlined buttons, to keep them in sync with reef-pi theme in general) based on the equipment state.

a couple of performance enhancements also went in ...
That is awesome!
So question then...how does one go about updating to these features between a new release?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
thanks Ranjib,

I will update tomorrow and will let you know!! you are awesome!
Hey, I have not cut a release yet.. I 'll be doing some more development before cutting the next release... I'll let you all know
if you are building from master (I'll be stoked if you do so :-)), then you dont need any release, you can pretty much install it as and when its available in the repo
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Oh, yea...that whole reading the instructions thing.

Programming is definitely not my forte. I am fighting with the Go updating right now (I got 1.4.3 installed)
I'll try to play some more tomorrow.
:-) I'll see if I can find a way to publish nightly builds, most popular software does that..
 

David Waddell

New Member
View Badges
Joined
Aug 23, 2017
Messages
11
Reaction score
35
Rating - 0%
0   0   0
WHOA :) This is freaking awesome. Do you plan to use reef-pi or you have your own code ? None the less,.,. this is sweet.
Question: 3d printing materials (abs or pla) is safe to use with 110v AC receptacles?
Thanks man! I'm using reef-pi for sure. I don't have your talent for coding. Anything beyond php and I'm lost lol. I don't have a 3D printer, but it would be awesome to custom design an enclosure and print it at home. One day Ill have one, but my fishes are where my money go for now haha.
 

David Waddell

New Member
View Badges
Joined
Aug 23, 2017
Messages
11
Reaction score
35
Rating - 0%
0   0   0
That's awesome mate! I literally just ordered a similar box (but larger to fit my 16 outlets) so I can finally get a move on with my build. Unfortunately it won't be here until mid November.


I plan on having all 16 of my outlets wired to one of those cables that then goes to the wall. I'm pretty sure that the cables are rated the same as the ones in the wall (that's from what I can find in Aus at least), so it would be rated to 10A and all of my equipment together comes in just under 8 Amps so it should be ok. I'd say your draw from 8 outlets will be less than that so it will be fine.

If I'm wrong though I'd certainly appreciate being told so before my enclosure gets here :p
Thank you! It's been fun putting together. I bought the case here off of amazon. I thought about not having a screen and using the space for outlets, but couldn't really think of what I would need that many for.
 

David Waddell

New Member
View Badges
Joined
Aug 23, 2017
Messages
11
Reaction score
35
Rating - 0%
0   0   0
That looks awesome.
From you 5V adapters, is one of those powering the pi/screen and the other powering the relays?
Please let me know if you have any issues activating all of you relays simultaneously while using the 2 different supplies.
Thanks you! Yes that is how it is powered. So far in my testing I haven't had any issues powering all 8 outlets. The adapter that's powering the relay is 5v 1Amp.
 

TOP 10 Trending Threads

DO YOU THINK TECHNOLOGICAL ADVANCEMENTS ARE MORE HELPFUL OR HURTFUL TO REEFING?

  • More helpful.

    Votes: 55 40.7%
  • More hurtful.

    Votes: 5 3.7%
  • I think it depends mostly on the technology.

    Votes: 53 39.3%
  • I think it dependsmostly on the reefer behind the technology.

    Votes: 41 30.4%
Back
Top
Home
Post thread…
Market
What's new