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

Can not add more than ONE calendar??



  • I have tries almost everything, looked at youtube and others here in the forum, but I can not find the answer, how do I put some callendars in my MM ? how do I add one or two calendars more ?:

    module: "calendar",
    			header: "Kalender",
    			position: "top_left",
    			config: {
    				calendars: [
    					{
    						symbol: "calendar-check",
    						url: "https://calendar.google.com/calendar/ical/XXXXXXXXXXXX/private-XXXXXXXXXXXXXXXXX/basic.ics"					}
    				]
    			}
    		},
    


  • @ironman_DK it would be

    { 
     module: "calendar",
         config : {
              calendars:[
                    {
                       Cal 1 info
                     },
                     {
                       Cal 2 info
                     }
                ]
         }
    }
    


  • @ironman_DK , I had the same challenge. I would like to add to add another possible solution to @sdetweil 's :

    By just creating additional instances of the calendar module, you can even give each its own header, which I find adds to clarity. You may want to look at my configuration which I posted here (unfortunately still a prototype, still waiting for the glass to arrive 😉 )
    https://forum.magicmirror.builders/topic/12104/glass-on-the-way-but-still-eager-to-share-my-first-try

    So here’s how I configured it:

    		{
    			module: "calendar",
    			header: "Familie",
    			position: "top_left",
    			config: {
    				maximumEntries: "5",
    				calendars: [
    					{
    						symbol: "calendar-check-o ",
    						url: "https://calendar.google.com/calendar/ical/XXXXXXXXXXXXXXXX/basic.ics"
    					}
    				]
    			}
    		},
                    {
                            module: "calendar",
                            header: "Markus",
                            position: "top_left",
                            config: {
    				maximumEntries: "5",
                                    calendars: [
                                            {
                                                    symbol: "calendar-check-o ",
                                                    url: "https://calendar.google.com/calendar/ical/markusXXXXXXXXXXXXX.ics" 
                                            }
                                    ]
                            }
                    },
    
    

    Hope it helps



  • @sdetweil It is not possible to do that, It will fail when I do this are you sure this is the right code ?



  • @ironman_DK here is my calendar setup, with dual calendars…

    		{
    			module: "calendar",
    			disabled:false,
    			position: "top_left",
    			config: {
    				//maximumEntries: 100,
    				tableClass:"foo",
    				fetchInterval: 10*60*1000,
    				calendars: [
    					{
    						symbol: "calendar-check",
    						url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"					
    					},
    					{
    						url: "https://calendar.google.com/calendar/ical/...basic.ics"
    					}
    				]
    			}
    		},
    

Log in to reply