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.

    v2.22.0 | default calendar: no symbols with customEvents

    Scheduled Pinned Locked Moved Solved Troubleshooting
    29 Posts 7 Posters 13.4k Views 7 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.
    • kaiK Offline
      kai @sdetweil
      last edited by

      Hi @sdetweil,
      I’m sorry, I’m being too stupid right now…
      The symbols are not in a different fa group - or at least they don’t have to be. :winking_face:
      This is the code that previously worked perfectly (with a “global” symbol):

      	{
      		module: "calendar",
      		header: "Abitur",
      		position: "top_left",
      		config: {
      			calendars: [
      				{
      					symbol: "graduation-cap",
      					color: "#00bfff",
      					url: "<path_to_local_ics_file>"
      				}
      			],
      			colored:true,
      			dateFormat:"DD.MM.YYYY",
      			fetchInterval:86400000,
      			fullDayEventDateFormat:"DD.MM.YYYY",
      			getRelative:0,
      			maximumNumberOfDays:180,
      			showEnd:false,
      			timeFormat:"absolute",
      			urgency:0
      		}
      	},
      

      I wanted to have some entries with different symbols, hence I changed the code by adding customEvents (before upgrading to v2.22.0):

      	{
      		module: "calendar",
      		header: "Abitur",
      		position: "top_left",
      		config: {
      			calendars: [
      				{
      					symbol: "graduation-cap",
      					color: "#00bfff",
      					url: "<path_to_local_ics_file>"
      				}
      			],
      			colored:true,
      			customEvents: [
      				{ keyword: 'Abgabe', symbol: 'file-signature' },
      				{ keyword: 'feier', symbol: 'champagne-glasses' },
      				{ keyword: 'Bekanntgabe', symbol: 'megaphone' }
      			],
      			dateFormat:"DD.MM.YYYY",
      			// defaultSymbolClassName: "fa-solid fa-",
      			fetchInterval:86400000,
      			fullDayEventDateFormat:"DD.MM.YYYY",
      			getRelative:0,
      			maximumNumberOfDays:180,
      			showEnd:false,
      			timeFormat:"absolute",
      			urgency:0
      		}
      	},
      

      This worked fine as well. After having upgraded to v2.22.0 none of the customEvents symbols is displayed anymore. It doesn’t matter if there is an entry for defaultSymbolClassName.

      As in most cases, the problem is probably in front of the screen… Maybe I just chose the wrong class?!?

      1 Reply Last reply Reply Quote 0
      • J Offline
        JDIBBY @sdetweil
        last edited by

        @sdetweil @kai

        Were you guys able to resolve this? I have the same issue immediately after the v2.22.0 upgrade. I’ve tried different combinations of defaultSymbolClassName variables and can not get it to work for any customEvents.

        S 2 Replies Last reply Reply Quote 0
        • S Offline
          sdetweil @JDIBBY
          last edited by

          @JDIBBY I have not looked at it more. can u say what symbols you used?

          the full fontawesome name please.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @JDIBBY
            last edited by

            @JDIBBY can you use the link I posted about the dev console and see what symbol class and name was used the those elements?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            karsten13K 1 Reply Last reply Reply Quote 0
            • karsten13K Offline
              karsten13 @sdetweil
              last edited by

              there was a change concerning symbols, see https://github.com/MichMich/MagicMirror/pull/2949/files

              this should be backward compatible in normal setups but I don’t know how this is compatible with customEvents.

              Did you try something like

              ..., symbol: 'fa-solid fa-megaphone' ... or

              ..., symbol: 'fas fa-fw fa-megaphone' ... ?

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @karsten13
                last edited by

                @karsten13 but he should not have to use the fa- prefix on megaphone, cause its in the setting

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @sdetweil
                  last edited by

                  @JDIBBY I changed one of my test cal setups to use custom events, copying your data but changing the trigger text

                          calendars: [
                          {
                            url: "http://localhost:8090/modules/default/calendar/woot.ics",
                            symbol: "calendar",
                            color: "#efefef",
                            name: "Rags Calendar",
                  
                          }
                          ],
                            customEvents: [
                              { keyword: 'Weekly', symbol: 'file-signature' },
                              { keyword: 'Every', symbol: 'champagne-glasses' },
                            ],
                  

                  and see this
                  Screenshot at 2023-01-11 21-49-52.png

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  kaiK 1 Reply Last reply Reply Quote 0
                  • kaiK Offline
                    kai @sdetweil
                    last edited by

                    @sdetweil looks great - that’s the way I’d like to have it. :grinning_face:
                    So you didn’t specify a symbol class for the customEvents at all? I have had no success with this so far…

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @kai
                      last edited by

                      @kai no, exactly as I posted. are you sure those are the phrases in your calendar subject?

                      I had a problem once before, and had Two spaces between words in the calendar event, and only one in the events stucture…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        DaveChild
                        last edited by

                        I’ve been having the same problem. In mine the fas fa-fw fa- prefix was missing, so I changed my config to this:

                        customEvents: [
                            {keyword: "Games", symbol: "dice fas fa-fw fa-dice"},
                            {keyword: "Rugby", symbol: "running fas fa-fw fa-running"},
                            {keyword: "Guitar", symbol: "guitar fas fa-fw fa-guitar"}
                        ],
                        

                        I duplicated the “dice” at the start so it keeps working when the bug is fixed. And the icons appear now.

                        Calendar screenshot showing custom icons

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