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.

    Basic Calendar log errors

    Scheduled Pinned Locked Moved Solved Troubleshooting
    9 Posts 2 Posters 1.6k 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.
    • J Offline
      johntech
      last edited by johntech

      Noob here trying to get the basic calendar to work. I tried several ics links and none work. The screen shows US HOLIDAYS and under that it says No upcoming events. I did a lot of searching on the internet and through the forums. I ended up finding some information on how to check the log files. In here I found the following when restarting MagicMirror:

      0|MagicMirror  | Launching application.
      0|MagicMirror  | [23:19:49.314] [LOG]
      0|MagicMirror  | Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
      0|MagicMirror  | [23:19:49.325] [LOG]
      0|MagicMirror  | Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      0|MagicMirror  | [23:19:50.208] [LOG]
      0|MagicMirror  | Whoops! There was an uncaught exception...
      0|MagicMirror  | [23:19:50.209] [ERROR]
      0|MagicMirror  | Error: Unknown RRULE property ''
      0|MagicMirror  |     at /home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1191:23
      0|MagicMirror  |     at Array.forEach (<anonymous>)
      0|MagicMirror  |     at parseRrule (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1149:11)
      0|MagicMirror  |     at parseLine (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1132:16)
      0|MagicMirror  |     at Array.map (<anonymous>)
      0|MagicMirror  |     at Function.parseString (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1110:41)
      0|MagicMirror  |     at Function.RRule.fromString (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:2135:32)
      0|MagicMirror  |     at Object.ical.objectHandlers.END (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/node-ical.js:62:23)
      0|MagicMirror  |     at Object.handleObject (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/ical.js:400:41)
      0|MagicMirror  |     at Object.parseICS (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/ical.js:441:20)
      0|MagicMirror  | [23:19:50.218] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMirror  | [23:19:50.219] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      
      

      The next to the last line says “Maybe no internet connection.” That is not a problem as everything else on the screen is updating just fine.

      This is the link I’m using from the latest calendar config file:

      {
      			module: "calendar",
      			header: "US Holidays",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						symbol: "calendar-check",
      						url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"					}
      				]
      			}
      		},
      

      All of the settings in the calendar.js file are unchanged.

      UPDATE:

      I grabbed another sd card and and loaded MM on it and am getting the similar errors on a new install as follows:

      0|MagicMirror  | Launching application.
      0|MagicMirror  | [00:23:01.865] [LOG]    
      0|MagicMirror  | Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
      0|MagicMirror  | [00:23:01.911] [LOG]    
      0|MagicMirror  | Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      0|MagicMirror  | [00:23:02.474] [LOG]    
      0|MagicMirror  | Whoops! There was an uncaught exception...
      0|MagicMirror  | [00:23:02.475] [ERROR]  
      0|MagicMirror  | Error: Unknown RRULE property ''
      0|MagicMirror  |     at /home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1191:23
      0|MagicMirror  |     at Array.forEach (<anonymous>)
      0|MagicMirror  |     at parseRrule (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1149:11)
      0|MagicMirror  |     at parseLine (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1132:16)
      0|MagicMirror  |     at Array.map (<anonymous>)
      0|MagicMirror  |     at Function.parseString (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1110:41)
      0|MagicMirror  |     at Function.RRule.fromString (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:2135:32)
      0|MagicMirror  |     at Object.ical.objectHandlers.END (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/node-ical.js:62:23)
      0|MagicMirror  |     at Object.handleObject (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/ical.js:400:41)
      0|MagicMirror  |     at Object.parseICS (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/ical.js:441:20)
      0|MagicMirror  | [00:23:02.485] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMirror  | [00:23:02.486] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      
      
      

      Any idea what this error is and possibly how to fix it so I can get the calendar working again? Thanks for any info!!

      John

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

        @johntech yes, looks like the calendar data has an empty repeating rule and the library code we use
        can’t handle that

        edit (nano) the MagicMirror/node_modules/rrule/dist/es5/rrule.js

        find (ctrl w)

        options.byeaster = Number(value);
        

        and add these two lines

             case '':
                break;
        

        so it looks like this

                    case 'BYEASTER':
                        options.byeaster = Number(value);
                        break;
                   case '':
        		break;
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          johntech @sdetweil
          last edited by johntech

          @sdetweil said in Basic Calendar log errors:

          >  case '':
          > 		break;
          
          

          Good!! That fixed the issue of the calendar not displaying , but now it is showing double entries in the list. 2 - Easters, Mother’s Day, President’s day etc.

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

            @johntech said in Basic Calendar log errors:

            but now it is showing double entries in the list. 2 - Easters, Mother’s Day, President’s day etc.

            cause there are two entries in the file

            looks like calendarlabs.com is having trouble

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              johntech @sdetweil
              last edited by

              @sdetweil
              Ok. Is it possible to download the file, edit it and use is locally?

              Thank you for the help!!

              John

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

                @johntech sure… use the url (change webcal to https)
                edit the downloaded file (there are multiples of all the entries)

                copy the file to the MagixMirror/modules folder (thats where the MM web server is pointing)

                then edit the url in the config entry to

                “modules/???” // ics filename

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                J 1 Reply Last reply Reply Quote 1
                • J Offline
                  johntech @sdetweil
                  last edited by

                  @sdetweil
                  Sorry for the misunderstanding but is this what you meant?

                  url: “https://modules/US_Holidays.ics”

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

                    @johntech http://localhost:8080/…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    J 1 Reply Last reply Reply Quote 0
                    • J Offline
                      johntech @sdetweil
                      last edited by

                      @sdetweil
                      Thank you !!! I wasn’t thinking localhost. Still learning!!

                      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