mehr-schulferien-de / www.mehr-schulferien.de

We collect and publish school vacation and public holiday data.
https://www.mehr-schulferien.de
25 stars 7 forks source link

iCal export for school vacations #491

Open wintermeyer opened 4 years ago

wintermeyer commented 4 years ago

Users want to download iCal https://en.wikipedia.org/wiki/ICalendar exports of our calendars. For federal states and schools. We need to provide the following versions:

Both will be linked on https://www.mehr-schulferien.de/ferien/d/bundesland/:slug and on https://www.mehr-schulferien.de/ferien/d/schule/:slug

I don't know under which path they should be routed (I guess /api/2.0/...).

Misc

I am not familiar with the iCal format but I guess it contains some sort of fingerprint to make sure if data has changed. We have to honor that system by querying the updated_at fields of the used periods and use that as that fingerprint.

wintermeyer commented 4 years ago

I don't know how good this is but I just found it: https://github.com/lpil/icalendar

riverrun commented 4 years ago

Mostly finished in #532

Remaining tasks:

wintermeyer commented 4 years ago
  • decide what filenames we want to use and if we want different filenames for the different types of icalendars

I think taking the name of the location and the year is a good first choice.

riverrun commented 4 years ago

Updated in #533

The wording and formatting of the icalendar links still need to be updated.