add nextcloud public calendar export

This commit is contained in:
Ludwig Behm 2023-10-19 23:29:05 +02:00
parent 01fcc976ba
commit 8e9e6d37fc
Signed by: l.behm
GPG key ID: D344835D63B89384
4 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,12 @@
[Unit]
Description=Dumps calendar events from nextcloud into usable json
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/bash /var/www/kraut.space/bin/calendar-events-exporter.sh
User=www-data
Group=www-data
WorkingDirectory=/var/www/kraut.space

View file

@ -0,0 +1,9 @@
[Unit]
Description=timer for automatic refresh of calendar export
[Timer]
# execute at the second minute of every hour, and repeat every 5 minutes
OnCalendar=*:2/5
[Install]
WantedBy=timers.target