This repository has been archived on 2024-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
Darragh Elliott 6d26737e32
Some checks reported errors
continuous-integration/drone/push Build was killed
Deprecation notice
2024-07-25 09:33:16 +02:00
2024-07-25 09:33:16 +02:00
2024-05-21 13:58:30 +02:00
2024-07-11 14:06:01 +02:00
2024-07-11 13:32:28 +02:00
2024-07-11 13:32:28 +02:00
2024-07-25 09:33:16 +02:00
2024-05-21 13:58:30 +02:00

ARCHIVED

This repo has been deprecated by https://git.fsfe.org/fsfe-system-hackers/event-notifier, and has hence been archived.

Auto Event Calendar

in docs.fsfe.org Build Status REUSE status

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
Description
A simple script to place events from git.fsfe.org/FSFE/fsfe-website/events onto Nextcloud calendars.
Readme 101 KiB
Languages
Python 95.4%
Dockerfile 4.6%