Read the statement by Michael Teeuw here.
multiple calendars
-
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!
-
@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 } ] } },
-
That worked! Thanks!
-
@deadherring
No problem. -
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?
-
@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' }, ], } },
-
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' }, ] } },
-
@brownco9 I added the urgency and getRelative after seeing yours and it didn’t change.
-
@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
],
-
@Mykle1 fixed the comma, no change. I made sure to wait 5 minutes so the fetch could go.