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.

    I am stuck need help

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    25 Posts 11 Posters 11.3k Views 10 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.
    • BKeyportB Offline
      BKeyport Module Developer
      last edited by

      in his case, it was simply horrible config.js layout. Missing syntax all over the place.

      cd ~/MagicMirror
      npm run config:check
      cd ~
      

      Best script ever right there. I can’t express how important that is.

      The "E" in "Javascript" stands for "Easy"

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

        @sdetweil
        the issues honestly are having little to no coding experience, and not knowing where commas and brackets go. Luckily, someone helped fixed my config file.

        I also ran into an issue with installing the modules. I did not realize at first that after you git clone the module you have to go into the module directory and run npm install command. After reading into it, it was a very simple fix.

        Most of my issues were from inexperience and being overwhelmed.

        Mykle1M 1 Reply Last reply Reply Quote 1
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @dcarls91
          last edited by

          @dcarls91 said in I am stuck need help:

          Most of my issues were from inexperience and being overwhelmed.

          Dude, do your victory dance now! :clap:

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 1
          • lavolp3L Offline
            lavolp3 Module Developer @yawns
            last edited by

            @yawns said in I am stuck need help:

            https://www.diffchecker.com/QQhBPpNO

            You’re full of valuable links!!! :-)

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            1 Reply Last reply Reply Quote 1
            • evroomE Offline
              evroom
              last edited by

              I posted this in another thread too.

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