Read the statement by Michael Teeuw here.
Calendar not loading after update to 2.26
-
@sdetweil, I checked the browser log. At first, I saw errors about not finding the custom.css.
So I created one from the sample css file. Now I only see the remaining issue.
Any idea? Should I consider a fresh install instead?
-
@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
-
@avano ok, no crashes in the browser side…
-
@avano can u show the cal config, just xxx out the url
-
@sdetweil, do you mean from the config.js? If so, it is in the first post of this thread.
-
@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
-
@avano alomao try this
cd ~/MagicMirror npm install electron@28.1.1
-
@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...
-
@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; });
-
@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; });