Platform: Raspberry Pi 4
Node Version: v20.17.0
MagicMirror Version: 2.28.0 (running in docker)
I’m using the built-in magic mirror module for CalDav integration, but the mirror just shows “Error in the Calendar module, check the logs for more info”. Logs are below (personal info scrubbed).
MagicMirrorServer | [2024-09-07 12:59:32.931] [ERROR] Calendar Error. Could not fetch calendar: https://radicale.mydomain.com/MyUser/CalendarUUID/ Error: Forbidden
MagicMirrorServer | at NodeHelper.checkFetchStatus (/opt/magic_mirror/js/node_helper.js:110:9)
MagicMirrorServer | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
My setup for Caldav is Nginx reverse proxy using Basic Auth -> Radicale instance. Auth is disabled on Radicale. I’ve triple-checked the password in the MagicMirror config is correct (even copy-pasted). When I manually browse the calendar URL, I get a Basic auth prompt, then I’m able to download the calendar as an ICS file.
Perhaps this wget
log will help?
wget --user MyUser --ask-password https://radicale.MyDomain.com/MyUser/CalendarUUID/
Password for user ‘MyUser’:
--2024-09-07 13:36:56-- https://radicale.MyDomain.com/MyUser/CalendarUUID/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving radicale.MyDomain.com (radicale.MyDomain.com)... 192.168.-.--
Connecting to radicale.MyDomain.com (radicale.MyDomain.com)|192.168.-.--|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Basic realm="Radicale - Password Required"
Reusing existing connection to radicale.MyDomain.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 269670 (263K) [text/calendar]
Saving to: ‘index.html’
Configuration:
{
module: "calendar",
header: "Events",
position: "top_left",
config: {
calendars: [
{
fetchInterval: 60 * 60 * 1000,
symbol: "calendar-check",
url: "https://radicale.MyDomain.com/MyUser/CalendarUUID/",
auth: {
user: "-----",
pass: "-----",
method: "basic"
}
}
]
}
}