MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.

Default calendar shows no items when a series is in the calendar

  • Dear,

    i am using MM version 2.8.0 with the default calendar. Because the module is not able to get my caldav directly i download it via curl into a locally file and in the config of the calendar i am just pointing to the local caldav like this:

    			module: "calendar",
    			header: "Chaoskalender",
    			position: "top_left",
    				config: {
    					colored: false,
    					coloredSymbolOnly: false,
    				calendars: [
    					url: "",
    					symbol: "calendar",

    Works good so far BUT as soon as i create a series of events i get following error messages:

    No toISOString function in curr.start 00)":20190909T164500
    Whoops! There was an uncaught exception...
    TypeError: event.start.getFullYear is not a function
        at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:270:33
        at Request._callback (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/node-ical.js:18:4)
        at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:185:22)
        at Request.emit (events.js:189:13)
        at Request. (/home/pi/MagicMirror/node_modules/request/request.js:1161:10)
        at Request.emit (events.js:189:13)
        at IncomingMessage. (/home/pi/MagicMirror/node_modules/request/request.js:1083:12)
        at Object.onceWrapper (events.js:277:13)
        at IncomingMessage.emit (events.js:194:15)
        at endReadableNT (_stream_readable.js:1103:12)
    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:

    In outlook, on the iphone or even in the groupware it is displayed perfectly without any issues.
    So if anyone has an idea or solution to fix this issue i would be very glad in getting help here because i don´t have any ideas anymore.

    Thanks in advance

  • @iceythegreatest

    looks like the caldav to ics doesn’t produce the info in the format the latest code expects. (ISOStrings)

    i think this is another bug. I suggest you open an issue on github for MagicMirror so someone can look at it eventually. (This is all volunteer, and anyone can propose a fix)

    comment in calendarfetcher.js is

    // ical.js started returning recurrences and exdates as ISOStrings without time information.

Log in to reply