{"id":14036797,"url":"https://github.com/chrisblakley/Daylight-Calendar-ICS","last_synced_at":"2025-07-27T04:32:03.392Z","repository":{"id":29669798,"uuid":"122427117","full_name":"chrisblakley/Daylight-Calendar-ICS","owner":"chrisblakley","description":"Daylight Calendar is a dynamically generated .ics calendar that you can host and subscribe to in Google Calendar, iCal, or other calendar software.","archived":false,"fork":false,"pushed_at":"2024-08-10T15:16:58.000Z","size":35,"stargazers_count":42,"open_issues_count":6,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-13T03:05:48.802Z","etag":null,"topics":["calendar","daylight","daylight-saving-time","daylight-savings","google-calendar","ical","ics","sunrise","sunset"],"latest_commit_sha":null,"homepage":"https://gearside.com/google-daylight-calendar/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrisblakley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-22T03:42:03.000Z","updated_at":"2024-08-10T15:17:01.000Z","dependencies_parsed_at":"2024-04-16T08:42:05.946Z","dependency_job_id":null,"html_url":"https://github.com/chrisblakley/Daylight-Calendar-ICS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisblakley%2FDaylight-Calendar-ICS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisblakley%2FDaylight-Calendar-ICS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisblakley%2FDaylight-Calendar-ICS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisblakley%2FDaylight-Calendar-ICS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisblakley","download_url":"https://codeload.github.com/chrisblakley/Daylight-Calendar-ICS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227762263,"owners_count":17815997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","daylight","daylight-saving-time","daylight-savings","google-calendar","ical","ics","sunrise","sunset"],"created_at":"2024-08-12T03:02:14.196Z","updated_at":"2024-12-02T16:30:37.378Z","avatar_url":"https://github.com/chrisblakley.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Daylight Calendar ICS\n\nThis is a dynamically generated .ics calendar that you can host and subscribe to in Google Calendar, iCal, or other calendar software.\n\nNot only will it provide an event each day with the appropriate sunrise and sunset time, it will show the length of the day in hours/minutes as well as in a percent (of 24 hours) and the solar noon for that day. It will also give a percentile compared to the shortest and longest days of the year!\n\n## Options\n\n- [Find your geo coordinates](https://www.latlong.net/)\n- [Find your timezone name](https://www.php.net/manual/en/timezones.php)\n- [Find your GMT offset](http://en.wikipedia.org/wiki/List_of_UTC_time_offsets#mediaviewer/File:World_Time_Zones_Map.png)\n\n## Instructions\n\n- Upload `daylight.php` and/or `sun.php` to your server (or skip this step and use the one hosted on [gearside.com](https://gearside.com/calendars/daylight.php))\n- Point your calendar to the file and use query parameters for the options above.\n  - Latitude: `lat`\n  - Longitude: `lng`\n  - Timezone (preferred way): `timezone`\n  - GMT Offset (alternate way): `gmt`\n  - Year: `year`\n  - Event types (`sun.php` only):\n    - `actual`\n    - `civil`\n    - `nautical`\n    - `astronomical`\n    - `all`\n\nUse `?debug` to directly view the calendar file in a browser with events more easily readable. Be sure not to use `?debug` when subscribing to your calendar as it does not declare itself as an .ics file with that parameter present.\n\n## Examples\n\n#### Basic\n\nMost reliable method:\n`https://gearside.com/calendars/daylight.php?lat=43.1234\u0026lng=-76.1234\u0026timezone=America/New_York`\n\nYour mileage may vary if only passing GMT offset:\n`https://gearside.com/calendars/daylight.php?lat=43.1234\u0026lng=-76.1234\u0026gmt=-5`\n\n`https://gearside.com/calendars/sun.php?lat=43.1234\u0026lng=-76.1234\u0026gmt=-5\u0026all`\n\n## Notes\n\nCalendar software caches remote .ics files (like this one), so when replacing it you can \"bust\" the cache by adding another query parameter of random characters such as `\u0026sdfgsfd`.\n\n- [More information available at Gearside.com](https://gearside.com/google-daylight-calendar/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisblakley%2FDaylight-Calendar-ICS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisblakley%2FDaylight-Calendar-ICS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisblakley%2FDaylight-Calendar-ICS/lists"}