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.
    • M Offline
      MMRIZE @caw
      last edited by

      @caw said in MMM-CalDAV:

      {
      module :“MMM-CalDAV”,
      config: {
      servers: [
      {
      envPrefix: “SYNOLOGY_”,
      serverUrl: “https://myownsynologyadress.de/caldav/”,
      ],
      },
      },

      And you’ve missed a closing brace in your code.

       {
      		module :"MMM-CalDAV",
      		config: {
      			servers: [
      				{
      					envPrefix: "SYNOLOGY_",
      					serverUrl: "https://myownsynologyadress.de/caldav/",
                                       }, // <-- HERE
      			],
      		},
      	},
      
      C 1 Reply Last reply Reply Quote 0
      • C Offline
        caw @MMRIZE
        last edited by

        @MMRIZE yes the image is a screen from the browser. MM is running till i add the Caldav-Module. So i assume I missconfigured something. The missing bracket did not solve the problem in the log:

        2024/09/04 15:33:13 stderr if (key?.startsWith(prefix)) {
        2024/09/04 15:33:13 stderr [04.09.2024 15:33.13.728] [ERROR] /opt/magic_mirror/modules/MMM-CalDAV/node_helper.js:14
        2024/09/04 15:33:13 stderr [04.09.2024 15:33.13.727] [ERROR] Whoops! There was an uncaught exception…
        2024/09/04 15:33:13 stdout [04.09.2024 15:33.13.726] [LOG] No helper found for module: MMM-Carousel.
        2024/09/04 15:33:13 stdout [04.09.2024 15:33.13.726] [LOG] No helper found for module: clock.
        2024/09/04 15:33:13 stdout [04.09.2024 15:33.13.725] [LOG] Module helper loaded: updatenotification
        2024/09/04 15:33:13 stderr at /opt/magic_mirror/js/app.js:166:6
        2024/09/04 15:33:13 stderr at loadNextModule (/opt/magic_mirror/js/app.js:164:5)
        2024/09/04 15:33:13 stdout [04.09.2024 15:33.13.725] [LOG] Initializing new module helper …
        2024/09/04 15:33:13 stderr at loadModule (/opt/magic_mirror/js/app.js:126:19)
        2024/09/04 15:33:13 stderr at require (internal/modules/cjs/helpers.js:74:18)
        2024/09/04 15:33:13 stderr at Module.require (internal/modules/cjs/loader.js:887:19)
        2024/09/04 15:33:13 stdout [04.09.2024 15:33.13.725] [LOG] No helper found for module: alert.
        2024/09/04 15:33:13 stderr at Function.Module._load (internal/modules/cjs/loader.js:708:14)
        2024/09/04 15:33:13 stderr at Module.load (internal/modules/cjs/loader.js:863:32)
        2024/09/04 15:33:13 stdout [04.09.2024 15:33.13.724] [LOG] Loading module helpers …
        2024/09/04 15:33:13 stderr at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10)
        2024/09/04 15:33:13 stderr at Module._compile (internal/modules/cjs/loader.js:963:27)
        2024/09/04 15:33:13 stderr at wrapSafe (internal/modules/cjs/loader.js:915:16)
        2024/09/04 15:33:13 stderr SyntaxError: Unexpected token ‘.’

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

          @caw because you are running in server mode, the version of nodejs matters.

          your version is way down level

          the ?. syntax shown on line 14 is from the latest js version

          IMG_0187.png

          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 thank you very much for the information - but now i have another problem to get it updated can you help me with this?

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

              @caw what environment are you running?

              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 im running the docker container on a Synology NAS

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

                  @caw what docker container?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @caw said in MMM-CalDAV:

                    "https://myownsynologyadress.de/caldav/

                    https: means you have a certificate for that address and have configured MMM-Caldav to run in secure mode

                    is that true?

                    typically one uses mmm-caldav to read from the foreign calendar, and emit ics data for the local machine

                    and make it available thru a url request (which causes the MMM-Caldav module to provide the data live)

                    http://mmIP:mmPort/caldav
                    

                    or shorthand for this same system is (using the default mm port)

                    http://localhost:8080/caldav
                    

                    depending on how MM is configured,
                    address: and ipWhitelist, by default it rejects ALL requests from OUTSIDE systems
                    so your loop back at - https://myownsynologyadress.de would be rejected…

                    I use cloudflare to map outside requests to my systems thr a tunnel, so I have https (cert provided by cloudflare) and have reconfigured my MagicMirror to allow any incoming request

                    address: "0.0.0.0",
                    ipWhitelist:[],
                    

                    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 im running the “container manager” on the nas and the container by bastilimbach installation guide by https://mariushosting.com/how-to-install-magicmirror-on-your-synology-nas/

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

                        @sdetweil i used ipv64 to receive a certificate - but for now i dont want to get any caldav from outside or do i missunderstand something?

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

                          @caw said in MMM-CalDAV:

                          bastilimbach

                          that image is 4 years old, so not running the latest node or MM…

                          the install doc https://docs.magicmirror.builders/getting-started/installation.html#alternative-installation-methods
                          references this docker image
                          https://gitlab.com/khassel/magicmirror

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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

                            @caw because the ics generated by MMM-Caldav is only needed on this same machine I would use

                            http://localhost:mmport/CALDAV

                            in the calendar module.

                            I am guessing your cert is connected to your internet IP address (ISP router)
                            which is then port forwarded to the MM machine…

                            this is an external (from MM’s perspective) request

                            MM is configured (be default) to be a closed system on the wall, not allowing any external systems to request the MM page (external means outside the machine MM is running on)

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

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

                              @sdetweil i searched for a guide to get the Khassel container running on a Synology NAS but didn’t found anything about it. I tried it by my own but did not work. Do you have a clue how to get it on the Docker on a Synology NAS?

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

                                @caw my older 416j only has 512mb storage, not enough room to run docker things

                                but docker is docker. i thought he specified a compose or command line

                                see this
                                https://forum.magicmirror.builders/topic/18952/docker-install-on-synology-nas

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

                                  so i got the khassel image running and i think the calendars are found but i get an error:

                                  [2024-09-05 22:42:56.488] [ERROR] Error: EACCES: permission denied, open ‘/opt/magic_mirror/modules/MMM-CalDAV/service/.SYNOLOGY_Familien_20Kalender.ics’
                                  2024/09/05 22:42:56 stderr [2024-09-05 22:42:56.486] [ERROR] Whoops! There was an uncaught exception…

                                  do you have a clue how to fix this? im irritated by the “20” between Familien_20Kalender.ics thats no part of the calendar name…

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

                                    @caw 20 is typically part of a name with a space in it, %20

                                    also you have a . (dot) in front of SYNOLOGY_

                                    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

                                      and do you have any clue where the misstake is? and how can i fix it?

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

                                        @caw i am going to guess

                                        remove the dot in front of SYNOLOGY
                                        and in the MagicMirror config mke sure there is a space where you see the 20, or make it %20

                                        one change at a time

                                        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 dont have a dot in front of the Prefix

                                          module :“MMM-CalDAV”,
                                          config: {
                                          servers: [
                                          {
                                          envPrefix: “SYNOLOGY_”,

                                          2024/09/06 01:23:15 stderr path: ‘/opt/magic_mirror/modules/MMM-CalDAV/service/.SYNOLOGY_Simon.ics’
                                          2024/09/06 01:23:15 stderr syscall: ‘open’,
                                          2024/09/06 01:23:15 stderr code: ‘EACCES’,
                                          2024/09/06 01:23:15 stderr errno: -13,
                                          2024/09/06 01:23:15 stderr at async saveIcs (/opt/magic_mirror/modules/MMM-CalDAV/node_helper.js:76:7) {
                                          2024/09/06 01:23:15 stderr at async Object.writeFile (node:internal/fs/promises:1212:14)
                                          2024/09/06 01:23:15 stderr at async open (node:internal/fs/promises:639:25)
                                          2024/09/06 01:23:15 stderr [2024-09-06 01:23:15.709] [ERROR] Error: EACCES: permission denied, open ‘/opt/magic_mirror/modules/MMM-CalDAV/service/.SYNOLOGY_Simon.ics’
                                          2024/09/06 01:23:15 stderr [2024-09-06 01:23:15.707] [ERROR] Whoops! There was an uncaught exception…

                                          2024/09/06 01:23:14 stderr at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                                          2024/09/06 01:23:14 stderr at NodeHelper.checkFetchStatus (/opt/magic_mirror/js/node_helper.js:110:9)
                                          2024/09/06 01:23:14 stderr [2024-09-06 01:23:14.687] [ERROR] Calendar Error. Could not fetch calendar: http://localhost:8080/CALDAV/SYNOLOGY_Simon.ics Error: Not Found

                                          2024/09/06 01:23:14 stdout [2024-09-06 01:23:14.671] [LOG] [CALDAV] /opt/magic_mirror/modules/MMM-CalDAV/service/.SYNOLOGY_Simon.ics is not found.

                                          2024/09/06 01:23:14 stdout [2024-09-06 01:23:14.606] [LOG] Create new calendarfetcher for url: http://localhost:8080/CALDAV/SYNOLOGY_Simon.ics - Interval: 3600000
                                          2024/09/06 01:23:14 stdout [2024-09-06 01:23:14.539] [LOG] [CALDAV] Fetching SYNOLOGY_ : caldav …

                                          S M karsten13K 3 Replies Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @caw
                                            last edited by sdetweil

                                            @caw said in MMM-CalDAV:

                                            @sdetweil i dont have a dot in front of the Prefix

                                            module :“MMM-CalDAV”,
                                            config: {
                                            servers: [
                                            {
                                            envPrefix: “SYNOLOGY_”,

                                            2024/09/06 01:23:15 stderr path: ‘/opt/magic_mirror/modules/MMM-CalDAV/service/.SYNOLOGY_Simon.ics’
                                            2024/09/06 01:23:15 stderr syscall: ‘open’,
                                            2024/09/06 01:23:15 stderr code: ‘EACCES’,
                                            2024/09/06 01:23:15 stderr errno: -13,
                                            2024/09/06 01:23:15 stderr at async saveIcs (/opt/magic_mirror/modules/MMM-CalDAV/node_helper.js:76:7) {
                                            2024/09/06 01:23:15 stderr at async Object.writeFile (node:internal/fs/promises:1212:14)
                                            2024/09/06 01:23:15 stderr at async open (node:internal/fs/promises:639:25)
                                            2024/09/06 01:23:15 stderr [2024-09-06 01:23:15.709] [ERROR] Error: EACCES: permission denied, open ‘/opt/magic_mirror/modules/MMM-CalDAV/service/.SYNOLOGY_Simon.ics’
                                            2024/09/06 01:23:15 stderr [2024-09-06 01:23:15.707] [ERROR] Whoops! There was an uncaught exception…

                                            i dont know what caldav wants in its setup,
                                            sorry. you’ll have to wait for @MMRIZE to help

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