Calendar stuck at 'Loading...' after 2.1.1 update
sithlordhood last edited by yawns
So since the update I have had nothing but problems, first the black screen on boot (I managed to get rid of this somehow by running ‘git pull && npm install’ for a second time…
Now however when I boot MM all of the modules load except the Calendar (default module).
When I boot MM the following log is shown:
Starting MagicMirror: v2.1.1 Loading config ... Loading module helpers ... No helper found for module: alert. No helper found for module: clock. Initializing new module helper ... Module helper loaded: calendar No helper found for module: currentweather. No helper found for module: weatherforecast. No helper found for module: calendar_monthly. Initializing new module helper ... Module helper loaded: MMM-NetworkScanner Initializing new module helper ... Module helper loaded: newsfeed Initializing new module helper ... Module helper loaded: MMM-Traffic Initializing new module helper ... Module helper loaded: mmm-systemtemperature Initializing new module helper ... Module helper loaded: updatenotification All module helpers loaded. Starting server on port 8080 ... Starting server op port 8080 ... Server started ... Connecting socket for: calendar Starting node helper for: calendar Connecting socket for: MMM-NetworkScanner Starting module: MMM-NetworkScanner Connecting socket for: newsfeed Starting module: newsfeed Connecting socket for: MMM-Traffic MMM-Traffic helper started ... Connecting socket for: mmm-systemtemperature Starting node helper: mmm-systemtemperature Connecting socket for: updatenotification Sockets connected & modules started ... (node:3999) DeprecationWarning: sys is deprecated. Use util instead. Launching application. Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/MY EMAIL/private-MY APIKEY/basic.ics - Interval: 300000 MMM-NetworkScanner received CONFIG Create new news fetcher for url: http://feeds.bbci.co.uk/news/rss.xml?edition=uk - Interval: 300000 Whoops! There was an uncaught exception... Error: dates lower than Thu Jan 01 1970 00:00:00 GMT+0000 (BST) are not supported at Object.toOrdinal (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:105:15) at Iterinfo.rebuild (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:1409:35) at RRule._iter (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:978:10) at RRule.between (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:794:21) at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:122:24 at Request._callback (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/node-ical.js:11:5) at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:186:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request. (/home/pi/MagicMirror/node_modules/request/request.js:1081:10) MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
I have downloaded the master file from git and replaced the modules/default on the pi with these but no change.
I know the calendar url is fine as when I access via web browser it downloads the .ics
Can anyone help at all?
strawberry 3.141 last edited by
Error: dates lower than Thu Jan 01 1970 00:00:00 GMT+0000 (BST) are not supported
sithlordhood last edited by
This has fixed my problem - thanks very much!
Chadeus last edited by
Did you alter the rrule files and set them to 1900 to make them work? I reviewed my Google Calendar private url ics file and it looks like it doesn’t go before 1970. Now when I have MM2 running (2.1.1) it doesn’t give me the 1970 error but continues to show “loading”. Is there a fix for using private url? It works in the previous MM that I have installed on a separate Pi that I have yet to update.
Chadeus last edited by Chadeus
@Chadeus Replying to myself, but wanted this for the community.
It was about fixing the rrule-alt file and I changed it from 1970 to 1900 per the above link. Specifically: /home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js
Change: ORDINAL_BASE: new Date(1900, 0, 1), /* changed from 1970 to 1900 */
Also, I generated a fresh private url for my Google Calendar. Not sure if that plays into it or not, but it worked after the changes plus getting a new url.