Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grimsteel/sunrise-sunset-calendar
Generate an iCal file for sunrise and sunset times
https://github.com/grimsteel/sunrise-sunset-calendar
google-calendar ical sunrise-sunset
Last synced: about 2 months ago
JSON representation
Generate an iCal file for sunrise and sunset times
- Host: GitHub
- URL: https://github.com/grimsteel/sunrise-sunset-calendar
- Owner: grimsteel
- License: mit
- Created: 2023-05-14T00:37:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-14T18:21:24.000Z (over 1 year ago)
- Last Synced: 2024-11-05T10:40:45.513Z (3 months ago)
- Topics: google-calendar, ical, sunrise-sunset
- Language: JavaScript
- Homepage: https://grimsteel.github.io/sunrise-sunset-calendar
- Size: 192 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sunrise Sunset Calendar
https://grimsteel.github.io/sunrise-sunset-calendar/
Generate an iCal file for sunrise and sunset times for a given location
This file can then be imported into Google Calendar or other calendar applications.
## How it works
I used NOAA's [Solar Calculator](https://gml.noaa.gov/grad/solcalc/) for the algorithm for calculating the sunrise/sunset times based on the latitude, longitude, and timezone of the location.
**Resources**:
- [Sunrise and Sunset Calculator](https://gml.noaa.gov/grad/solcalc/)
- [NOAA Sunrise/Sunset Spreadsheet](https://gml.noaa.gov/grad/solcalc/NOAA_Solar_Calculations_year.xls)
- [PDF Explanation](https://gml.noaa.gov/grad/solcalc/solareqns.PDF)I don't understand the math behind it, (it seems like magic!) but it seems to work pretty well!