Read the statement by Michael Teeuw here.
My Calendar Woes
-
@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