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.

    multiple calendars

    Scheduled Pinned Locked Moved Troubleshooting
    14 Posts 5 Posters 24.4k 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.
    • D Offline
      deadherring
      last edited by paviro

      Hi,

      I’ve got the magic mirror up and running on a Pi3. I got the calendar to work with an exchange .ics. Now I’m trying to add a second calendar (gmail) working.

      This page says that it should be possible:

      The calendar module is one of the default modules of the MagicMirror. This module displays events from a public .ical calendar. It can combine multiple calendars.

      It’s not exactly clear on how to add the second url. I tried a whole bunch of different ways including adding commas etc. Can someone write out for me how it needs to be entered in config.js?

      Thanks.

      config: {
          calendars: [
              {
                  url: 'http://www.calendarlabs.com/templates/ical/US-Holidays.ics',
                  symbol: 'calendar',
              },
          ],
      }
      

      Note from admin: Please use Markdown on code snippets for easier reading!

      andrewchumchalA 1 Reply Last reply Reply Quote 0
      • andrewchumchalA Offline
        andrewchumchal @deadherring
        last edited by andrewchumchal

        @deadherring My Config Looks like this. Hope this helps

        # code block
                        module: 'calendar',
        			header: 'Events',
        			position: 'top_left',
        			config: {
        				calendars: [
        					{
        						symbol: 'calendar-check-o ',
        						url: 'calendar url'
        					},
        					{
        						symbol: 'calendar-plus-o ',
        						url: 'calendar url'
        					},
        					{
        						symbol: 'calendar-plus-o ',
        						url: 'calendar url'
        					},
        					{
        						symbol: 'birthday-cake',
        						url: 'calendar url'
        					},
        					{
        						symbol: 'rocket ',
        						url: 'https://www.google.com/calendar/ical/msacpn523mpjgq0jlooh41eme4%40group.calendar.google.com/public/basic.ics'
        						// Rocket Launch Calendar 
        					}
        				]
        			}
        		},
        
        C 1 Reply Last reply Reply Quote 2
        • D Offline
          deadherring
          last edited by

          That worked! Thanks!

          andrewchumchalA 1 Reply Last reply Reply Quote 0
          • andrewchumchalA Offline
            andrewchumchal @deadherring
            last edited by

            @deadherring
            No problem.

            1 Reply Last reply Reply Quote 0
            • B Offline
              brownco9
              last edited by

              Okay I’ve tried that exactly as it is with my two additional calendars and I can’t get it to show anything but the Holidays one even if I change the order of them listed. I made sure to grab the private Ical along with checking it in the debugger which returns results of calendar items from my personal calendar. Thoughts?

              Mykle1M 1 Reply Last reply Reply Quote 0
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @brownco9
                last edited by

                @brownco9
                Post a copy of that portion of your config.js file here so that people can take a look at it. You’ll likely get an answer quicker that way. Just x-out any private info or keys before you post it. If you care to try again, here is my calendar entry. It SHOULD work if you replace a correct url with mine.

                {
                			module: 'calendar',
                			position: 'top_left',
                			config: {
                			urgency: 0,
                			getRelative: 0,
                			fadePoint: 0.25, // Start on 1/4th of the list.
                				calendars: [
                					{
                						symbol: 'calendar-check-o ',
                						url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
                					},
                					{
                						url: 'https://calendar.google.com/calendar/ical/xxxxxxxxxxxxxxxxxx.com/private-xxxxxxxxxxxxx/basic.ics'
                					},
                				],
                			}
                		},
                

                Create a working config
                How to add modules

                B 1 Reply Last reply Reply Quote 1
                • B Offline
                  brownco9 @Mykle1
                  last edited by yawns

                  @Mykle1

                  module: 'calendar',
                  			header: 'Calendars',
                  			position: 'top_left',
                  			config: {
                  			urgency: 0,
                  			getRelative: 0,
                  				calendars: [
                  					{
                  						symbol: 'calendar-check-o ',
                  						url: 'https://calendar.google.com/calendar/ical/browncxxx.org/private-xxx/basics.ics'
                  					},
                  					{
                  						symbol: 'calendar-check-o ',
                  						url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
                  						
                  					},
                  					{
                  						symbol: 'calendar-check-o ',
                  						url: 'https://calendar.google.com/calendar/ical/browncxxx.com/private-xxx/basics.ics'
                  					},
                  				]
                  			}
                  		},
                  
                  B 1 Reply Last reply Reply Quote 0
                  • B Offline
                    brownco9 @brownco9
                    last edited by

                    @brownco9 I added the urgency and getRelative after seeing yours and it didn’t change.

                    Mykle1M 2 Replies Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @brownco9
                      last edited by

                      @brownco9 said in multiple calendars:

                      I added the urgency and getRelative after seeing yours and it didn’t change.

                      First thing I see is you are missing a comma after the last ]

                      It should look like this ],

                      Create a working config
                      How to add modules

                      B 1 Reply Last reply Reply Quote 0
                      • B Offline
                        brownco9 @Mykle1
                        last edited by

                        @Mykle1 fixed the comma, no change. I made sure to wait 5 minutes so the fetch could go.

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