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 stuck at 'Loading...' after 2.1.1 update

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 3 Posters 3.1k Views 5 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.
    • S Offline
      sithlordhood
      last edited by yawns

      So since the update I have had nothing but problems, first the black screen on boot (I managed to get rid of this somehow by running ‘git pull && npm install’ for a second time…

      Now however when I boot MM all of the modules load except the Calendar (default module).

      When I boot MM the following log is shown:

      Starting MagicMirror: v2.1.1
      Loading config ...
      Loading module helpers ...
      No helper found for module: alert.
      No helper found for module: clock.
      Initializing new module helper ...
      Module helper loaded: calendar
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      No helper found for module: calendar_monthly.
      Initializing new module helper ...
      Module helper loaded: MMM-NetworkScanner
      Initializing new module helper ...
      Module helper loaded: newsfeed
      Initializing new module helper ...
      Module helper loaded: MMM-Traffic
      Initializing new module helper ...
      Module helper loaded: mmm-systemtemperature
      Initializing new module helper ...
      Module helper loaded: updatenotification
      All module helpers loaded.
      Starting server on port 8080 ... 
      Starting server op port 8080 ... 
      Server started ...
      Connecting socket for: calendar
      Starting node helper for: calendar
      Connecting socket for: MMM-NetworkScanner
      Starting module: MMM-NetworkScanner
      Connecting socket for: newsfeed
      Starting module: newsfeed
      Connecting socket for: MMM-Traffic
      MMM-Traffic helper started ...
      Connecting socket for: mmm-systemtemperature
      Starting node helper: mmm-systemtemperature
      Connecting socket for: updatenotification
      Sockets connected & modules started ...
      (node:3999) DeprecationWarning: sys is deprecated. Use util instead.
      Launching application.
      Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/MY EMAIL/private-MY APIKEY/basic.ics - Interval: 300000
      MMM-NetworkScanner received CONFIG
      Create new news fetcher for url: http://feeds.bbci.co.uk/news/rss.xml?edition=uk - Interval: 300000
      Whoops! There was an uncaught exception...
      Error: dates lower than Thu Jan 01 1970 00:00:00 GMT+0000 (BST) are not supported
          at Object.toOrdinal (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:105:15)
          at Iterinfo.rebuild (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:1409:35)
          at RRule._iter (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:978:10)
          at RRule.between (/home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js:794:21)
          at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:122:24
          at Request._callback (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/node-ical.js:11:5)
          at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:186:22)
          at emitTwo (events.js:106:13)
          at Request.emit (events.js:191:7)
          at Request. (/home/pi/MagicMirror/node_modules/request/request.js:1081:10)
      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: https://github.com/MichMich/MagicMirror/issues
      

      I have downloaded the master file from git and replaced the modules/default on the pi with these but no change.

      I know the calendar url is fine as when I access via web browser it downloads the .ics

      Can anyone help at all?

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

        @sithlordhood said in Calendar stuck at ‘Loading...’ after 2.1.1 update:

        Error: dates lower than Thu Jan 01 1970 00:00:00 GMT+0000 (BST) are not supported

        see also https://github.com/MichMich/MagicMirror/issues/791

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

        1 Reply Last reply Reply Quote 0
        • S Offline
          sithlordhood
          last edited by

          This has fixed my problem - thanks very much!

          1 Reply Last reply Reply Quote 0
          • C Offline
            Chadeus
            last edited by

            Did you alter the rrule files and set them to 1900 to make them work? I reviewed my Google Calendar private url ics file and it looks like it doesn’t go before 1970. Now when I have MM2 running (2.1.1) it doesn’t give me the 1970 error but continues to show “loading”. Is there a fix for using private url? It works in the previous MM that I have installed on a separate Pi that I have yet to update.

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              Chadeus @Chadeus
              last edited by Chadeus

              @Chadeus Replying to myself, but wanted this for the community.

              It was about fixing the rrule-alt file and I changed it from 1970 to 1900 per the above link. Specifically: /home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js

              Change: ORDINAL_BASE: new Date(1900, 0, 1), /* changed from 1970 to 1900 */

              Also, I generated a fresh private url for my Google Calendar. Not sure if that plays into it or not, but it worked after the changes plus getting a new url.

              1 Reply Last reply Reply Quote 0
              • 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