Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ICS Files #59

Closed
captn3m0 opened this issue Jun 21, 2019 · 6 comments · Fixed by #755
Closed

Add support for ICS Files #59

captn3m0 opened this issue Jun 21, 2019 · 6 comments · Fixed by #755
Labels
Hacktoberfest Issues that are good first picks for Hacktoberfest participants

Comments

@captn3m0
Copy link
Member

Discussed previously on HN: https://news.ycombinator.com/item?id=20034030

I tried it out, and while Safari doesn't let you subscribe to a calendar directly, you can add it to iOS via Settings->Accounts->Add Account->Others->Subscribe to Calendar configuration.

A simple ICS file that provides a notification 1 year, 6 months, 3 months, 1 month, 1 week, and on the day of EoL is what I'm planning for.

@ppaeps
Copy link

ppaeps commented Jun 21, 2019

On macOS, Safari simply downloads text/calendar files so you can import them into your calendar of choice. Perhaps there is another MIME type that behaves more magically on these (and other?) implementations.

@captn3m0
Copy link
Member Author

Seems like if you throw a webcal protocol link at it, it works: https://discussions.apple.com/thread/2683155

iOS does detect the mime-type correctly, but doesn't offer to subscribe to the calendar, just import all events.

@ppaeps
Copy link

ppaeps commented Jun 21, 2019

The webcal:// link works! 👍

@captn3m0
Copy link
Member Author

captn3m0 commented Sep 27, 2021

Pick this if you know a little of Ruby. The intent here is to create a ICS file for each tool, similar to how we do it for JSON files. Ruby has a simple to use icalendar gem that we can use to generate the ICS file.

Each ICS file should include all the dates known about that product. If there isn't enough information to create a ICS file (such as no dates on /iphone) - use a calendar: false to turn off the calendar for that page.

Keep the page URLs as simple as possible: endoflife.date/calendar/php.ics for eg.

Add a link to the ICS file in the product page as well, as a webcal:// link so that anyone can subscribe to the calendar.

Make sure you read through CONTRIBUTING.md to understand the file structure. Also, please read through the HACKING.md file to setup the project locally. Reading these will help you get onboarded faster and make sure that your PR sees a speedy merge.

And finally, we have a very helpful guide for new contributors during Hacktoberfest as well.

There is a very similar issue for RSS support that you might be interested in: #48

@captn3m0 captn3m0 added the Hacktoberfest Issues that are good first picks for Hacktoberfest participants label Sep 30, 2021
@marcwrobel marcwrobel linked a pull request Dec 16, 2022 that will close this issue
@marcwrobel
Copy link
Member

I was looking at #48 (comment) and saw the labels for RSS. It may be a good idea to use the same ones in the calendars.

marcwrobel added a commit that referenced this issue Dec 27, 2022
The icalendar GEM (https://github.com/icalendar/icalendar) was used to generate the ICS file.

Co-authored-by: Marc Wrobel <[email protected]>
@adriens
Copy link
Contributor

adriens commented Dec 31, 2022

👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest Issues that are good first picks for Hacktoberfest participants
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants