This script fetches data from the Sunrise Sunset API and creates an iCalendar file so that it can be used in your Google, iCloud, or Outlook calendar.
Uses the ICS Python Library to create the .ics file.
- Clone this repo and navigate to it
pip install -r requirements.txt
python3 main.py
- Open the generated .ics file
- Add command line input that requests a zip code and looks up latitude and longitude and time zone automatically using Google Geocoding API
- Create calendar subscription using Google Calendar API
- Create a frontend that allows you to directly download a .ics file