A simple ICS calendar that shows daily sunrise & sunset times in San Francisco.
Subscribe to this link ("by URL") in your calendar app:
webcal://www.averychan.site/sun-calendar/sun.ics
Sunrise and Sunset times for the current week should appear in your calendar like this:
![example calendar view](https://private-user-images.githubusercontent.com/53503018/399132628-b74367bc-9a3c-44dd-b00d-57a810d2285f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDA2NTEsIm5iZiI6MTczOTEwMDM1MSwicGF0aCI6Ii81MzUwMzAxOC8zOTkxMzI2MjgtYjc0MzY3YmMtOWEzYy00NGRkLWIwMGQtNTdhODEwZDIyODVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDExMjU1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwOWIwMTE0ZDEyNjA4OGJjZWM3MjNhMWIyYzRlY2MzMjAwMTFlMTgxY2FmZjE2ZTU3ZWQyNTExNmI2ZWI4YTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.VB-7rcpRF_UE9j9Lb_rU4ILnz_cZw_Opy7mDdCKT_Fk)
For Google Calendar to to: https://calendar.google.com/calendar/u/0/r/settings/addbyurl
- To generate the isc file, run
create_calendar_local.py
- Uses this awesome free sun API: https://sunrise-sunset.org/api
- Uses isc python library https://icspy.readthedocs.io/en/stable/
- The isc file is exposed by hosting on GH pages
- If you want to use a different location, just change the lat and long coordinates in
create_calendar_local.py
- You can get the lat and long coordinates from google maps by right clicking
- If you want it to auto-update, you'll have to fork this and host it on your own github pages. You'll have to update the workflow file to point to your repo too.