MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-CalDAV

    Scheduled Pinned Locked Moved Productivity
    97 Posts 10 Posters 40.6k Views 9 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      Tiller @sdetweil
      last edited by

      @sdetweil

      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; }
      
      
      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @Tiller
        last edited by

        @Tiller thanks… just needed caldav and calendar

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Tiller
          last edited by

          @Tiller said in MMM-CalDAV:

          http://localhost:8080/CALDAV/SYNOLOGY_Calendar.ics

          if you open that on browser someplace it works??

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            Tiller @sdetweil
            last edited by

            @sdetweil

            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.txt

            Tillmann

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Tiller
              last edited by

              @Tiller i do not know… sounds like the MMM-CalDav module didn’t mnake the conversion for some reason

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                Tiller @sdetweil
                last edited by

                @sdetweil

                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

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @Tiller
                  last edited by

                  @Tiller awesome!! thanks for the feedback

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    MrPringless @sdetweil
                    last edited by

                    @MMRIZE

                    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?

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @MrPringless
                      last edited by

                      @MrPringless did you run
                      npm install
                      In the module folder after the git clone?

                      git clone …
                      cd MMM-CalDAV
                      npm install

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        MrPringless @sdetweil
                        last edited by

                        @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.

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @MrPringless
                          last edited by sdetweil

                          @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

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0

                          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
                          • 1
                          • 2
                          • 3
                          • 4
                          • 5
                          • 4 / 5
                          • First post
                            Last post
                          Enjoying MagicMirror? Please consider a donation!
                          MagicMirror created by Michael Teeuw.
                          Forum managed by Sam, technical setup by Karsten.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy