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.

    Config code not working?

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 2 Posters 840 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.
    • S Offline
      sdetweil @johnnyboy
      last edited by

      @johnnyboy said in Config code not working?:

      >                     'Virtual Lock Test' // Or is a specific device label
      >                 ]
      >               }
      >         }   < -----
      >     ] < -----
      

      well, ya got a few extra things in there

      every { needs a } and every [ needs a ]
      extras not allowed

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @sdetweil

        That did it… I just knew there were too many brackets, but who am I to contradict the developer of that module?
        Thanks so much for pointing me in the right direction.

        {
                      module: 'MMM-Smartthings',
                      position: 'top_left',
                      header: 'Smartthings',
                      config: {
                        personalAccessToken: 'MY TOKEN GOES IN HERE',
                        capabilities: [
                            'contactSensor',
                            'lock'
                        ],
                        title: "Doors & Locks",
                        excludedDeviceNames: [
                            'Sense-', // Contains this text
                            'Virtual Lock Test' // Or is a specific device label
                        ]
                      }
                },
        
        {
        module: 'calendar',
        

        How the instructions said to do it!

               'contactSensor',
                            'lock'
                        ],
                        title: "Doors & Locks",
                        excludedDeviceNames: [
                            'Sense-', // Contains this text
                            'Virtual Lock Test' // Or is a specific device label
                        ]
                      }
                }
            ]
        },
        {
        module: 'calendar',
        
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @johnnyboy
          last edited by sdetweil

          @johnnyboy said in Config code not working?:

          but who am I to contradict the developer of that module?

          well, you have to read what he said, you copied too much… LOOK like this (his is correct), not BE EXACTLY this (as he only had one module)

          read the modules for beginners
          https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners?_=1592186111969

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          johnnyboyJ 1 Reply Last reply Reply Quote 1
          • johnnyboyJ Offline
            johnnyboy @sdetweil
            last edited by

            @sdetweil
            For sure I was’nt knocking him… I just followed what it said - to enter that block into Config…
            I’m very much a novice in this, so I just enter what I see, or be told to by members, who know far more than I… but I did say at opening post that I was unsure if there should be so many brackets at the end…

            But yeah, it works brilliantly… although I have quite a lot of Smartthings items… so the list goes all down the entire side of the screen, covering Compliments - Lower 3rd, and news feed - bottom bar. … so will need to make another post to find out how to reduce the font size using CSS.

            Thanks again Sam… you have helped restore my interest in MM again, with your help on several of my posts.

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

              @johnnyboy https://forum.magicmirror.builders/topic/6808/css-101-getting-started-with-css-and-understanding-how-css-works?_=1592231548825

              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