HomeGenie Forum

Development => Feature request => Topic started by: Maximo on March 06, 2015, 09:53:51 AM

Title: Dusk and Dawn function
Post by: Maximo on March 06, 2015, 09:53:51 AM
I've opened a request for this;

The Sunrise / Sunset schedules are great and can be used for a number of lighting functions. However there are times when it's quite dark inside by the time Sunset arrives. Would it be possible to create a Dusk and Dawn function, where the time is say 20 minutes prior or post?
Title: Re: Dusk and Dawn function
Post by: Gene on March 06, 2015, 11:19:35 AM
Enable the Solar Altitude program and use schedules defined by it.

Cheers,
g.
Title: Re: Dusk and Dawn function
Post by: bkenobi on March 06, 2015, 05:05:28 PM
If none of those values work for your needs, you could also either create a new script or modify the Solar Altitude code to create a new dusk/dawn value or your desired offset.  There are enough values already in the existing app that you should find something sufficient though.
Title: Re: Dusk and Dawn function
Post by: NickP on March 12, 2015, 02:50:39 PM
I had the same need, in my case 1 hour before sunset.
You could add this into the Solar Altitude code; easy to see where, there is a block of lines that are similar.

Code: [Select]
SolarAltitude.saveTimer("jkUtils.SolarAltitude.Evening.Sunset.Dusk",sun.sunsetStart,-20);