MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. tgeimer
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 5
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Calendar shows "no entries" after MM Update

      I fixed my issue. Some searching led me to this:
      https://github.com/MichMich/MagicMirror/issues/791#issuecomment-289306407
      No dates before 1970 are accepted - but in my birthday calendar I have created birthdays e.g. in 1946…
      Thank you @amcolash

      This is how you can check if this is why your calendar is not working:
      ssh to your pi

      cd /home/pi/MagicMirror
      DIAPLAY=:0 npm start dev
      

      If you see this in the output, you have dates in your calendar before 1970:

      Whoops! There was an uncaught exception...
      Error: dates lower than Thu Jan 01 1970 00:00:00 GMT+0100 (CET) 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:188:22)
          at emitTwo (events.js:106:13)
          at Request.emit (events.js:191:7)
          at Request. (/home/pi/MagicMirror/node_modules/request/request.js:1171: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
      

      What I did to fix my birthday calendar: Edit this file

      /home/pi/MagicMirror/node_modules/rrule-alt/lib/rrule.js
      

      Go to line 56 or search for the first occurance of “ORDINAL_BASE” and change this line:

      ORDINAL_BASE: new Date(1970, 0, 1),
      

      set it to a lower year like 1900.
      Then restart your magic mirror (pm2 restart mm)

      And it’s (hopefully) GREAT AGAIN :-D :clap:

      posted in Troubleshooting
      tgeimerT
      tgeimer
    • 1 / 1