MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Calendar shows no events

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 2 Posters 2.9k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      lum3n
      last edited by

      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!

      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @lum3n
        last edited by

        @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.

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 2
        • L Offline
          lum3n
          last edited by lum3n

          @strawberry-3-141 Thank you for your answer and sorry for my late reply.

          Good idea, I tried different samples I found online, for example all German holidays.
          Placing it locally results in no events. Using the URL http://ifeiertage.de/ni-sk.ics works. The problem seems to my environment. But I can’t spot it right now cause doing a simple curl works without any problems.

          Is there a way to increase/get any logging of what happens when MM tries to fetch the ics?

          1 Reply Last reply Reply Quote 0
          • L Offline
            lum3n
            last edited by

            I found the mistake. There was something wrong with my lighttpd access configuration.
            Althought using localhost in the url, it seems like MM resolves the hostname or at least the web server thinks he was accessed by its hostname.
            Adding the hostname itself to the access rule did the trick.

            Thanks for the help and regards!

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy