Read the statement by Michael Teeuw here.
Basic Calendar log errors
-
Noob here trying to get the basic calendar to work. I tried several ics links and none work. The screen shows US HOLIDAYS and under that it says No upcoming events. I did a lot of searching on the internet and through the forums. I ended up finding some information on how to check the log files. In here I found the following when restarting MagicMirror:
0|MagicMirror | Launching application. 0|MagicMirror | [23:19:49.314] [LOG] 0|MagicMirror | Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 0|MagicMirror | [23:19:49.325] [LOG] 0|MagicMirror | Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 0|MagicMirror | [23:19:50.208] [LOG] 0|MagicMirror | Whoops! There was an uncaught exception... 0|MagicMirror | [23:19:50.209] [ERROR] 0|MagicMirror | Error: Unknown RRULE property '' 0|MagicMirror | at /home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1191:23 0|MagicMirror | at Array.forEach (<anonymous>) 0|MagicMirror | at parseRrule (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1149:11) 0|MagicMirror | at parseLine (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1132:16) 0|MagicMirror | at Array.map (<anonymous>) 0|MagicMirror | at Function.parseString (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1110:41) 0|MagicMirror | at Function.RRule.fromString (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:2135:32) 0|MagicMirror | at Object.ical.objectHandlers.END (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/node-ical.js:62:23) 0|MagicMirror | at Object.handleObject (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/ical.js:400:41) 0|MagicMirror | at Object.parseICS (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/ical.js:441:20) 0|MagicMirror | [23:19:50.218] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMirror | [23:19:50.219] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issuesThe next to the last line says “Maybe no internet connection.” That is not a problem as everything else on the screen is updating just fine.
This is the link I’m using from the latest calendar config file:
{ module: "calendar", header: "US Holidays", position: "top_left", config: { calendars: [ { symbol: "calendar-check", url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics" } ] } },All of the settings in the calendar.js file are unchanged.
UPDATE:
I grabbed another sd card and and loaded MM on it and am getting the similar errors on a new install as follows:
0|MagicMirror | Launching application. 0|MagicMirror | [00:23:01.865] [LOG] 0|MagicMirror | Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 0|MagicMirror | [00:23:01.911] [LOG] 0|MagicMirror | Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 0|MagicMirror | [00:23:02.474] [LOG] 0|MagicMirror | Whoops! There was an uncaught exception... 0|MagicMirror | [00:23:02.475] [ERROR] 0|MagicMirror | Error: Unknown RRULE property '' 0|MagicMirror | at /home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1191:23 0|MagicMirror | at Array.forEach (<anonymous>) 0|MagicMirror | at parseRrule (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1149:11) 0|MagicMirror | at parseLine (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1132:16) 0|MagicMirror | at Array.map (<anonymous>) 0|MagicMirror | at Function.parseString (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1110:41) 0|MagicMirror | at Function.RRule.fromString (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:2135:32) 0|MagicMirror | at Object.ical.objectHandlers.END (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/node-ical.js:62:23) 0|MagicMirror | at Object.handleObject (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/ical.js:400:41) 0|MagicMirror | at Object.parseICS (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/ical.js:441:20) 0|MagicMirror | [00:23:02.485] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|MagicMirror | [00:23:02.486] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issuesAny idea what this error is and possibly how to fix it so I can get the calendar working again? Thanks for any info!!
John
-
@johntech yes, looks like the calendar data has an empty repeating rule and the library code we use
can’t handle thatedit (nano) the MagicMirror/node_modules/rrule/dist/es5/rrule.js
find (ctrl w)
options.byeaster = Number(value);and add these two lines
case '': break;so it looks like this
case 'BYEASTER': options.byeaster = Number(value); break; case '': break; -
@sdetweil said in Basic Calendar log errors:
> case '': > break;Good!! That fixed the issue of the calendar not displaying , but now it is showing double entries in the list. 2 - Easters, Mother’s Day, President’s day etc.
-
@johntech said in Basic Calendar log errors:
but now it is showing double entries in the list. 2 - Easters, Mother’s Day, President’s day etc.
cause there are two entries in the file
looks like calendarlabs.com is having trouble
-
@sdetweil
Ok. Is it possible to download the file, edit it and use is locally?Thank you for the help!!
John
-
@johntech sure… use the url (change webcal to https)
edit the downloaded file (there are multiples of all the entries)copy the file to the MagixMirror/modules folder (thats where the MM web server is pointing)
then edit the url in the config entry to
“modules/???” // ics filename
-
@sdetweil
Sorry for the misunderstanding but is this what you meant? -
-
@sdetweil
Thank you !!! I wasn’t thinking localhost. Still learning!!
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