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.

    Error with Outlook Calendar

    Scheduled Pinned Locked Moved Troubleshooting
    23 Posts 3 Posters 4.4k Views 3 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.
    • B Offline
      bokchok
      last edited by

      I can’t get an outlook calendar to work with the defualt calendar module. The events just won’t show up. The console error is:

      [2020-10-02 22:45:26.002] [ERROR]  Whoops! There was an uncaught exception...
      [2020-10-02 22:45:26.003] [ERROR]  TypeError: Cannot read property 'iana' of undefined
          at getIanaTZFromMS (/home/pi/MagicMirror/node_modules/node-ical/ical.js:108:30)
          at /home/pi/MagicMirror/node_modules/node-ical/ical.js:175:23
          at Object.DTSTART (/home/pi/MagicMirror/node_modules/node-ical/ical.js:457:32)
          at Object.handleObject (/home/pi/MagicMirror/node_modules/node-ical/ical.js:483:39)
          at Object.parseLines (/home/pi/MagicMirror/node_modules/node-ical/ical.js:534:18)
          at Object.parseICS (/home/pi/MagicMirror/node_modules/node-ical/ical.js:590:18)
          at Object.sync.parseICS (/home/pi/MagicMirror/node_modules/node-ical/node-ical.js:190:15)
          at Object.autodetect.parseICS (/home/pi/MagicMirror/node_modules/node-ical/node-ical.js:221:17)
          at Request._callback (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:79:22)
          at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:185:22)
      

      The config I have for calendar the calendar module is:

                      {
                              module: "calendar",
                              header: "Today",
                              position: "top_left",
                              config: {
                                      calendars: [
                                              {
                                                      //holidays
                                                      symbol: "calendar",
                                                      url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"
                                              },
                                              {
                                                      //NEC
                                                      symbol: "music",
                                                      url: "private_url.ics"
                                              },
                                      ],
                                      maximumEntries: 25,
                                      maximumNumberOfDays: 1,
                                      fade: false,
                                      getRelative: 0,
                                      animationSpeed: 1000,
                              }
                      },
      
      
      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @bokchok
        last edited by

        @bokchok can you show me/send the ics file.

        are you on version 2.13, or the test iCal version?

        I fixed that bug in the node-ical version

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          bokchok @sdetweil
          last edited by

          @sdetweil I’m on 2.13. I went ahead and set you the ics file

          S 1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @bokchok
            last edited by

            @bokchok thanks, will look at it

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @sdetweil
              last edited by sdetweil

              @sdetweil can u verify on 2.13, cause the fix for that is in 2.13

              grep version ~/MagicMirror/package.json

              and how did u get there? install or upgrade?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              B 1 Reply Last reply Reply Quote 0
              • Y Offline
                Yunalescar
                last edited by

                Had same issues.
                had a long search and found the soultion:

                get latest version of ical.js and copy/write it to ~/MagicMirror/node_modules/node-ical.ical.js

                Link : https://raw.githubusercontent.com/jens-maus/node-ical/master/ical.js

                now it works like a charm ;)

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  bokchok @sdetweil
                  last edited by

                  @sdetweil I was having trouble with upgrading, so I saved config.js in a separate directory and did a clean install of MagicMirror two days ago. Everything should be up to date

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    bokchok @Yunalescar
                    last edited by

                    @Yunalescar Worked! Thank you sir

                    S 1 Reply Last reply Reply Quote 0
                    • S Away
                      sdetweil @bokchok
                      last edited by

                      @bokchok but. please, lets fix that… I updated both the node-ical libs and the ical.js libs with the same code to handle windows timezones…

                      we ship node-ical with MM… (new in this release)

                      and I checked the latest 0.12.1

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      S 1 Reply Last reply Reply Quote 0
                      • S Away
                        sdetweil @sdetweil
                        last edited by

                        @bokchok @Yunalescar can u look at the package.json in

                        ~/MagicMirror/node_modules/node-ical/package.json

                        what is the version number? should be 0.12.1 (which has the fix for the error) 0.12.0 does not have the fix…

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        B Y 2 Replies Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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