Read the statement by Michael Teeuw here.
Syncing Multiple Calendars
-
Super new to this entire world of coding, Raspberry Pi-ing, and Magic Mirror-ing. Iâm having a lot of fun, and I figured out a lot on my own today reading through other topics, but canât seem to get a resolution here. Iâm trying to sync calendars. I canât even get the default calendar to sync, let alone an iCloud calendar that I changed to private and had the link generated. Itâs my understanding that calendars donât necessarily need to end in .ics to be used. Currently, the calendar section has keeps saying âNo Upcoming Events,â when there are a few things that should definitely be populated on there.
Furthermore, not entirely sure where to add âMaximum Number of Daysâ so that I can see far-out holidays. Not like Jerry Garcia far out, but like, deep in the future. You know what I mean! Iâd like to see events 60 days out.
Lastly, I donât understand the significance of âsymbolâ for the calendars. Thatâs why I just named my second calendar âCarl,â instead of something else like the oddly-named sample calendar âcalendar-check-oâ
Code below:
{ module: "calendar", header: "Events", position: "top_left", config: { calendars: [ { symbol: "calendar-check-o", url: "https://www.calendarlabs.com/templates/ical/US-Holidays.ics" }, { symbol: "carl", url: "webcal://p35-calendars.icloud.com/published/2/XXXXXXXXXXXRFltaUopT7n03o" } ] } },
Many thanks!
-
@cstein6486 Hey there! Have you gotten one of the calendars working before trying syncing multiple calendars? đ
-
@cstein6486 said in Syncing Multiple Calendars:
I canât even get the default calendar to sync, let alone an iCloud calendar that I changed to private and had the link generated. Itâs my understanding that calendars donât necessarily need to end in .ics to be used. Currently, the calendar section has keeps saying âNo Upcoming Events,â when there are a few things that should definitely be populated on there.
As far as I know they need an .ics format for being properly used.
However, when you see something like that you will have to go for a bug hunt. One possible way is this.-
Deactivate all modules except for the calendar.
-
Load up your mirror
-
Go into the console (ideally via ssh, I hope you know what Iâm talking about) and put in
pm2 logs
Look in the error logs what they are saying referring to the calendar module and post it here.
OR
Load the mirror in an external browser (via MIRRORIP:8080) and go into the developerâs console (often by pressing F12) and look for error messages referring to the calendar there.
Furthermore, not entirely sure where to add âMaximum Number of Daysâ so that I can see far-out holidays. Not like Jerry Garcia far out, but like, deep in the future. You know what I mean! Iâd like to see events 60 days out.
Itâs all described in the github repository
You can include the maximumNumberOfDays in the config. If you want different config options for different calendars you need to set up the module more than once.Lastly, I donât understand the significance of âsymbolâ for the calendars. Thatâs why I just named my second calendar âCarl,â instead of something else like the oddly-named sample calendar âcalendar-check-oâ
The symbol is used for the so-called âFont Awesomeâ API, an API giving you pictures as font. It really is awesome.
The reason it is called so weired is that JS takes the string to pick up the respective symbol from the font awesome api.
Lookie here! -
-
@cstein6486 said in Syncing Multiple Calendars:
Lastly, I donât understand the significance of âsymbolâ for the calendars.
The symbol will be added to the beginning of every event for that configured calendar. For example, I have a calendar of movie release dates merged in with my social calendar. I keep the âcalendar-check-oâ for the social calendar, but I use âvideo-cameraâ for the movie release calendar.
The end result is that every entry that is a movie release shows a video camera icon and my social calendar shows a calendar with a check icon.