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.

    Default Module - Calender

    Scheduled Pinned Locked Moved Requests
    6 Posts 3 Posters 3.2k Views 1 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.
    • B Offline
      bjoern
      last edited by

      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 ?

      1 Reply Last reply Reply Quote 0
      • KirAsh4K Offline
        KirAsh4 Moderator
        last edited by

        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/calendar

        Example:

        calendars: [
            {
                symbol: 'calendar-check-o ',
                url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
            },
            {
                symbol: 'calendar',
                url: 'https://calendar.google.com/calendar/ical/....'
            }
        ],
        

        A Life? Cool! Where can I download one of those from?

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

          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.

          1 Reply Last reply Reply Quote 0
          • KirAsh4K Offline
            KirAsh4 Moderator
            last edited by

            That’s not possible with the current setup. You can only change the symbol on a per-calendar basis.

            A Life? Cool! Where can I download one of those from?

            1 Reply Last reply Reply Quote 0
            • MichMichM Offline
              MichMich Admin
              last edited by

              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 …)

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

                thx MichMich! i will check later. thx

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