Page 1 of 1

Civil Sunset vs. True Sunset

Posted: Wed Jan 03, 2007 7:21 pm
by loo_hoo_ser
Hi Y'all -

I have a bit of an odd question here. I use HB to turn on and off my exterior lights at sunrise and sunset, but I don't turn them on just at sunrise and sunset, but sometime before (or after depending) these events actually occur. Now, I'm wondering what HB defines as sunrise and sunset. I did a bit of research - there are various types of these sunrise and sunset events. There is the actual sunrise/sunset, there is the civil sunrise/sunset, nautical sunrise/sunset, and finally astronomical sunrise/sunset.

The one I'm interested in is the civil sunrise/sunset. As I understand it, that's the point when the sun appears just enough to see outside but not quite dark (the transition point). In the summer time, I have the exterior lights come on some time after the actual sunset when it's dark enough to need the lights on. Otherwise I'm the only idiot on the block with the lights on when everything is still bright outside.

On the other hand, in wintertime, the days are short and it appears that I have to turn on the lights before the actual sunset so in a sense the time of civil twilight in the winter and summer are not the same time apart. For example, in the summer time the civil sunset is like an hour after the sunset. And in the winter time, the civil sunset is something like 15 minutes after the sunset. So I can't use a constant value year round, is there some formula I can use to determine at what point after/before sunrise/sunset to actually turn on the lights?

Or I could use an X10 dusk/dawn sensor. But I've had a hard time placing one of those - I find that the lights in the room confuse my dusk/dawn sensor and had to keep the shades drawn all the time to keep the outside light focused on the sensor module.

Anyway, as a geek, that's the easy way out! I wanna do this some other way with a script in HB to compute the civil sunrise/sunset times.

Posted: Wed Jan 03, 2007 8:37 pm
by ScottBot
The HouseBot sunrise and sunset times are the actual times. For V3, I've implemented properties for civil offsets also.

Posted: Wed Jan 03, 2007 8:53 pm
by loo_hoo_ser
Scott -

That sounds great! It sounds like you already thought of this! Are the offsets constant throughout the year or do the offsets change depending on the time of the year?

When are we going to start beta testing HB v3 for you??? :D

Posted: Wed Jan 03, 2007 9:10 pm
by ScottBot
loo_hoo_ser wrote:Are the offsets constant throughout the year or do the offsets change depending on the time of the year?
Check out this url. You can play with some dates and see for your self and your location.
When are we going to start beta testing HB v3 for you??? :D
Not for some time yet... but it's getting there. I find myself adding things to the list faster than I'm knocking them out.

Posted: Wed Jan 03, 2007 10:26 pm
by loo_hoo_ser
Scott -

Thanks for the link. I created a quick table for the same day each month and it turns out that the time elapsed between the sunset and civil twilight is the same! That is odd because it gets darker here quickly and I have to turn the lights on sooner in the wintertime and when its summer time, the lights don't get turned on till much later. Maybe its psychological?

In any event, I have my answer - the time constant between actual sunset and end of civil twilight is fixed year round. For my area, it's only a half hour.