• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

CANNOT ADD MODULES

Scheduled Pinned Locked Moved Unsolved Troubleshooting
14 Posts 7 Posters 4.3k Views 6 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.
  • A Offline
    anhanyoung
    last edited by Feb 6, 2019, 5:10 PM

    @mykle1

    Thank you. I have been using your tutorials all night. It has helped me get to where I am. I tried folllowing these steps for different modules and it didn’t seem to work for me

    1 Reply Last reply Reply Quote 0
    • A Offline
      anhanyoung
      last edited by Feb 6, 2019, 8:57 PM

      What does Expected ‘]’ to match ‘[’ from line 45 and instead saw ‘:’.
      75 Expected ‘}’ to match ‘{’ from line 28 and instead saw 'MMM-lyft mean?

      S 1 Reply Last reply Feb 6, 2019, 9:05 PM Reply Quote 0
      • S Away
        sdetweil @anhanyoung
        last edited by Feb 6, 2019, 9:05 PM

        @anhanyoung means u are missing comma, " or something… confused the parser…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • E Offline
          evroom
          last edited by Feb 6, 2019, 9:56 PM

          Hi,

          For beginners, the catchphrase is “JSON syntax”.
          There are many articles to be found, both short and lengthy.
          A small article would be:
          https://restfulapi.net/json-syntax/

          The main things to look for in your config.js file are:

          • does every [ have a matching ]
          • are all arrays separated by a , (the last array does not need a ,)
          • does every { have a matching }
          • are all objects separated by a , (the last object does not need a ,)
          • is every name value pair separated by a ,

          The syntax checker will try to find out if this syntax is correct and tries to predict where the error could be.
          So, when it says it saw a [ and it cannot find a matching ] it tells you what was expected and what it saw.

          Try to format you config.js to make it more visible.
          For example this:

          [{},{}],[{},{[]}]
          

          is better written like this:

          [
            {},
            {}
          ],
          [
            {
            },
            {
              [
              ]
            }
          ]
          

          Pairs of [ ]and { } are better visible like this.

          Good luck :-)

          MagicMirror version: 2.30.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.30.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          1 Reply Last reply Reply Quote 2
          • 1
          • 2
          • 2 / 2
          2 / 2
          • First post
            14/14
            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