Skip to content

Files

Latest commit

a02b3b2 · May 11, 2021

History

History
20 lines (13 loc) · 860 Bytes

readme.md

File metadata and controls

20 lines (13 loc) · 860 Bytes

sunscript

Generates an ics file containing events for sunrise and sunset for a given range of dates. Sunrise is defined as dawn to sunrise, sunset is defined as sunset to dusk.

To use, change the variables defined at the beginning. Location is input as coordinates in loc_lat and loc_long, the only function of loc_name is formatting. It also needs the timezone as defined by pytz.

Dependencies:

Todo:

  • Improve daylight time formatting in event description
  • See if coordinates in event location can move to "GEO" property
  • More scripts for astral's other features:
    • Solar noon
    • Moon phase