PWM Slope Code

Do you have a question on how to do something.
Ask in here.

Posts: 19
Joined: Thu Mar 06, 2014 5:02 pm
Location: Hewitt NJ
PostPosted: Sun Jul 27, 2014 7:11 am
OK so to answer my question.. So this should all take effect today and my lights will turn off at 11:00PM tonight?



cosmith71 wrote:I think this:

Code: Select all
ReefAngel.PWM.SetDaylight( PWMSlope(14,0,22,30,15,60,60,0) );
ReefAngel.PWM.SetActinic( PWMSlope(13,30,23,0,15,80,60,0) );


will override memory settings.

--Colin
Image
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Sun Jul 27, 2014 7:13 am
I should think so.

--Colin

Posts: 19
Joined: Thu Mar 06, 2014 5:02 pm
Location: Hewitt NJ
PostPosted: Sun Jul 27, 2014 7:16 am
Ok hopefully this does it. If they don't turn off ill just manually override them to off and see if they take effect in 24 hours.

cosmith71 wrote:I should think so.

--Colin
Image
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Sun Jul 27, 2014 8:11 am
I've never heard of that before.

--Colin

Posts: 19
Joined: Thu Mar 06, 2014 5:02 pm
Location: Hewitt NJ
PostPosted: Sun Jul 27, 2014 8:50 am
Ok I uploaded

ReefAngel.PWM.SetDaylight( PWMSlope(14,0,22,30,15,60,60,0) );
ReefAngel.PWM.SetActinic( PWMSlope(13,30,23,0,15,80,60,0) );

Should the percentage values reflect under internal memory within portal? In portal it's showing

Daylights Start 15% End 60% (14,0,22,30,15,60,60,0) );
Actinics Start 15% End 75% (13,30,23,0,15,80,60,0) ); end should be 80%

Do I need to manually change the percent in portal or will it change once it goes through the loop?
Image
User avatar
Posts: 1426
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City
PostPosted: Sun Jul 27, 2014 8:57 am
They are separate. The portal values are irrelevant when you've specified times, etc in the code. They won't update, nor will it make any difference what you change them to since you've hard coded the values.

--Colin

Posts: 19
Joined: Thu Mar 06, 2014 5:02 pm
Location: Hewitt NJ
PostPosted: Sun Jul 27, 2014 9:00 am
Ah ok thanks


cosmith71 wrote:They are separate. The portal values are irrelevant when you've specified times, etc in the code. They won't update, nor will it make any difference what you change them to since you've hard coded the values.

--Colin
Image
Previous

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 2 guests