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.3k 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.
    • S Offline
      sdetweil @caw
      last edited by

      @caw add the workaround?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        caw @sdetweil
        last edited by

        @sdetweil i think some of the Synology users have the same issue with permissions an their nas

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

          @caw this is really a docker on synology implementation issue. you created files needed by the docker container using an outside the container userid.

          many modules use their folder as a cache storage location

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • J Offline
            jal201
            last edited by

            I apologize but I am very very new to all of this and I was looking for a little guidance on syncing with my Apple Calendar using MMM-CalDAV. The issue I am running into is that in the [LOG] it is showing [CALDAV] /MagicMirror/modules/MMM-CalDAV/service/.ICLOUD_family.ics is not found. This is cascading into a lot of issues which results in the fetch of the family calendar isn’t happening. I am sure I am missing something simple but I can’t for the life of me find it out. Would it be possible to get some help and which direction could I investigate? Thank you all in advance.

            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @jal201
              last edited by

              @jal201 can u tell us more about your runtime environment?

              are you using a NAS device, synology? or is this on a pi, without docker?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                jal201 @sdetweil
                last edited by

                @sdetweil

                Thank you for your time. I believe am using a pi without a docker.

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

                  @jal201 said in MMM-CalDAV:

                  /MagicMirror/modules/MMM-CalDAV/service/.ICLOUD_family.ics

                  this seems to imply the config for calendar doesn’t match the config for MMM-Caldav

                  caldav reads the real calendar and puts the data in the configured folder
                  and then the MM calendar loads it from the configured folder…

                  I am not the module author.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    jal201 @sdetweil
                    last edited by

                    @sdetweil thank you for the information. I was curious about the *.ICLOUD file location. Do you see that in your application? Is that folder used?

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

                      @MMRIZE

                      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

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        MMRIZE @Tiller
                        last edited by

                        @Tiller
                        invalidcaldavserver.com ???
                        Usually your error message is showing that URL may be wrong.

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

                          @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

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

                            @Tiller what is localip?

                            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
                              The local IP of my synology.
                              Something like 192.168.0.x

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

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

                                if you share that I cannot reach it…

                                mine network is 192.168.2.x

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  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

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

                                    @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

                                    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

                                      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

                                            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
                                            • 2 / 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