This commit is contained in:
psychophoniac 2021-07-04 12:31:03 +02:00
parent 018fda8b15
commit 0d2c671747
3 changed files with 23 additions and 0 deletions

View File

@ -6,4 +6,7 @@ COPY main.py requirements.txt /
USER user
RUN pip install -r requirements.txt
# TODO unbuffer python
CMD python3 main.py

View File

@ -4,3 +4,22 @@ Parses the Events of the [hsmr] - the hackspace in Marburg, Germany and pushes t
Be aware that as for now the script **nukes and replaces without confirmation** the complete target calendar, so you might want to use a separate one for the hsmr events.
# invocation
## cli
```bash
CALDAV_URL='https://radicale.example.com/user/997701c7-0fa5-c123-27b3-12376f07eae4/' CALDAV_USERNAME=username CALDAV_PASSWORD='sup3rs3cr3t' python3 main.py
```
## docker
```bash
docker build -t hsmr-events2caldav .
[...]
docker run --rm \
-e CALDAV_URL='https://radicale.example.com/user/997701c7-0fa5-c123-27b3-12376f07eae4/' \
-e CALDAV_USERNAME=username \
-e CALDAV_PASSWORD='sup3rs3cr3t' \
hsmr-events2caldav:latest
```

View File

@ -1,3 +1,4 @@
beautifulsoup4
caldav
icalendar
requests