• 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.

Config Error

Scheduled Pinned Locked Moved Troubleshooting
newcodeerror
39 Posts 5 Posters 7.3k Views 5 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 Away
    sdetweil @PHAGE.GOV
    last edited by May 20, 2020, 5:55 PM

    @PHAGE-GOV in the config file the apikey should be ok, only when u paste config to the forum should u blank it out…

    linux is case sensitive, so its

    cd MagicMirror

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    P 1 Reply Last reply May 20, 2020, 6:52 PM Reply Quote 0
    • P Offline
      PHAGE.GOV @sdetweil
      last edited by May 20, 2020, 6:52 PM

      @sdetweil so i did the cd Magic Mirror and then ran pm2 start/mm.sh
      and i got a pm2 error “script not found: home/pi/MagicMirror/mm.sh”

      S 1 Reply Last reply May 20, 2020, 6:58 PM Reply Quote 0
      • S Away
        sdetweil @PHAGE.GOV
        last edited by May 20, 2020, 6:58 PM

        @PHAGE-GOV use my pm2 setup script here

        https://github.com/sdetweil/MagicMirror_scripts

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        P 2 Replies Last reply May 20, 2020, 10:26 PM Reply Quote 0
        • P Offline
          PHAGE.GOV @sdetweil
          last edited by May 20, 2020, 10:26 PM

          @sdetweil well i tried lol

          [2020-05-20 17:25:02.499] [LOG]    Starting MagicMirror: v2.11.0
          [2020-05-20 17:25:02.506] [LOG]    Loading config ...
          [2020-05-20 17:25:02.510] [ERROR]  WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:41
          			Welcome_message "string"
          			^^^^^^^^^^^^^^^
          
          SyntaxError: Unexpected identifier
              at Module._compile (internal/modules/cjs/loader.js:722:23)
              at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
              at Module.load (internal/modules/cjs/loader.js:645:32)
              at Function.Module._load (internal/modules/cjs/loader.js:560:12)
              at Module.require (internal/modules/cjs/loader.js:685:19)
              at require (internal/modules/cjs/helpers.js:16:16)
              at loadConfig (/home/pi/MagicMirror/js/app.js:69:12)
              at App.start (/home/pi/MagicMirror/js/app.js:210:3)
              at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:115:7)
              at Module._compile (internal/modules/cjs/loader.js:786:30)
          [2020-05-20 17:25:02.511] [LOG]    Loading module helpers ...
          [2020-05-20 17:25:02.555] [LOG]    Initializing new module helper ...
          [2020-05-20 17:25:02.557] [LOG]    Module helper loaded: updatenotification
          [2020-05-20 17:25:02.558] [LOG]    No helper found for module: helloworld.
          [2020-05-20 17:25:02.559] [LOG]    All module helpers loaded.
          [2020-05-20 17:25:02.680] [LOG]    Starting server on port 8080 ... 
          [2020-05-20 17:25:02.693] [LOG]    Server started ...
          [2020-05-20 17:25:02.694] [LOG]    Connecting socket for: updatenotification
          [2020-05-20 17:25:02.695] [LOG]    Sockets connected & modules started ...
          [2020-05-20 17:25:02.785] [LOG]    Launching application.
          [2020-05-20 17:25:24.052] [LOG]    Shutting down server...
          [2020-05-20 17:25:24.053] [LOG]    Stopping module helper: updatenotifica
          
          S 1 Reply Last reply May 20, 2020, 10:40 PM Reply Quote 0
          • S Away
            sdetweil @PHAGE.GOV
            last edited by May 20, 2020, 10:40 PM

            @PHAGE-GOV said in Config Error:

            /home/pi/MagicMirror/config/config.js:41
            Welcome_message “string”
            ^^^^^^^^^^^^^^^

            SyntaxError: Unexpected identifier

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            P 1 Reply Last reply May 20, 2020, 10:45 PM Reply Quote 0
            • P Offline
              PHAGE.GOV @sdetweil
              last edited by May 20, 2020, 10:42 PM

              @sdetweil would it be a good idea at this point to just delete and reinstall lol

              1 Reply Last reply Reply Quote 0
              • P Offline
                PHAGE.GOV @sdetweil
                last edited by May 20, 2020, 10:45 PM

                @sdetweil wait so how do i fix that line? like what would you recomend?

                S 1 Reply Last reply May 20, 2020, 11:02 PM Reply Quote 0
                • S Away
                  sdetweil @PHAGE.GOV
                  last edited by May 20, 2020, 11:02 PM

                  @PHAGE-GOV that is what you have to figure out… run the syntax checker

                  cd ~/MagicMirror
                  npm run config:check
                  

                  the error is typically reported on the line following the error, but maybe not in this case.
                  read this
                  https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners?_=1589635889121

                  you are asking for people to do the work for you, and not learning… time to learn

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  P 3 Replies Last reply May 20, 2020, 11:34 PM Reply Quote 0
                  • P Offline
                    PHAGE.GOV @sdetweil
                    last edited by May 20, 2020, 11:34 PM

                    @sdetweil okay mom lmaoo, and yes, i agree

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      PHAGE.GOV @sdetweil
                      last edited by May 20, 2020, 11:44 PM

                      so sensei @sdetweil , i got this.

                      hecking file...  /home/pi/MagicMirror/config/config.js
                      Line 41 col 4 Parsing error: Unexpected token Welcome_message
                      
                      

                      so does that just mean i should delete that line altogether?

                      S 1 Reply Last reply May 20, 2020, 11:52 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        11/39
                        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