xLightsSequencer / xLights

xLights is a sequencer for Lights. xLights has usb and E1.31 drivers. You can create sequences in this object oriented program. You can create playlists, schedule them, test your hardware, convert between different sequencers.
GNU General Public License v3.0
555 stars 209 forks source link

Feature Request: Astronomical Scheduling #1136

Closed jholmes09 closed 6 years ago

jholmes09 commented 6 years ago

This feature would use your geographical location to determine what time sunrise & sunset is, triggering a playlist accordingly. You could either set your city or your coordinates.

Here are some APIs and libraries that could help (I think):

https://sunrise-sunset.org/api

https://github.com/dmkishi/Dusk2Dawn

jwylie01 commented 6 years ago

Yahoo weather API is another good one. I use that for a project I built.

On Fri, May 18, 2018 at 12:50 PM, jholmes09 notifications@github.com wrote:

This feature would use your geographical location to determine what time sunrise & sunset is, triggering a playlist accordingly. You could either set your city or your coordinates.

Here are some APIs and libraries that could help (I think):

https://sunrise-sunset.org/api

https://github.com/dmkishi/Dusk2Dawn

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/smeighan/xLights/issues/1136, or mute the thread https://github.com/notifications/unsubscribe-auth/AVcajdK367ZKFAQ1ZUWZzd7HUf0FmTRTks5tzwn_gaJpZM4UFHl- .

-- Jennifer C Wylie

AzGilrock commented 6 years ago

Not that I want to jump into coding this feature but I've written a lot of astronomy code over the years and I have my own code that using your GPS location and date/time can calculate sunrise, sunset, moon position, sun position, as well as the positions of Jupiter's 4 major moons.

keithsw1111 commented 6 years ago

sunrise and sunset will be legitimate times in the next release. You will need to choose your nearest location in the settings.