pingswept / pysolar

Pysolar is a collection of Python libraries for simulating the irradiation of any point on earth by the sun. It includes code for extremely precise ephemeris calculations.
http://pysolar.org
GNU General Public License v3.0
372 stars 125 forks source link

Dawn and dusk calculation. #108

Open Ikes72000 opened 5 years ago

Ikes72000 commented 5 years ago

Hi,

Is there a way to calculate the different phases of dawn and dawn (civil, nautical, astronomical) using pysolar. I need this for home automation.

Thanks.

ekplesovskaya commented 5 years ago

Have you solved the problem with dawn and dusk calculation? I need the same information.

pingswept commented 4 years ago

Currently no, but it would be a good addition. Patches welcome!

luzpaz commented 4 years ago

+1 on this

bokepasa commented 4 years ago

Use this: Sun Altitude image

AndrewCunliffe commented 4 years ago

+1, and computing time of solar noon could be a valuable addition.

ekplesovskaya commented 4 years ago

For this purpose an Astral package could be useful. I used it to define the approximate time of the required event, and then derived the more accurate estimation with Pysolar by calculating solar altitude angle for this period.

luzpaz commented 4 years ago

anyone working on this ?

thevooght commented 4 years ago

I would be interested too.

bokepasa commented 3 years ago

util.py modification example. https://github.com/bokepasa/Pysolar-civil-nautical-astronomical