ARCHIVED
This repo has been deprecated by https://git.fsfe.org/fsfe-system-hackers/event-notifier, and has hence been archived.
Auto Event Calendar
General
This repo contains a simple service that generates event calendars from the events submitted on the fsfe webpage.
More specifically, it parses the event xml files in fsfe-website/events/YYYY/event-yyyymmdd-nn.*.xml and from those files adds events to nextcloud calendars. It will find or create a calendar for each local group an event is identified as being associated with, and then add any events between the specified timeframe in the script. It is currently run nightly, and as there is no real way of telling if two caldav events are the same, it just clears all event from every calendar it touches and repopulates it. The calendars it generates can be seen on the fsfe groups page.
When it creates a new calendar for a new group this a share link must be manually generated for this calendar and added to the groups page on the website.
Events added to the nextcloud calendars will be removed and any changes overwritten everytime this script runs, so the calendar links should be read only to make sure no-one tries to use them as a human alterable calendar.
Tool help message:
usage: auto-event-calendar.py [-h] [--dry-run] [-v] url username password
Add calendars from events data on the fsfe webpage
positional arguments:
url url of caldav server
username username to access server with
password password to access server with
options:
-h, --help show this help message and exit
--dry-run Perform a dry run, not altering anything on the server, but
printing messages as though it is.
-v, --verbose Increase verbosity of output