|
04/22/2012, 11:35 AM | #1 |
Registered Reef Keeper
Join Date: Feb 2002
Location: Reno, NV
Posts: 1,443
|
AI SOL Almost Got It
Hi All,
Well, I almost have my AI SOL programming finished. With the help of Ddevlin and RussM, I have my lights MOSTLY doing what I want. My setup is to have the everything controlled by the Sun command, with a delay to better suit my viewing times.I want the blues to start their ramp up first, then the whites, and at sunset, the whites will ramp down first then the blues. The midday and sunset are currently doing what I want. My problem...at sunrise, (the sunrise time listed on the Sun Table) the sunset command starts and both white and blues come on. I have a two hour ramp time, so when sunrise is actually scheduled (the one I want with the delay) it doesn't come on because the sunset is still ramping down. My code: 120 min ramp times for sunset and sunrise 60 min delay for the blues at sunrise 120 min delay for the blues at sunset 120 min delay for the whites at sunrise 60 min delay for the whites at sunset OUTLETS [BlueLED] Set OFF If Moon 000/000 Then MoonLite If Outlet V_SunriseBlu = ON Then BlueUp If Outlet V_MiddayBlue = ON Then BlueON If Outlet V_SunsetBlue = ON Then BlueDown If Outlet V_Weather = ON Then Storm [WhiteLED] Set OFF If Outlet V_SunriseWhi = ON Then WhiteUp If Outlet V_MiddayWhit = ON Then WhiteOn If Outlet V_SunsetWhit = ON Then WhiteDwn If Outlet V_Weather = ON Then Storm [MiddayWhit] Set OFF If Sun 240/-030 Then ON [SunriseWhi] Set OFF If Sun 120/000 Then ON If Outlet V_MiddayWhit = ON Then OFF [SunsetWhit] Set OFF If Sun 000/090 Then ON If Outlet V_MiddayWhit = ON Then OFF [MiddayBlue] Set OFF If Sun 180/030 Then ON [SunriseBlu] Set OFF If Sun 060/000 Then ON If Outlet V_MiddayBlue = ON Then OFF [SunsetBlue] Set OFF If Sun 000/150 Then ON If Outlet V_MiddayBlue = ON Then OFF [V_Weather] OSC 999:00/015:00/599:00 Then ON If Outlet V_SunriseWhi = ON Then OFF If Outlet V_SunsetWhit = ON Then OFF If Outlet V_SunriseBlu = ON Then OFF If Outlet V_SunsetBlue = ON then OFF If Time 21:00 to 06:00 Then OFF PROFILES [BlueUp] Ramp time (minutes) 120 Start intensity 0 End intensity 50 [WhiteUp] Ramp time (minutes) 120 Start intensity 0 End intensity 50 [BlueON] Ramp time (minutes) 0 Start intensity 50 End intensity 50 [WhiteON] Ramp time (minutes) 0 Start intensity 50 End intensity 50 [BlueDown] Ramp time (minutes) 120 Start intensity 50 End intensity 0 [WhiteDwn] Ramp time (minutes) 120 Start intensity 50 End intensity 0 I just can't see, (or probably don't yet understand totally) where my problem is. Any help sorely appreciated, and as usual, TIA
__________________
Leyton at Reno Current Tank Info: Custom 200 gal reef cube with a 20 gal sump, 2 AI SOL LED Fixtures, Super Reef Octopus skimmer, custom made calcium reactor, Apex Lite controller with various modules. Last edited by L8ndeb; 04/22/2012 at 11:52 AM. |
04/22/2012, 07:58 PM | #2 |
Registered Reef Keeper
Join Date: Feb 2002
Location: Reno, NV
Posts: 1,443
|
Anybody want to give it a shot?
__________________
Leyton at Reno Current Tank Info: Custom 200 gal reef cube with a 20 gal sump, 2 AI SOL LED Fixtures, Super Reef Octopus skimmer, custom made calcium reactor, Apex Lite controller with various modules. |
04/23/2012, 12:23 PM | #3 |
Registered Reef Keeper
Join Date: Feb 2002
Location: Reno, NV
Posts: 1,443
|
No takers?? Please?
__________________
Leyton at Reno Current Tank Info: Custom 200 gal reef cube with a 20 gal sump, 2 AI SOL LED Fixtures, Super Reef Octopus skimmer, custom made calcium reactor, Apex Lite controller with various modules. |
04/24/2012, 08:34 PM | #4 |
Registered Member
Join Date: Sep 2005
Location: Central Florida
Posts: 472
|
I just got in from a double. Give me some time and I can cypher it. Maybe by the AM.
|
04/24/2012, 08:53 PM | #5 |
Registered Member
Join Date: Jan 2007
Location: El Cajon, CA
Posts: 7,818
|
I see the culprit.
[SunsetWhit] Set OFF If Sun 000/090 Then ON If Outlet V_MiddayWhit = ON Then OFF [SunsetBlue] Set OFF If Sun 000/150 Then ON If Outlet V_MiddayBlue = ON Then OFF In order for this whole concept to work, the If Sun statements in the sunset VOs need to start at (or later than) the time of the midday VOs, not before (which is what you currently have). Edit as follows: [SunsetWhit] Set OFF If Sun 240/090 Then ON If Outlet V_MiddayWhit = ON Then OFF [SunsetBlue] Set OFF If Sun 240/150 Then ON If Outlet V_MiddayBlue = ON Then OFF |
04/24/2012, 09:02 PM | #6 |
Registered Member
Join Date: Sep 2005
Location: Central Florida
Posts: 472
|
Just a quick observation your outlets may be too complex. No need for multiple (Blue, White Royal) sunrise, midday, and sunset
Only: sunrise midday sunset Your profiles will adjust the delays. so I am clear, you want a 2 hour delay of the entire "sun". The first lights you want on at "sunrise" will be blue and then 60 min after that the white for 60 min, then "midday" After "midday" whites ramp down for 60 and blues another 60 to off. |
04/24/2012, 09:05 PM | #7 | |
Registered Member
Join Date: Sep 2005
Location: Central Florida
Posts: 472
|
Quote:
|
|
04/25/2012, 11:41 AM | #8 |
Registered Reef Keeper
Join Date: Feb 2002
Location: Reno, NV
Posts: 1,443
|
Hi Russ and Ddevlin,
First, thank you Russ. I figured it was in the midday settings last night when I was screwing around with it, but I couldn't get the right numbers figured out to plug in there. I'll give them a try. Ddevlin, originally, when I was first setting this up, I wanted it as simple as possible so I could get the hang of the coding (looks like I STILL don't have it huh Russ?). But now I have a fair idea of what to do, I wanted to set up my lighting like I had with my MH and Actinic 03's. I wanted the blues to start their ramp up an hour earlier than the whites, so to make the transition from night to midday even longer and smoother. Same with the transition from midday to night. The whites ramp down an hour earlier than the blues, and the blues are the last to shut down at night. Anyway, that is the reason for the more complex program. Thank you for your help nevertheless.
__________________
Leyton at Reno Current Tank Info: Custom 200 gal reef cube with a 20 gal sump, 2 AI SOL LED Fixtures, Super Reef Octopus skimmer, custom made calcium reactor, Apex Lite controller with various modules. |
04/25/2012, 11:54 AM | #9 | |
Registered Member
Join Date: Sep 2005
Location: Central Florida
Posts: 472
|
Quote:
|
|
04/25/2012, 09:23 PM | #10 |
Registered Reef Keeper
Join Date: Feb 2002
Location: Reno, NV
Posts: 1,443
|
OK,
I tried the adjustments Russ advised. Today at sunset, my white sunrise AND sunset came on at the same time (18:54:00). I manually turn off the sunrise and the light intensity remains the same, and the white will ramp down like it is suppose to. If I do not turn off the sunrise, the whites go off at once when ramped down. This is the program now after the adjustments Russ suggested: My code: 120 min ramp times for sunset and sunrise both white and blue 60 min delay for the blues at sunrise 120 min delay for the blues at sunset 120 min delay for the whites at sunrise 60 min delay for the whites at sunset OUTLETS [BlueLED] Set OFF If Moon 000/000 Then MoonLite If Outlet V_SunriseBlu = ON Then BlueUp If Outlet V_MiddayBlue = ON Then BlueON If Outlet V_SunsetBlue = ON Then BlueDown If Outlet V_Weather = ON Then Storm [WhiteLED] Set OFF If Outlet V_SunriseWhi = ON Then WhiteUp If Outlet V_MiddayWhit = ON Then WhiteOn If Outlet V_SunsetWhit = ON Then WhiteDwn If Outlet V_Weather = ON Then Storm [SunriseWhi] Set OFF If Sun 120/090 Then ON If Outlet V_MiddayWhit = ON Then OFF [MiddayWhit] Set OFF If Sun 240/-030 Then ON [SunsetWhit] Set OFF If Sun 240/090 Then ON If Outlet V_MiddayWhit = ON Then OFF [SunriseBlu] Set OFF If Sun 060/000 Then ON If Outlet V_MiddayBlue = ON Then OFF [MiddayBlue] Set OFF If Sun 180/030 Then ON [SunsetBlue] Set OFF If Sun 180/150 Then ON If Outlet V_MiddayBlue = ON Then OFF [V_Weather] OSC 999:00/015:00/599:00 Then ON If Outlet V_SunriseWhi = ON Then OFF If Outlet V_SunsetWhit = ON Then OFF If Outlet V_SunriseBlu = ON Then OFF If Outlet V_SunsetBlue = ON Then OFF If Time 21:00 to 06:00 Then OFF PROFILES [BlueUp] Ramp time (minutes) 120 Start intensity 0 End intensity 50 [WhiteUp] Ramp time (minutes) 120 Start intensity 0 End intensity 50 [BlueON] Ramp time (minutes) 0 Start intensity 50 End intensity 50 [WhiteON] Ramp time (minutes) 0 Start intensity 50 End intensity 50 [BlueDown] Ramp time (minutes) 120 Start intensity 50 End intensity 0 [WhiteDwn] Ramp time (minutes) 120 Start intensity 50 End intensity 0 I just can't get this last little part figured out. All times look good to me. It's like the "Sun" table is telling the sunset and sunrise to come on at sunset, but only the whites. One thing I did see, in the "History" tab on the iPhone app, the Blues turns off the Midday at 19:54:00 and turns on the Sunset Blue at 19:54:01. The whites turn off the Midday, Sunrise, and Sunset all at the same time, 18:54:00. Anymore suggestions??
__________________
Leyton at Reno Current Tank Info: Custom 200 gal reef cube with a 20 gal sump, 2 AI SOL LED Fixtures, Super Reef Octopus skimmer, custom made calcium reactor, Apex Lite controller with various modules. |
04/26/2012, 06:10 AM | #11 |
Registered Member
Join Date: Jan 2007
Location: El Cajon, CA
Posts: 7,818
|
[SunriseWhi]
Set OFF If Sun 120/090 Then ON If Outlet V_MiddayWhit = ON Then OFF [MiddayWhit] Set OFF If Sun 240/-030 Then ON Your W Sunrise runs later than your W Midday. Sunrise needs to end at or before the end time for Midday. Change the SunriseWhi to: If Sun 240/-090 Then ON |
04/26/2012, 02:31 PM | #12 |
Registered Reef Keeper
Join Date: Feb 2002
Location: Reno, NV
Posts: 1,443
|
Hi Russ,
And again thanks for your help on this. One more thought before I set this in stone. I was looking at the sunset of the lights, and they were going off just about 30 minutes earlier than I want. My question is, can the delay be different for sunrise vs sunset? What would bother me about doing that if it is possible is it changes the length of the midday, does it not? And if it does, what is the use of using the Sun command? I originally started this because I wanted the Sun command to run things. Now I am having second thoughts.
__________________
Leyton at Reno Current Tank Info: Custom 200 gal reef cube with a 20 gal sump, 2 AI SOL LED Fixtures, Super Reef Octopus skimmer, custom made calcium reactor, Apex Lite controller with various modules. |
|
|