PDA

View Full Version : VDM - Sunrise/Daytime/Sunset HELP!


kikireef
10/25/2011, 02:46 PM
I am having issues with my outlets for Sunrise/Daytime/Sunset. My goal is to have the lights ramp up starting 3 hours after the season table and be completely off 3 hours after the season table. I have created all profiles for ramping up (sunrise), ramping down (sunset), and staying on in-between (daytime) and they all seem to work ok.

My problem I am having is that Sunrise goes on ok then switches to daytime ok BUT then when it should switch to sunset, the status screen shows sunrise and sunset as both on and the lights go out for a minute then start ramping up again.

I am nearly certain its a problem with my "If Sun" statements. Here is what I have below. Can anyone tell me where my problem is?

Sunrise:
If Sun 180/180 Then ON
If Outlet Daytime = ON Then OFF

Daytime:
If Sun 240/120 Then ON

Sunset:
If Sun 180/120 Then ON
If Outlet Daytime = ON Then OFF
If Outlet Sunrise = ON Then OFF


Thanks
Keith

kikireef
10/25/2011, 02:46 PM
By the way...all ramp times (up and down) are 60 minutes.

md ca
10/25/2011, 05:00 PM
The sunrise ends at the same time daytime ends, and sunset starts at time daytime begins. I am not positive when you want all the lights out, but here is a start:

Sunrise:
If Sun 180/120 Then ON
If Outlet Daytime = ON Then OFF

Daytime:
If Sun 240/120 Then ON {sunrise+60/same end as sunrise}

Sunset:
If Sun 240/180 Then ON {same start at daytime/end daytime+60}
If Outlet Daytime = ON Then OFF

Hope that works

kikireef
10/25/2011, 05:22 PM
I want all the lights to start ramping up 3 hours after the season table and I want all lights to be off 3 hours after the season table. I think that would mean that I would need sunset to be:

If Sun 240/120 Then On
If Outlet Daytime = On Then Off

Does that sound correct? Basically I want The sunset Outlet to trigger the ramp down profile 2 hours after the season table since my ramp down time is 60 minutes. That should make it dark 3 hours after the season table.....I think...

md ca
10/25/2011, 08:03 PM
If your sunset is 240/120, it ends 2 hours after the season table (120 / 60 min = 2 hours). If you end it at 120, it also ends at the same time as daytime (no sunset). I think that 240/180 would end the sunset 3 hours after the table.

kikireef
10/25/2011, 08:25 PM
I don't mean to sound rude by arguing your comments especially since I am asking for help but I thought that the 120 or 180 would be the amount of time after the season table that triggered the profile which ramps down for 1 hour.

kikireef
10/25/2011, 09:10 PM
Ok after thinking about it over and over, I do think your right. Sorry. I reprogrammed it to be 240/180. Season table says sunset at 6:45 tonight. So at 8:45 I will see what happens

md ca
10/25/2011, 09:46 PM
You are not rude at all. This stuff is really hard. This is the thread that I followed to program my lights:

http://www.reefcentral.com/forums/showthread.php?t=2019489

I had to load it all into a spread sheet to figure out all the relationships. I hope they all dimmed and turned off at the right time.

:fish1:

kikireef
10/25/2011, 10:50 PM
SUCCESS!!!! Finally! Thank you very much md_ca. It transitioned perfectly without any hiccup or flicker. What a relief.