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-CalendarExt3 stopped working

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    14 Posts 3 Posters 4.5k Views 3 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.
    • R Offline
      redink
      last edited by redink

      I updated Magic Mirror today and my calendar is no longer working.

      Here’s the error that I get

      [02.01.2024 17:08.23.640] [ERROR] Calendar Error. Could not fetch calendar:  https://calendar.google.com/calendar/ical/xxxxx/basic.ics TypeError: fetch failed
          at Object.fetch (node:internal/deps/undici/undici:11576:11)
          at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
        cause: ConnectTimeoutError: Connect Timeout Error
            at onConnectTimeout (node:internal/deps/undici/undici:8522:28)
            at node:internal/deps/undici/undici:8480:50
            at Immediate._onImmediate (node:internal/deps/undici/undici:8511:13)
            at process.processImmediate (node:internal/timers:476:21) {
          code: 'UND_ERR_CONNECT_TIMEOUT'
      

      And here’s my config

        {
          module: "MMM-CalendarExt3",
          position: "bottom_bar",
          title: "",
          config: {
            mode: "week",
            instanceId: "basicCalendar",
            locale: 'en-EN',
            weekIndex: 0,
            weeksInView: 4,
            maxEventLines: 5,
            firstDayOfWeek: 0,
            fontSize: "22px",
            eventTimeOptions: {
              hour12: false,
              hour: "2-digit",
              minute: "2-digit"
            },
            useSymbol: false,
            calendarSet: ['School', 'Family'],
          }
        },
      
      
        {
          module: "calendar",
          config: {
            broadcastPastEvents: true, // <= IMPORTANT to see past events
            calendars: [
              {
                name: "Family",
                url: "https://calendar.google.com/calendar/ical/xxxxxxxxxxxx/basic.ics",
                color: "green"
      
              },
              {
                name: "School",
                url: "https://calendar.google.com/calendar/ical/xxxxxxxxxx%40group.calendar.google.com/public/basic.ics",
                color: "blue",
                filter: (event) =>{
                  if (event.title.search("......") > -1) {
                    return true
                  } else {
                    return false
                  }
                },
              }
            ]
          },
        },
      

      I tested both calendar URLs and they do download the ICS file just fine. I’d appreciate any help.

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

        @redink could you try the test fix here

        https://github.com/MagicMirrorOrg/MagicMirror/issues/3329#issuecomment-1874330142

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @redink It seems not related to the CX3 module, rather than deep, the default calendar fetch issue.

          1 Reply Last reply Reply Quote 0
          • R Offline
            redink @sdetweil
            last edited by

            @sdetweil I must be missing something, I don’t see what file this code should go in.

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

              @redink doah! I updated post there

              calendarfetcher.js

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              R 1 Reply Last reply Reply Quote 1
              • R Offline
                redink @sdetweil
                last edited by

                @sdetweil Thank you, but that didn’t seem to help. I use this script to update MM https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh

                So, I wonder if something isn’t getting updated.

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

                  @redink can u send me the ~/MagicMirror/installers/upgrade.log

                  ny userid at gmail

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  R 1 Reply Last reply Reply Quote 0
                  • R Offline
                    redink @sdetweil
                    last edited by

                    @sdetweil thanks for taking the time. It’s sent.

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

                      @redink so, the upgrade went perfectly. no issues.

                      not sure what is going on yet.

                      can you show output of

                      ip addr
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      R 1 Reply Last reply Reply Quote 0
                      • R Offline
                        redink @sdetweil
                        last edited by redink

                        @sdetweil

                        1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
                            link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
                            inet 127.0.0.1/8 scope host lo
                               valid_lft forever preferred_lft forever
                            inet6 ::1/128 scope host
                               valid_lft forever preferred_lft forever
                        2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
                            link/ether b8:27:eb:ee:09:64 brd ff:ff:ff:ff:ff:ff
                        3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
                            link/ether 00:0f:60:04:20:d4 brd ff:ff:ff:ff:ff:ff
                            inet 192.168.1.100/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
                               valid_lft 45176sec preferred_lft 34376sec
                            inet6 fe80::3e7d:5421:775:6ad0/64 scope link
                               valid_lft forever preferred_lft forever
                        
                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @redink
                          last edited by

                          @redink can you use the Raspi os config to turn off ipv6 addressing for this adapter?

                          inet6 fe80::3e7d:5421:775:6ad0/64 scope link

                          one of the workarounds deals with incorrectly picking the network address to connect with given the client network…

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          R 1 Reply Last reply Reply Quote 0
                          • R Offline
                            redink @sdetweil
                            last edited by

                            @sdetweil while messing with raspi-config over ssh, magicmirror lost connection to my wifi. I had to connect a keyboard and reconnect. But, before going back to your last suggestion I did two other things. I updated pm2 (as suggested by some other post). And in the browser console I noticed that I had an error about not being able to locate “CX3_shared.mjs”. I checked the MMM-CalendarExt3 repo, and found that file CX3_Shared/CX3_shared.mjs, which for some reason wasn’t getting pulled by a git pull. I manually copied it in, and the calendar sort of started working.

                            I should have paid better attention to the documentation, because I would have seen that I needed to run git submodule update --init --recursive to update the submodule.

                            The reason I say “sort of” is because my family calendar doesn’t show some repeating events, but I need to dig deeper into that.

                            I really appreciate all your help.

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

                              @redink the submodule problem is because you didn’t run npm install on the Ext3 module.

                              ext3 gets its events from the default calendar.

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              R 1 Reply Last reply Reply Quote 0
                              • R Offline
                                redink @sdetweil
                                last edited by

                                @sdetweil yeah, i probably just did a git pull

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