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-GoogleCalendar Not Loading

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    16 Posts 6 Posters 7.8k Views 6 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
      tommertron
      last edited by

      Hi there,

      So I’ve gone through the installation instructions, created credentials etc, and ran authorize.js, which prints out a list of 10 events from my default google calendar in the terminal (so I am sure it must be authorizing okay.) But for the life of me, I cannot get MMM-GoogleCalendar to load! Here is the relevant section of my config.js screen (with the ID altered.):

      		{
      			module: 'MMM-GoogleCalendar',
      			header: "Family Events",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						symbol: "calendar-week",
      						calendarID: "familyXXXXXXXXXXXXX"
      					},
      				],
      			}
      		},
      

      I’ve refreshed MM a bunch of times and done a full reboot, and no luck. When I take the above out, and put the default calendar module in its place, it renders fine. Any ideas?

      P 1 Reply Last reply Reply Quote 0
      • P Offline
        philie @tommertron
        last edited by

        @tommertron
        Exactly the same situation here. The oAuth flow worked well, upcoming appointments appear on the CLI, but the module itself does not load. Have you got any further? one question: the calendar ID seems to be simply the gmail address… is that so? Thank you for your cooperation.

        2024-01-10 23_51_01-philie@magicmirror_ ~_MagicMirror.png

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

          @philie can you show the messages at mm startup

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            philie @sdetweil
            last edited by

            @sdetweil
            Update from my side right after the post of the message (I had to wait until the post was approved by the forum:
            A simple restart of the Raspberry did the trick. It now works as expected. Side node: in my case, the calendar ID is simply the gmail address

            1 Reply Last reply Reply Quote 0
            • N Offline
              nuggetron22
              last edited by

              I’m getting the error in MM saying:
              “Error in the MMM-GoogleCalendar module. Check logs for more details.”

              When I check the log, it shows a FetchError saying that the oauth token failed, reason: connect ETIMEDOUT. I’ve included the clip from my logs with some of my calendar info redacted. I posted it on the Github module as an issue as well.

              I haven’t been able to get any of my calendars to show up using the standard calendar module or the MMM-CalendarExt3 module either. They never load. I can’t tell if it’s a Google problem, a config problem, a MagicMirror problem, or a limitation with my RPi Zero 2 W.

              0|MagicMirror  | Warning: vkCreateInstance: Found no drivers!
              0|MagicMirror  | Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
              0|MagicMirror  |     at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
              0|MagicMirror  |     at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
              0|MagicMirror  |     at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
              0|MagicMirror  |     at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
              0|MagicMirror  |     at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
              0|MagicMirror  | [24.02.2024 22:38.48.439] [ERROR] MMM-GoogleCalendar Error. Could not fetch calendar:  [calendar_ID] FetchError: request to https://oauth2.googleapis.com/token failed, reason: connect ETIMEDOUT 2607:f8b0:4025:803::200a:443
              0|MagicMirror  |     at ClientRequest.<anonymous> (/home/jwigington22/MagicMirror/modules/MMM-GoogleCalendar/node_modules/node-fetch/lib/index.js:1491:11)
              0|MagicMirror  |     at ClientRequest.emit (node:events:514:28)
              0|MagicMirror  |     at TLSSocket.socketErrorListener (node:_http_client:501:9)
              0|MagicMirror  |     at TLSSocket.emit (node:events:514:28)
              0|MagicMirror  |     at emitErrorNT (node:internal/streams/destroy:151:8)
              0|MagicMirror  |     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
              0|MagicMirror  |     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
              0|MagicMirror  |   type: 'system',
              0|MagicMirror  |   errno: 'ETIMEDOUT',
              0|MagicMirror  |   code: 'ETIMEDOUT',
              0|MagicMirror  |   config: {
              0|MagicMirror  |     method: 'POST',
              0|MagicMirror  |     url: 'https://oauth2.googleapis.com/token',
              0|MagicMirror  |     data: 'refresh_token=[REDACTED]=refresh_token',
              0|MagicMirror  |     headers: {
              0|MagicMirror  |       'Content-Type': 'application/x-www-form-urlencoded',
              0|MagicMirror  |       'User-Agent': 'google-api-nodejs-client/8.5.2',
              0|MagicMirror  |       'x-goog-api-client': 'gl-node/18.17.1 auth/8.5.2',
              0|MagicMirror  |       Accept: 'application/json'
              0|MagicMirror  |     },
              0|MagicMirror  |     paramsSerializer: [Function: paramsSerializer],
              0|MagicMirror  |     body: 'refresh_token=[REDACTED=refresh_token',
              0|MagicMirror  |     validateStatus: [Function: validateStatus],
              0|MagicMirror  |     responseType: 'json'
              0|MagicMirror  |   }
              0|MagicMirror  | }
              
              S M 2 Replies Last reply Reply Quote 0
              • S Offline
                sdetweil @nuggetron22
                last edited by

                @nuggetron22 I do not know about that module.
                but Ext3 gets its events from the default calendar. it does not read from the source.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                N 1 Reply Last reply Reply Quote 0
                • N Offline
                  nuggetron22 @sdetweil
                  last edited by

                  @sdetweil

                  Something seems to be wrong with v2.26.0 on how it reads in calendars. I’m not much of a coder for stuff like this, but I stumbled my way through reverting to v2.23.0 and the basic calendar module can now read my Google Private iCal file where it couldn’t on v2.26.0. I’ll try it with Ext3 and the GoogleCalendar module tomorrow and see if they work too.

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

                    @nuggetron22

                    1. ETIMEDOUT generally happens when the server is busy, or the connection is extraordinarily slow. To prevent it, keep alive header is recommended. (Not sure that is the reason, anyway.)

                    2. CX3* can also be fed from MMM-GoogleCalendar. But by compatibility issues due to unmatched format, broadcasts from MMM-GoogleCalendar should be converted before consumption.

                    3. You can alternatively try MMM-CalDAV + default calendar module instead of MMM-GoogleCalendar if you still have issues.

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

                      @nuggetron22 yes 2.26 has a problem w calendar parser

                      do thia

                      cd ~/MagicMirror
                      npm install node-ical@0.16.1
                      

                      restart MagicMirror

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      N 1 Reply Last reply Reply Quote 0
                      • N Offline
                        nuggetron22 @sdetweil
                        last edited by

                        @sdetweil
                        I’ve reverted back to MM v2.23.0 and got this to work. I’m also trying to integrate it with MMM-CalenderExt3 and having some difficulties there. Still learning what needs to be updated to make them talk to each other.

                        I’ll try going back to v2.26.0 and install the node-ical@0.16.1 and see if that fixes the calendar parser issue. Thanks for the quick replies all!

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

                          @nuggetron22 calendar Ext3 gets its info from the default calendar.

                          so the url goes there. get it working first
                          then comment out it’s position property

                          then add Ext3 and customize

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • N Offline
                            nuggetron22
                            last edited by

                            Alright, I went back to v2.26.0 and tried the

                            cd ~/MagicMirror
                            npm install node-ical@0.16.1
                            

                            but it didn’t resolve my calendar issues. I was getting all of my Google Calendars, whether in the default or the MMM-GoogleCalendar module, on v2.23.0. I couldn’t get my calendars on v2.26.0, v2.25.0, or v2.24.0. They all gave me ETIMEDOUT errors during the Fetch.

                            Back to v2.23.0 and I can get all of my Google Calendar either in the default calendar module or the MMM-GoogleCalendar module.

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

                              @nuggetron22 yes, this is probably a fetch problem in electron.
                              seems it gets confused when there is an ipv6 and an ipv4 address on the network interface and demands connection a certain way…

                              others have had success disabling the ipv6 address on their pi… as its only inside the house, you’ll likely never exceed the number of devices…

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                sil3ntstorm @nuggetron22
                                last edited by sil3ntstorm

                                @nuggetron22
                                I have the same problem with my Google Calendar, how do I get version 2.23.0?
                                Do I have to set up the SD card from scratch or can I go from version 2.26.0 to 2.23.0 in a simple way?

                                What’s the best way to go about downgrading the magic mirror software but keeping all modules intact?

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

                                  @sil3ntstorm do

                                  cd ~/MagicMirror
                                  git fetch --all --tags
                                  rm package-lock.json
                                  git checkout tags/v2.23.0 -b temp_branch
                                  rm -rf node_modules 
                                  rm _rf ../fonts/node_modules
                                  rm -rf ../vendor/node_modules
                                  npm run install-mm
                                  

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 1
                                  • S Offline
                                    sil3ntstorm
                                    last edited by sil3ntstorm

                                    @sdetweil

                                    You’re incredible, it worked straight away. Thank you very much for the quick help.
                                    The calendar is working again, Netatmo is still causing problems, but first I’ll see if I can find what the problem is.
                                    Thanks again

                                    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