Calendar shows no events



  • Hello,

    I installed MM2 cloning it from the GitHub repo. I want to display events from multiple ical calendars.
    Because my collaboration server uses a self signed certificate I provide the ics files via a local webserver.

    The problem I have is that the interface always says that there are no events, no matter which ics file I try.

    My config looks like this:

    {
                            module: "calendar",
                            header: "Kalender",
                            position: "bottom_left",
                            config: {
                                    calendars: [
                                            {
                                                    url: 'http://localhost/calendars/Calendar.ics',
                                                    symbol: 'archive'
                                            }
                                    ],
                                    fetchInterval: 60000
                            }
                    },
    

    The application starts without any errors.

    Starting MagicMirror: v2.1.2
    Loading config ...
    Loading module helpers ...
    No helper found for module: alert.
    Initializing new module helper ...
    Module helper loaded: updatenotification
    No helper found for module: clock.
    Initializing new module helper ...
    Module helper loaded: calendar
    No helper found for module: compliments.
    No helper found for module: currentweather.
    No helper found for module: weatherforecast.
    Initializing new module helper ...
    Module helper loaded: newsfeed
    All module helpers loaded.
    Starting server on port 8081 ... 
    Server started ...
    Connecting socket for: updatenotification
    Connecting socket for: calendar
    Starting node helper for: calendar
    Connecting socket for: newsfeed
    Starting module: newsfeed
    Sockets connected & modules started ...
    
    Ready to go! Please point your browser to: http://localhost:8081
    
    Create new calendar fetcher for url: http://localhost/calendars/Calendar.ics - Interval: 60000
    

    Running the debug.js shows the following:

    Create fetcher ...
    Create fetcher done! 
    []
    ------------------------------------------------------------
    

    It seems like it can’t parse the file which looks as follows e.g.:

    BEGIN:VEVENT
    UID:1f38f412-f257-4094-8df5-468caaca2332
    SUMMARY:Do some stuff
    ORGANIZER;CN=John Doe:mailto:john@doe.com
    DTSTART;VALUE=DATE:20170715
    DTEND;VALUE=DATE:20170716
    STATUS:CONFIRMED
    CLASS:PRIVATE
    X-MICROSOFT-CDO-ALLDAYEVENT:TRUE
    X-MICROSOFT-CDO-INTENDEDSTATUS:FREE
    TRANSP:TRANSPARENT
    LAST-MODIFIED:20170710T123051Z
    DTSTAMP:20170710T123051Z
    SEQUENCE:0
    END:VEVENT
    
    

    The file contains a lot more events in the past and the future - also none all-day events.

    The system is a Raspberry 2 Model B running raspbian. I start MM2 as “serveronly” and open the interface from another device.
    Only thing left to mention is that I had to replace node from the repository doing this. Otherwise it wasn’t possible to run “npm install”

    It would be great, if you have an idea.
    Thanks and regards!



  • @lum3n Can you try to use a public online ics file and see if it get parsed correctly? If so download it and make it available through your local server, then try to parse it locally. After that you should know if it is your ics file or there is some issue with your environment somewhere.


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.