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

Niwashi

New Member
View Badges
Joined
Dec 31, 2017
Messages
4
Reaction score
6
Rating - 0%
0   0   0
I am looking to add more limit based control such as you have for temperature but for different sensors such as PH, Air Temp, TDS. That's why I would like to scope the slack page :)
 
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 So I've got the Reef-Pi all incorporated and all my equipment is now plugged in. A thought just ocured to me as I was putting all the equipment in the interface. All the outlets start in the off position. When Reef-Pi loses power, does it come back on and return all the outlets to the last state or do they default to off or on?
Yes. I had fixed this in a patch. I would appreciate if you can do a test anyway, better safe than sorrow.

https://github.com/reef-pi/reef-pi/pull/261
 

philshel

Active Member
View Badges
Joined
Jul 24, 2010
Messages
365
Reaction score
375
Rating - 0%
0   0   0
Ranjib, could you please go over the new settings on the lighting tab. I, like you have Kessils that go to 100% if dimmed to 0. They also tend to flicker when the color is adjusted below about 13%. Not sure how to set the min, max, and start options.
Thanks.
 
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, could you please go over the new settings on the lighting tab. I, like you have Kessils that go to 100% if dimmed to 0. They also tend to flicker when the color is adjusted below about 13%. Not sure how to set the min, max, and start options.
Thanks.
If you are using 1.0 release, unfortunately there is no UI way to fix this, if you can update to 1.1 you can use the UI to specify minimum (set it to 13 for the intensity channel) and start value (set it to 1 for both channels). The settings were present (introduced as part of the kessil controller testing, way back in August), but somehow i missed it to expose them over UI (in 1.0 you can do this using the API/command line, curl etc)

Soon, after 1.0 release I realized this issue, as without this one kessil controller simply wont work as expected (i encountered the same during 1.0 kessil build), hence 1.1 introduced the UI to update these values. As a bonus you can also rename the channels (i name the intensity and spectrum)\


Screen Shot 2017-12-31 at 8.35.58 PM.png


Dashboard,
Screen Shot 2017-12-31 at 8.36.11 PM.png


Thank you for giving 1.0 a try, is it possible for you to update to 1.1 ?
Happy new year :-)
 
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
for 1.0 or before release, you can use the curl command to get current light settings using the API, then save the response in a file, edit it to update the miniumum of intensity channel to 13 and then again use the curl command to update the settings via api. 1.1 just has UI for all of these things.
 

philshel

Active Member
View Badges
Joined
Jul 24, 2010
Messages
365
Reaction score
375
Rating - 0%
0   0   0
for 1.0 or before release, you can use the curl command to get current light settings using the API, then save the response in a file, edit it to update the miniumum of intensity channel to 13 and then again use the curl command to update the settings via api. 1.1 just has UI for all of these things.

Sorry should have specified that I'm using 1.1 Just wasn't sure about the settings. Why a max of 99 and not 100?
 
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
Sorry should have specified that I'm using 1.1 Just wasn't sure about the settings. Why a max of 99 and not 100?
100 and 0 are same, the way pca9685 boards work (its 12 bit), the values range from 0->4095, and 4096 maps to 0.. and so on. In reef-pi software we map 0->100 to 0-> 4096.
I think we should not make all these things visible to user (they dont have to worry about it), and just allow 0->100, and we do everything else. I was just not sure if the experience I had with kessil will have similarity with other lights or not. .. but i think now it does not matter. We should just bite the bullet and made those things default.
 
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
Sorry should have specified that I'm using 1.1 Just wasn't sure about the settings. Why a max of 99 and not 100?
BTW, did your problem fixed after you applied the start & min values ?
 

philshel

Active Member
View Badges
Joined
Jul 24, 2010
Messages
365
Reaction score
375
Rating - 0%
0   0   0
100 and 0 are same, the way pca9685 boards work (its 12 bit), the values range from 0->4095, and 4096 maps to 0.. and so on. In reef-pi software we map 0->100 to 0-> 4096.
I think we should not make all these things visible to user (they dont have to worry about it), and just allow 0->100, and we do everything else. I was just not sure if the experience I had with kessil will have similarity with other lights or not. .. but i think now it does not matter. We should just bite the bullet and made those things default.

Ok, I get the mapping but wouldn't 100 map to 4095 and be effectively a true 100% or does 100 actually map to 4096?
and yes you are correct most won't need to worry about the details, but want to understand as much of the underpinnings as I can.
 
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
Ok, I get the mapping but wouldn't 100 map to 4095 and be effectively a true 100% or does 100 actually map to 4096?
and yes you are correct most won't need to worry about the details, but want to understand as much of the underpinnings as I can.
Yeah, thats a mistake i did. instead of 100 mapping to 4095 i have mapped 100 to 4096

https://github.com/reef-pi/reef-pi/blob/master/controller/utils/pwm.go#L5

that multiplication factor should be 40.95 instead of 4096 :0/ . I'll update the code
 
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
Ok, I get the mapping but wouldn't 100 map to 4095 and be effectively a true 100% or does 100 actually map to 4096?
and yes you are correct most won't need to worry about the details, but want to understand as much of the underpinnings as I can.
I really appreciate these questions :-), you know without these sometime I feel that "I cant be the only person hitting this" :-0) . Keep asking question. They only make reef-pi better
 
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
Kindle Fire is up.
749c33282bc0a044c6fdb75cdeab34ac.jpg


5b80f92c6fc5cc3a94c0808363054906.jpg


319b560342f50515c34d75ec743580d6.jpg


Question: what can the email notifications do for me ? I don't use the temp or ATO sensor yet but I might in the future to tell me if my ATO is getting low.
You can use the email alert to get notification when cpu or memory usage is elevated. And enable ato , temperature alert late when needed
 
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
My reef-pi project is nearly finished, the only thing i need is to hook up my LED strips. Here is a little picture of my build. Thank you all, for helping me in this great forum :)

IMG_20180101_172921.jpg
Sweet :-)
 
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
Looking ahead for future development, now that telemetry is up and running through reef-pi alone, would it be possible to set maintenance reminders?
Or any user defined message at a future date and time?
I think we can. Would it be enough if the time granularity is in day ?
 
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
Kindle Fire is up.
749c33282bc0a044c6fdb75cdeab34ac.jpg


5b80f92c6fc5cc3a94c0808363054906.jpg


319b560342f50515c34d75ec743580d6.jpg


Question: what can the email notifications do for me ? I don't use the temp or ATO sensor yet but I might in the future to tell me if my ATO is getting low.
Love your setup. Tank looks very clean
 
Back
Top
Home
Post thread…
Market
What's new