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.

    Changing compliments

    Scheduled Pinned Locked Moved Troubleshooting
    49 Posts 9 Posters 38.2k Views 9 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.
    • K Offline
      KC5RIL
      last edited by

      Okay! It’s coming together for me. I’m catching a couple more syntax errors. I’ll keep proofing to see if I catch more.

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

        @KC5RIL general rules for the value to the right of :

        numbers and true/false, no quotes,
        otherwise needs quotes, doesn’t matter which as long as they are matched.

        be careful on quotes, these curly ones " ’
        are no good, but these text mode are
        ok

        "'
        

        also if the next line starts with a word, then this line needs a trailing comma

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          KC5RIL @sdetweil
          last edited by

          @sdetweil I’ve proofed all I can. I don’t see anymore syntax errors. Still won’t run properly. Here’s the config:check ```
          pi@WALL-e:~/MagicMirror $ npm run config:check

          magicmirror@2.12.0 config:check /home/pi/MagicMirror
          node js/check_config.js

          [2020-08-19 21:11:52.797] [INFO] Checking file… /home/pi/MagicMirror/config/config.js
          [2020-08-19 21:11:52.858] [LOG] Line 194 col 3 Parsing error: Unexpected token {
          /home/pi/MagicMirror/js/check_config.js:66
          throw new Error(“Wrong syntax in config file!”);
          ^

          Error: Wrong syntax in config file!
          at /home/pi/MagicMirror/js/check_config.js:66:10
          at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
          npm ERR! code ELIFECYCLE
          npm ERR! errno 1
          npm ERR! magicmirror@2.12.0 config:check: node js/check_config.js
          npm ERR! Exit status 1
          npm ERR!
          npm ERR! Failed at the magicmirror@2.12.0 config:check script.
          npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

          npm ERR! A complete log of this run can be found in:
          npm ERR! /home/pi/.npm/_logs/2020-08-20T02_11_52_899Z-debug.log

          1 Reply Last reply Reply Quote 0
          • K Offline
            KC5RIL
            last edited by

            EUREKA!

            The error message at start was bothering me. Figured it out with some playing around. needed a ‘}’ at 195. Problem solved.

            Thanks for ya’lls help. I’ll more than likely pester you again with more issues. Have your crayons ready!

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

              @KC5RIL read this

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

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 1
              • 1
              • 2
              • 3
              • 4
              • 5
              • 3 / 5
              • 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