Sorry for writing in "bad English", I'm living in the Flemish speaking part of Belgium.
I am creating a "home alarm system" using a PI2 and Python.
One thing I want to integrate:
You can buy electronic astro clocks where you can enter your location (lat-long).
The clock then calculates the sunrise and sunset and switch the outdoor lights on or off (in Belgium used in street lightning and at many parking areas)
https://www.distrelec.be/nl/time-clock- ... FwQAvD_BwE
I want to integrate this in software in my alarm system so when an intrusion is detected during "darkness" the pi turn on the lights, while daylight the lights stay off.
Is there a function, module or formule available where I can enter my location and the sunrise and sunset times are calculated?
Thanks in advance