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.

    Calendar not loading after update to 2.26

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    22 Posts 2 Posters 7.5k Views 2 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 @avano
      last edited by

      @avano ok, no crashes in the browser side…

      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 @avano
        last edited by

        @avano can u show the cal config, just xxx out the url

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • A Offline
          avano
          last edited by

          @sdetweil, do you mean from the config.js? If so, it is in the first post of this thread.

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

            @avano said in Calendar not loading after update to 2.26:

                                        limitDays: 30,
                                        maximumEntries: 15,
                                        wrapEvents: true,
                                        hidePrivate: true
            

            can u comment these out , add // in front

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @avano alomao try this

              cd ~/MagicMirror
              npm install electron@28.1.1
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                avano @sdetweil
                last edited by

                @sdetweil I tried both the above suggestions, but no change.

                However, I enabled the DEBUG mode and saw that some events in my calendar took a lot longer to be processed. These events are open-ended events in my Google calendar. They look like the below extract. So I removed them temporarily.

                I no longer get the Warning: vkCreateInstance: Found no drivers!

                The calendar now loads.
                But I’ll try to re-create them and see if they are formatted the same way.

                [06.01.2024 17:35.14.090] [DEBUG] Event:
                {"type":"VEVENT","params":[],"start":"2021-01-19T13:00:00.000Z","datetype":"date-time","end":"2021-01-19T14:00:00.000Z","rrule":{"_cache":{"all":false,"before":[],"after":[],"between":[]},"origOptions":{"tzid":"Europe/Paris","dtstart":"2021-01-19T13:00:00.000Z","freq":0,"wkst":{"weekday":1}},"options":{"freq":0,"dtstart":"2021-01-19T13:00:00.000Z","interval":1,"wkst":1,"count":null,"until":null,"tzid":"Europe/Paris","bysetpos":null,"bymonth":[1],"bymonthday":[19],"bynmonthday":[],"byyearday":null,"byweekno":null,"byweekday":null,"bynweekday":null,"byhour":[13],"byminute":[0],"bysecond":[0],"byeaster":null}},"dtstamp":"2024-01-06T16:34:29.000Z","uid":"clhj8p9p6gqmab9ncoq3ab9k68p3ab9pcgq6cb9kcgr3acpn70o62dpkcg@google.com","created":"2021-01-19T15:21:58.000Z","lastmodified":"2021-01-19T15:22:30.000Z","sequence":"1","status":"CONFIRMED","summary":"Event xyz","transparency":"OPAQUE","method":"PUBLISH"}
                [06.01.2024 17:35.14.091] [DEBUG] start: Tue Jan 19 2021 14:00:00 GMT+0100 (Central European Standard Time)
                [06.01.2024 17:35.14.091] [DEBUG] end:: Tue Jan 19 2021 15:00:00 GMT+0100 (Central European Standard Time)
                [06.01.2024 17:35.14.091] [DEBUG] duration: 3600000
                [06.01.2024 17:35.14.092] [DEBUG] title: Event xyz
                [06.01.2024 17:35.14.092] [DEBUG] Search for recurring events between: Sat Jan 06 2024 17:35:14 GMT+0100 (Central European Standard Time) and Sat Jan 04 2025 23:59:59 GMT+0100 (Central European Standard Time)
                [06.01.2024 17:35.40.211] [DEBUG] Title: Event xyz, with dates: [null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
                ... I removed about 8000 "nulls" here...
                null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]
                [06.01.2024 17:35.40.243] [DEBUG] event.recurrences: undefined
                [06.01.2024 17:35.40.243] [DEBUG] Processing entry... 
                
                S 1 Reply Last reply Reply Quote 1
                • S Offline
                  sdetweil @avano
                  last edited by

                  @avano cool… any chance u can find the VEVENT in the downloaded ICS file

                  curl -sL cal_url >someicsfile.txt

                  my fix should remove all those null entries…

                  and the vulcan thing is a bug in electron putting out a spurious message

                  can u edit

                  ~/MagicMirror/modules/default/calendar/calendarfetcherutils.js
                  

                  and look at line 293

                  					let dates = rule.between(pastLocal, futureLocal, true, limitFunction);
                  					Log.debug(`Title: ${event.summary}, with dates: ${JSON.stringify(dates)}`);
                  					dates = dates.filter((d) => {   // my fix starts here    
                  						if (JSON.stringify(d) === "null") return false;
                  						else return true;
                  					});
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    avano
                    last edited by

                    @sdetweil I put back an open-ended event into my calendar, here is the VEVENT: (the calendar no longer loads, and the warning is back.)

                    BEGIN:VEVENT
                    DTSTART;TZID=Europe/Zurich:20240119T100000
                    DTEND;TZID=Europe/Zurich:20240119T110000
                    RRULE:FREQ=YEARLY
                    DTSTAMP:20240107T194354Z
                    UID:abcxyz4@google.com
                    CREATED:20240107T194031Z
                    LAST-MODIFIED:20240107T194031Z
                    SEQUENCE:0
                    STATUS:CONFIRMED
                    SUMMARY:Event xyz
                    TRANSP:OPAQUE
                    END:VEVENT
                    

                    I looked into ~/MagicMirror/modules/default/calendar/calendarfetcherutils.js line 293, it looks like I have your fix already:

                    Log.debug(`Search for recurring events between: ${pastLocal} and ${futureLocal}`);
                    let dates = rule.between(pastLocal, futureLocal, true, limitFunction);
                    Log.debug(`Title: ${event.summary}, with dates: ${JSON.stringify(dates)}`);
                    dates = dates.filter((d) => {
                    	if (JSON.stringify(d) === "null") return false;
                    	else return true;
                    });
                    
                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      avano
                      last edited by

                      Apologies, I must have refreshed something since my last post, because the calendar now loads including my open-ended event.
                      I updated my config.js back to it’s initial state (i.e. uncommenting all our tests, removed DEBUG mode), and I started the app with PM2 instead of “npm start”, but I can’t think of any other change I made.

                      Do you want me to run some more tests to try and identify the actual issue?
                      In any case, thanks for all your help.

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

                        @avano no. I’ll look at the event and set it back to 2013 start.

                        I put in the fix cause there is a bug in rule with old events, where the count has expired…

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