• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 3.9k 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.
  • A Offline
    avano
    last edited by Jan 4, 2024, 8:28 PM

    @sdetweil, I checked the browser log. At first, I saw errors about not finding the custom.css.

    log.png

    So I created one from the sample css file. Now I only see the remaining issue.

    Screenshot 2024-01-04 at 21.25.53.png

    Any idea? Should I consider a fresh install instead?

    S 3 Replies Last reply Jan 4, 2024, 9:12 PM Reply Quote 0
    • S Offline
      sdetweil @avano
      last edited by sdetweil Jan 4, 2024, 11:20 PM Jan 4, 2024, 9:12 PM

      @avano its a noise error… if the file doesn’t exist, then its an error when trying to load it, its hard coded in the MM shell web page…

      just create it and the error will go away

      touch ~/MagicMirror/css/custom.css
      

      if u had used my script to install, I would have done that for you

      also many people don’t know how to create a file, …

      so I tell them to add styles there and the file is missing and they don’t know what to do

      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 Jan 4, 2024, 9:12 PM

        @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 Jan 4, 2024, 11:20 PM

          @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 Jan 5, 2024, 2:03 PM

            @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 Jan 5, 2024, 2:07 PM

              @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 Jan 6, 2024, 10:54 PM Reply Quote 0
              • S Offline
                sdetweil @sdetweil
                last edited by Jan 6, 2024, 10:54 PM

                @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 Jan 7, 2024, 7:09 PM Reply Quote 0
                • A Offline
                  avano @sdetweil
                  last edited by Jan 7, 2024, 7:09 PM

                  @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 Jan 7, 2024, 7:19 PM Reply Quote 1
                  • S Offline
                    sdetweil @avano
                    last edited by Jan 7, 2024, 7:19 PM

                    @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 Jan 7, 2024, 8:05 PM

                      @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
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        15/22
                        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