Integration of ICS/CalDav calendars with username and password #607
Replies: 1 comment
-
|
I found the following quick and dirty solution. Maybe it will help others too. I use a script to download the ICS file to the InkyPi every 30 minutes. An nginx web server on the InkyPi then makes the ICS file available. This allows me to download the ICS file with a username and password and access it in the InkyPi web interface without having to enter a password. To prevent access to the ICS file on the local network, port 81 can be blocked using ufw. The InkyPi can then retrieve the ICS file at 127.0.0.1, but retrieval from external networks is blocked.
change the http port from 80 to 81 in the nginx configuration.
You should now see the default nginx index page unter http://your-ip:81 create the download script:
and insert: `#!/bin/bash CALENDAR_URL="https://caldav.example.com/remote.php/dav/calendars/username/personal" echo "Lade Kalender herunter..." if curl -L -s --netrc -o "$OUTPUT_FILE" "$CALENDAR_URL"; then We need to make the script executable.
and we need to enter the credential for the ics file:
at least we need to create a cronjob
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My calendars are only accessible via ICS/CalDAV with username and password. How did you solve this?
Beta Was this translation helpful? Give feedback.
All reactions