MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

Adding Multiple Calendars



  • Hello,
    I can’t seem to get 2 calendars working.
    I added my google calendars which works fine, but I want to add the default US-Holidays calendar back in and it won’t load it. I have tried searching online, and copying other’s code, but I don’t know what is wrong.
    Here is the code:

    {
    			module: "calendar",
    			header: "Calendar",
    			position: "top_left",
    			config: {
    				calendars: [
    					{
    						symbol: "calendar-check",
    						url: "https://calendar.google.com/calendar/ical/XXXMYNAMEXXX%40gmail.com/private-XXXPRIVATEIDXXX/basic.ics",		
    					},
    					{
    						symbol: "calendar-check",
    						url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics",					
    					},
    				]
    			}
    		},
    

    Thanks for reading.


  • Module Developer

    @reachforthestars said in Adding Multiple Calendars:

    webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics

    I don’t know it’s right solution, but,
    Worthy to try to change webcall:// to http://.



  • @reachforthestars the default calendar has been generating errors lately cause the data changed

    to fix in the short term

    edit MagicMirror/node_modules/rrule/dist/es5/rrule.js

    insert the two lines shown below

                case 'BYEASTER':
                    options.byeaster = Number(value);
                    break;
                case '':                                        // add this
                    break;                                      // add this
                default:
    

    also, the calendar file has duplicate entries so u will see 2 entries for all events


Log in to reply