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
    93 Posts 9 Posters 27.3k Views 8 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 @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
                        • 1
                        • 2
                        • 6
                        • 7
                        • 8
                        • 9
                        • 10
                        • 9 / 10
                        • 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