MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED trouble with MMM-remote-control

    Troubleshooting
    2
    14
    706
    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.
    • T
      thehoopjr last edited by

      hello, I have problems trying to use MMM-remote-control. I have downloaded everything and have copied the module into my config file. when I start the mirror it tells me my config file has a problem. This is the only module I have had issues with and I can’t get it to work.
      thanks

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

        @thehoopjr that usually means a missing quote or comma,
        do
        cd ~/MagicMirror
        npm run config:check

        work from the top of the list… the error is typically reported on the line AFTER the error

        unexpected on line 45, means missing comma on line 44

        Sam

        Create a working config
        How to add modules

        T 1 Reply Last reply Reply Quote 0
        • T
          thehoopjr @sdetweil last edited by

          @sdetweil thanks, I did that and it showed me where I went wrong but I don’t quite understand it. It’s telling me that it is expecting brackets to match earlier ones in the config file. Not too sure what to do, I’ve tried changing things to match what it’s telling me with no luck

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

            @thehoopjr start from the top…

            var config = {
            
            modules: [
            {
            a module
            },
            {
            another module
            } 
            
            ];   end of modules list
            }   end of var config
            

            Sam

            Create a working config
            How to add modules

            T 1 Reply Last reply Reply Quote 0
            • T
              thehoopjr @sdetweil last edited by

              @sdetweil All of that matches what I have in my config file. The check is only giving me errors in the remote module. it starts at line 90 and finishes at line 99.

              {
              module: "MMM-Remote-Control",					
              , position: "bottom_bar",
              config: {
              customCommand: {},  // Optional, See "Using Custom Commands" below
              customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
              showModuleApiMenu: true, // Optional, Enable the Module Controls menu
              apiKey: "",         // Optional, See API/README.md for details
              	}
              },
              
              pi@jakemagicmirror:~/MagicMirror $ npm run config:check
              
              > magicmirror@2.10.1 config:check /home/pi/MagicMirror
              > node tests/configs/check_config.js
              
              Checking file...  /home/pi/MagicMirror/config/config.js
              Line 91 col 37 Extra comma. (it breaks older versions of IE)
              Line 92 col 9 Expected '}' to match '{' from line 90 and instead saw ','.
              Line 92 col 11 Expected ']' to match '[' from line 33 and instead saw 'position'.
              Line 92 col 19 Expected '}' to match '{' from line 11 and instead saw ':'.
              Line 92 col 20 Missing semicolon.
              Line 93 col 9 Expected an assignment or function call and instead saw an expression.
              Line 93 col 15 Missing semicolon.
              Line 93 col 9 Unrecoverable syntax error. (87% scanned).
              

              do you think you could point out any errors in there?
              thanks

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

                @thehoopjr said in trouble with MMM-remote-control:

                Line 91 col 37 Extra comma. (it breaks older versions of IE)

                module: "MMM-Remote-Control",					
                , position: "bottom_bar",
                

                two commas in a row
                i hate his doc to uncomment that position line, with the leading comma

                    module: 'MMM-Remote-Control'   // < --- notice this DOES NOT have the comma
                    // uncomment the following line to show the URL of the remote control on the mirror
                    // , position: 'bottom_left'   //< ---------- there
                

                Sam

                Create a working config
                How to add modules

                T 1 Reply Last reply Reply Quote 0
                • T
                  thehoopjr @sdetweil last edited by

                  @sdetweil so I should remove that leading comma and it should fix it?

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

                    @thehoopjr leading or prior line trailing…
                    just have 1… then try it…

                    Sam

                    Create a working config
                    How to add modules

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      thehoopjr @sdetweil last edited by

                      @sdetweil that worked! thank you. the mirror started but all of my modules say they’re loading and the webpage won’t load. they’ve been stuck on loading for 10 minutes.
                      any ideas?

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

                        @thehoopjr open the developers window, ctrl-shift-i, select the console tab, scroll up to find any errors (usually red text

                        Sam

                        Create a working config
                        How to add modules

                        T 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy