Read the statement by Michael Teeuw here.
MMM-CalDAV
-
Hello again,
sorry I had a lot of work at my job, but now I’m trying again to get this MM working.
The sync to my Synology-Calendar still isn’t working.Here are my logs:
pi@raspy:~ $ pm2 logs mm [TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option) /home/pi/.pm2/logs/mm-error.log last 15 lines: 0|mm | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 0|mm | at async davRequest (/home/pi/MagicMirror/modules/MMM-CalDAV/node_modules/tsdav/dist/tsdav.cjs.js:158:25) 0|mm | at async fetchPrincipalUrl (/home/pi/MagicMirror/modules/MMM-CalDAV/node_modules/tsdav/dist/tsdav.cjs.js:1254:24) 0|mm | at async createAccount (/home/pi/MagicMirror/modules/MMM-CalDAV/node_modules/tsdav/dist/tsdav.cjs.js:1307:31) 0|mm | at async DAVClient.login (/home/pi/MagicMirror/modules/MMM-CalDAV/node_modules/tsdav/dist/tsdav.cjs.js:1659:15) 0|mm | at async Fetcher.work (/home/pi/MagicMirror/modules/MMM-CalDAV/node_helper.js:89:7) { 0|mm | [cause]: Error: getaddrinfo ENOTFOUND invalidcaldavserver.com 0|mm | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) { 0|mm | errno: -3008, 0|mm | code: 'ENOTFOUND', 0|mm | syscall: 'getaddrinfo', 0|mm | hostname: 'invalidcaldavserver.com' 0|mm | } 0|mm | }Probably some auth. problem?
Maybe you got another idea.
I’m running the MM on an Raspberry Pi Zero.Best
Till -
@Tiller
invalidcaldavserver.com???
Usually your error message is showing that URL may be wrong. -
@MMRIZE
Yes, that’s what I thought too.
But I checked it again, and it’s the same URL my Synology ist showing for the calendar.
“Http://localip:5000/caldav/”Maybe some settings on my synology are the problem?! I already checked the port, it’s open.
Best
Tillmann -
@Tiller what is localip?
-
@sdetweil
The local IP of my synology.
Something like 192.168.0.x -
@Tiller ok… just checking…
just fyi IP addresses 192.168.x.y NEVER cross the internet… they are ‘unroutable’ on purpose
172. and 10. are also like thatif you share that I cannot reach it…
mine network is 192.168.2.x
-
Hello and a happy new year to you all.
I checked the URL, tried different versions. Used the tried the same URL I use on my smartphone (the url is working), but always get the same error.
I don’t know what to do or try.
I checked the firewall and port settings on my synology, but still the same error.Do you have any other ideas?
Best
Tillmann -
@Tiller can you post your config… xx out the personal part of your source calendar
use the code block wrapper on the config post here
-
Hi Sam,
here is my config.
Thx
/* Config Sample * * For more information on how you can configure this file * see https://docs.magicmirror.builders/configuration/introduction.html * and https://docs.magicmirror.builders/modules/configuration.html * * You can use environment variables using a `config.js.template` file instead of `config.js` * which will be converted to `config.js` while starting. For more information * see https://docs.magicmirror.builders/configuration/introduction.html#enviromnent-variables */ let config = { address: "0.0.0.0", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "0.0.0.0", "::" to listen on any interface // Default, when address config is left out or empty, is "localhost" port: 8080, basePath: "/", // The URL path where MagicMirror² is hosted. If you are using a Reverse proxy // you must set the sub path here. basePath must end with a / ipWhitelist: [], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], useHttps: false, // Support HTTPS or not, default "false" will use HTTP httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true language: "en", locale: "en-US", logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging timeFormat: 24, units: "metric", modules: [ { module: "MMM-CalDAV", config: { servers: [ { accountType: "caldav", envPrefix: "SYNOLOGY_", serverURL: "http://synology-ip/CalDav/", }, ], }, }, { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "calendar", header: "US Holidays", position: "top_left", config: { calendars: [ { url: "http://localhost:8080/CALDAV/SYNOLOGY_Calendar.ics", name: "Calendar", auth: { user: 'username1', pass: 'password1', method: 'basic' }, }, ], }, }, { module: "compliments", position: "lower_third" }, { module: "weather", position: "top_right", config: { weatherProvider: "openmeteo", type: "current", lat: 51.31, lon: 7.28 } }, { module: "weather", position: "top_right", header: "Weather Forecast", config: { weatherProvider: "openmeteo", type: "forecast", lat: 51.31, lon: 7.28 } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "New York Times", url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml" } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: true, broadcastNewsUpdates: true } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") { module.exports = config; } -
@Tiller thanks… just needed caldav and calendar
-
-
No, it still doesn’t work. I checked the path of the .ics, which should be stored in /MagicMirror/MMM-CalDav/service/
as a hidden file, but I can only find the placeholder.txtTillmann
-
@Tiller i do not know… sounds like the MMM-CalDav module didn’t mnake the conversion for some reason
-
Hello,
it’s working now, but without the MMM-CalDAV module.
I checked the url I’m using on my phone and just added it to the standard calendar module and added a “.ics” at the end of the url. Now it’s working. I tried this before and it wasn’t working.
Now it is.
Thanks for your help and support.Best
Tillmann -
@Tiller awesome!! thanks for the feedback
-
Hello,
Please Can you help me and Sorry for my bad English.I have a Problem wit the CalDAV Module in Magic Mirror2.
in the pm2 error Log File i have this Message:
[2025-09-04 11:42:08.001] [ERROR] Error when loading MMM-CalDAV: Cannot find module ‘dotenv’
Require stack:- /home/magicmirror/MagicMirror/modules/MMM-CalDAV/node_helper.js
- /home/magicmirror/MagicMirror/js/app.js
- /home/magicmirror/MagicMirror/js/electron.js
[2025-09-04 11:42:08.379] [WARN] You’re using a full whitelist configuration to allow for all IPs
[2025-09-04 11:42:17.749] [ERROR] Calendar Error. Could not fetch calendar: http://localhost:8080/CALDAV/FAMILY_Familienkalender.ics Error: Not Found
at NodeHelper.checkFetchStatus (/home/magicmirror/MagicMirror/js/node_helper.js:102:9)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
[2025-09-04 11:42:18.028] [ERROR] Calendar Error. Could not fetch calendar: http://localhost:8080/CALDAV/NINA_Arbeit.ics Error: Not Found
at NodeHelper.checkFetchStatus (/home/magicmirror/MagicMirror/js/node_helper.js:102:9)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
[2025-09-04 11:42:18.226] [ERROR] Calendar Error. Could not fetch calendar: http://localhost:8080/CALDAV/DOMINIQUE_Klasse7d.ics Error: Not Found
at NodeHelper.checkFetchStatus (/home/magicmirror/MagicMirror/js/node_helper.js:102:9)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
[2025-09-04 11:42:18.406] [ERROR] Calendar Error. Could not fetch calendar: http://localhost:8080/CALDAV/SAMUEL_Klasse4f.ics Error: Not Found
at NodeHelper.checkFetchStatus (/home/magicmirror/MagicMirror/js/node_helper.js:102:9)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
[2025-09-04 11:47:17.764] [ERROR] Calendar Error. Could not fetch calendar: http://localhost:8080/CALDAV/FAMILY_Familienkalender.ics Error: Not Found
at NodeHelper.checkFetchStatus (/home/magicmirror/MagicMirror/js/node_helper.js:102:9)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
[2025-09-04 11:47:18.035] [ERROR] Calendar Error. Could not fetch calendar: http://localhost:8080/CALDAV/NINA_Arbeit.ics Error: Not Found
at NodeHelper.checkFetchStatus (/home/magicmirror/MagicMirror/js/node_helper.js:102:9)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
The following errors are clear thats the result from the First ERROR.
What im doing Wrong or thinking false?
-
@MrPringless did you run
npm install
In the module folder after the git clone?git clone …
cd MMM-CalDAV
npm install -
@sdetweil Thanks for your reply.
It’s a bit crazy. I completely reinstalled everything two days ago using copy and paste from the module page.
Then I copied the .env file from the old installation to the new installation.
Could this be because I copied the .env file from a backup into the directory after the reinstallation?
Thanks for the feedback, because I’d like to learn from my mistakes. -
@MrPringless I do not know the inner workings of the module.
typically
module not found
means npm install for the module was not done or the package.json for the module didn’t list the library dependency. MMRIZE is very good on that point, so I don’t the second is the reason…but thanks for the nudge… my backup/restore scripts will save/restore extra files discovered in a modules folder… but files with leading dot are hidden by convention… so I will have to check that
I would not have picked up the .env file… fixed… thx
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login