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 16.3k 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

      @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
          • S Offline
            sdetweil @DaveChild
            last edited by

            @DaveChild hm… that is the symbolPrefix variable in 2.22

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D L 2 Replies Last reply Reply Quote 0
            • D Offline
              DaveChild @sdetweil
              last edited by

              @sdetweil I’ve not delved far into the code but it looks to me like the symbolsForEvent function in calendar.js is getting the default symbol with the default class, but then overwriting that default with the symbol from customerEvents - but not applying the default class to it.

              This might be fixed with applying this.getCalendarPropertyAsArray to ev.symbol in the line symbols[0] = ev.symbol;.

              I’d do a PR myself but I have nowhere near enough experience tinkering with MagicMirror to be pushing code to a default module :). But I think that’s where the problem is, and my solution will work around that issue crudely for the moment.

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

                @DaveChild cool. I’ll give that a look

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil I did a quick PR anyway, even if it’s not perfect, it’s better there’s a starting point for a fix than make someone repeat tracking it down to where I got to.

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

                    @sdetweil Yes I’ve got the same issue after upgrading to 2.22 no symbols even trying solution here. Be nice to get this resolved

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

                      @lmhmm Dave found it and provided a fix for next release. (April 1)

                      you could look at what he did and change your code,

                      of git pull and check the develop branch. see the instructions pinned to the top of this topic about testing fixes.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @DaveChild awesome. I saw all the GitHub traffic. great work

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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

                          @sdetweil I really don’t understand the answer so will just wait for the next release. Or do I just hit pull the default calendar module? Not sure how to apply fix.

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

                            Hi @DaveChild, @sdetweil,
                            thank you very much for your effort and your research!!!
                            I’ll use @DaveChild’s prefix solution until the next release; the custom icons are now displayed within the calendar.
                            Many, many thanks to you and all who so tirelessly develop the MM and keep it alive!
                            May the code be with you
                            -kai

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

                              @lmhmm you cannot just update one default module. it’s all or nothing.

                              mm uses the git source code mgmt system

                              this provides for different version of code concurrently.
                              mm uses the master branch as the current running code
                              and the develop branch to accumulate updates between releases.

                              if u follow the steps in the test fixes topic

                              https://forum.magicmirror.builders/topic/14327/testing-new-fixes-or-solving-current-problems-with-next-release-code

                              you can pull down the develop branch and try it out.

                              if you don’t know what this means and cannot try it then u have to wait. mm releases a new version every 90 days

                              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

                                @sdetweil said in v2.22.0 | default calendar: no symbols with customEvents:

                                you can pull down the develop branch and try it out.

                                the fix is not on develop because it is not merged yet but it should not take a long time …

                                L 1 Reply Last reply Reply Quote 1
                                • L Offline
                                  lmhmm @karsten13
                                  last edited by

                                  @karsten13 Thanks I’ll wait for the solution rather than totally mess my mirror up …

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

                                    @lmhmm

                                    meanwhile the fix is merged on develop. You can try the develop branch or wait for official release in April.

                                    L 1 Reply Last reply Reply Quote 0
                                    • L Offline
                                      lmhmm @karsten13
                                      last edited by

                                      @karsten13 I don’t understand your responses as they are not accompanied by any instructions so for now to avoid disaster I’ll wait thanks.

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

                                        @lmhmm at the top of the troubleshooting section are instructions for using the develop branch to test fixes pending future delivery

                                        https://forum.magicmirror.builders/topic/14327/testing-new-fixes-or-solving-current-problems-with-next-release-code

                                        if you use my upgrade script to migrate versions. it will detect develop branch being active and switch back to mater

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

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

                                          @sdetweil

                                          SOLVED! Upgraded to 2.22.0 then put the fa/fas bit after symbol. It works again as before. Phweee! Just for the clueless like me!

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            jlaxh
                                            last edited by

                                            Just an fyi if anyone is trying to use customEvents to alter symbols and color for a pay day event in your calendar… ask your wife not to use “$$$” as the title of the event for it. After hours of messing with the config I figured out that will alter the symbol and color for ALL events… Hopefully someone sees this and it saves them hours of frustration, especially for those of us less “coding-capable”.

                                            1 Reply Last reply Reply Quote 2

                                            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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • 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