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.

    Documentation Suggestion

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 2 Posters 1.0k Views 2 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.
    • TipponT Offline
      Tippon @sdetweil
      last edited by Tippon

      @sdetweil What I meant was, could it show how to put in two or more custom events, like this:

      customEvents: [
      			{keyword: 'Birthday', symbol: 'fa-birthday-cake', color: 'Gold'},
      			{keyword: 'Clinic', symbol: 'biohazard', color: 'Green'}],
      

      It might just be me getting confused, but because there are a few different elements and they are separated in different ways, I got mixed up trying to add multiple events. For example, I wasn’t sure if each event needed it’s own line, like:

      customEvents: [{keyword: 'Birthday', symbol: 'fa-birthday-cake', color: 'Gold'},
      customEvents: [{keyword: 'Clinic', symbol: 'biohazard', color: 'Green'}],
      

      or if I could put multiple keywords onto one line, like:

      customEvents: [{keyword: 'Birthday' 'Party', symbol: 'fa-birthday-cake', color: 'Gold'},
      

      It’s probably a bit daft, but I get confused more easily these days :dizzy_face: :)

      Please forgive me if I'm slow to reply, I'm currently experiencing memory issues, and sometimes forget that I've asked a question >.<

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

        @tippon ok, the words are new…, but once u learn them

        array mean this [ ]

        so, ANY , one or multiple must be inside the []

        then it says a combo of matching string/icon/color
        so that is an object , which is {}
        things, with key:value, key:value, key:value pattern
        { key:value, key:value, key:value }

        and that is what the example shows, except for the second one, but continue (more to follow) is , (comma)

        [ ---- begin
        first ,
        second,
        third
        ] ---- end

        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 @Tippon
          last edited by

          @tippon one more tool to use

          when u are confused, use separate lines for the parts… the compiler will handle it

          [
          { …}
          ,
          { …}
          ,
          { …} (notice the lack of the ‘more to follow’ comma)

          ]

          u can combine them back together later with your editor… (if u want )

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          TipponT 1 Reply Last reply Reply Quote 1
          • TipponT Offline
            Tippon @sdetweil
            last edited by

            @sdetweil Thank you for the advice :)

            Thank you too for being patient with me. I’m finding that I’m struggling more than usual recently when I try to learn something new, and you’ve been very helpful with your replies to my questions :)

            Please forgive me if I'm slow to reply, I'm currently experiencing memory issues, and sometimes forget that I've asked a question >.<

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

              @tippon my pleasure…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              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