Read the statement by Michael Teeuw here.
Default Module - Calender
-
Hi, first of all I must say that I am not good in Java . But I have an idea that I would like transpose for the default module “calendar” . But I do not know where and how .
Every time the when in calendar is an event that has the label " Birthday " or " … Sport " , the foregoing Icon should be change . For the birthday => Awesome.Icon " Birthday Cake " or sports icon " trophy " .Can someone help me to implement this ?
-
That’s what the
'symbol'config option is for. Please read the instructions on how to set a symbol for your calendars:
https://github.com/MichMich/MagicMirror/tree/master/modules/default/calendarExample:
calendars: [ { symbol: 'calendar-check-o ', url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics' }, { symbol: 'calendar', url: 'https://calendar.google.com/calendar/ical/....' } ], -
sorry, thats not my question. in your example i can set a symbol for a special calendar! i have only one calender. in this calender are event. for example: “Geburtstag Björn” or “Sport Cycling”. when the event is “Geburstag …” than i will change the symbol in front of the line by the event.
-
That’s not possible with the current setup. You can only change the symbol on a per-calendar basis.
-
Not a supported feature, but the calendar supports text replacements. You might be able to replace “Geburtstag” with the HTML to display the icon:
<i class="fa fa-birthday-cake"></i>. But since this an unsupported feature, this is as far as my support goes. :) Check the documentation and knock yourself out.Also note: MagicMirror² is built using Javascript, not Java (those are two different languages which might be important for you if you’re googeling …)
-
thx MichMich! i will check later. thx
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login