Read the statement by Michael Teeuw here.
My Calendar Woes
-
Long time user of MM, my calendars have always displayed flawlessly. Since my last update, I can’t seem to display any calendar public or private. I ran PM2 Logs and below is the output. It appears that it can read the IC files but has errors during processing. Any advice would be appreciated!
0|mm | event={“type”:“VEVENT”,“params”:[],“summary”:“Good Friday”,“start”:“20210402”,“datetype”:“date-time”,“end”:“20210402”,“location”:“United States”,“description”:“Visit https://calendarlabs.com/holidays/us/good-friday.php to know more about Good Friday. \n\n Like us on Facebook: http://fb.com/calendarlabs to get updates",“uid”:"5fc727552b61e1606887253@calendarlabs.com”,“dtstamp”:“2020-12-01T23:34:13.000Z”,“status”:“CONFIRMED”,“transparency”:“TRANSPARENT”,“sequence”:“0”}
0|mm | [22.02.2021 08:23.26.068] [DEBUG] start=Fri Apr 02 2021 00:00:00 GMT-0500 (Central Daylight Time) end=Fri Apr 02 2021 00:00:00 GMT-0500 (Central Daylight Time)
0|mm | [22.02.2021 08:23.26.071] [DEBUG] if no tz, guess based on now
0|mm | [22.02.2021 08:23.26.095] [ERROR]
0|mm | Whoops! There was an uncaught exception…
0|mm | [22.02.2021 08:23.26.110] [ERROR]
0|mm | TypeError: Cannot read property ‘guess’ of undefined
0|mm | at getCorrection (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:429:31)
0|mm | at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:378:24
0|mm | at Array.forEach ()
0|mm | at Request._callback (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:102:25)
0|mm | at Request.self.callback (/home/pi/MagicMirror/modules/node_modules/request/request.js:185:22)
0|mm | at Request.emit (events.js:210:5)
0|mm | at Request. (/home/pi/MagicMirror/modules/node_modules/request/request.js:1154:10)
0|mm | at Request.emit (events.js:210:5)
0|mm | at Gunzip. (/home/pi/MagicMirror/modules/node_modules/request/request.js:1076:12)
0|mm | at Object.onceWrapper (events.js:299:28)
0|mm | [22.02.2021 08:23.26.126] [ERROR]
0|mm | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
0|mm | [22.02.2021 08:23.26.152] [ERROR]
0|mm | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues -
@sachin after u did the git pull to update, did u do the npm install to update the dependencies?
-
@sdetweil Thanks. Git pull responded with Already up-to-date. I ran NPM install anyway and have the same results.
-
@sachin can u remove MagicMirror/node_modules folder, and package-lock.json and then run npm install again.
-
@sdetweil Followed your instructions and get a slightly different set of error messages…
0|mm | ATTENTION: default value of option force_s3tc_enable overridden by environment.
0|mm | [22.02.2021 11:14.01.081] [ERROR] Whoops! There was an uncaught exception…
0|mm | [22.02.2021 11:14.01.096] [ERROR] TypeError: Cannot read property ‘guess’ of undefined
0|mm | at getCorrection (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:429:31)
0|mm | at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:378:24
0|mm | at Array.forEach ()
0|mm | at Request._callback (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:102:25)
0|mm | at Request.self.callback (/home/pi/MagicMirror/modules/node_modules/request/request.js:185:22)
0|mm | at Request.emit (events.js:210:5)
0|mm | at Request. (/home/pi/MagicMirror/modules/node_modules/request/request.js:1154:10)
0|mm | at Request.emit (events.js:210:5)
0|mm | at Gunzip. (/home/pi/MagicMirror/modules/node_modules/request/request.js:1076:12)
0|mm | at Object.onceWrapper (events.js:299:28)
0|mm | [22.02.2021 11:14.01.102] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
0|mm | [22.02.2021 11:14.01.108] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues/home/pi/.pm2/logs/sonos-error-1.log last 15 lines:
1|sonos | (node:1010) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:1036) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:967) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:972) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:1024) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:958) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:981) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:1004) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:872) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:955) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:889) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:880) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:901) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:854) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
1|sonos | (node:915) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. -
@sachin weird. same error
lets try this
edit ~/MagicMirror/modules/default/calendar/calendarfetcher.js
change line 17 from
const moment = require("moment");to
const moment = require("moment-timezone");and try again
-
@sdetweil That was it! Thank you so much!
-
@sachin wonder why just for you…
maybe cause your cal doesnt use tz strings just offsets
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