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.

    MMM remote

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 2 Posters 748 Views 2 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.
    • B Offline
      bradley1982
      last edited by

      Morning All.

      total novice here however i have managed to get my MM working with quite a few modules on it.

      I was looking to add MMM-Remote -Control however seems to be above my pay grade as can’t even get the config to fire after adding this. when i remove it is working fine.

      When i run the config checker i get the below -
      Line 134 col 17 Unexpected ‘‘’.
      Line 135 col 19 Unexpected ‘‘’.
      Line 138 col 21 Unexpected ‘“’.
      Line 140 col 17 Unexpected ‘“’.
      Line 135 col 17 Expected ‘}’ to match ‘{’ from line 133 and instead saw ‘:’.
      Line 136 col 9 Expected ‘]’ to match ‘[’ from line 28 and instead saw ‘config’.
      Line 136 col 15 Expected ‘}’ to match ‘{’ from line 11 and instead saw ‘:’.
      Line 136 col 16 Missing semicolon.
      Line 137 col 26 Expected an identifier and instead saw ‘,’.
      Line 137 col 26 Expected an assignment or function call and instead saw an expression.
      Line 137 col 27 Missing semicolon.
      Line 139 col 9 Label ‘customMenu’ on showModuleApiMenu statement.
      Line 139 col 9 Expected an assignment or function call and instead saw an expression.
      Line 139 col 26 Missing semicolon.
      Line 139 col 26 Expected ‘}’ to match ‘{’ from line 136 and instead saw ‘:’.
      Line 140 col 9 Expected an assignment or function call and instead saw an expression.
      Line 140 col 15 Missing semicolon.
      Line 140 col 9 Unrecoverable syntax error. (82% scanned).

      The config for the module looks like this -

      {
      module: “MMM-Remote-Control”,
      position: “bottom_left”,
      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
      }
      },

      Any ideas?

      Thanks for your help in advance
      Paul

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

        @bradley1982 said in MMM remote:

        Line 134 col 17 Unexpected ‘‘

        noticed the double quote is curved

        this means the copy/paste treated the content as a word processing document and not an ansi text file

        single quotes are impacted ted as well.

        the text version of these characters are straight up and down

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          bradley1982 @sdetweil
          last edited by

          @sdetweil thanks for how do i fix this?

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

            @bradley1982 you either have to replace all the bad quotes w good ones, or separate the whole config entry for remote control with good text

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              bradley1982 @sdetweil
              last edited by

              @sdetweil thanks very much. does it matter if i use double or single … sorry no got a clue

              got it firing but error loading config

              Starting MagicMirror: v2.6.0
              Loading config …
              Loading module helpers …
              No helper found for module: alert.
              No helper found for module: clock.
              No helper found for module: calendar_monthly.
              Initializing new module helper …
              Module helper loaded: calendar
              Initializing new module helper …
              Module helper loaded: MMM-Todoist
              Initializing new module helper …
              Module helper loaded: MMM-MyScoreboard
              Initializing new module helper …
              Module helper loaded: MMM-OpenWeatherMapForecast
              Initializing new module helper …
              Module helper loaded: MMM-PhilipsHue
              WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘logger’
              Loading module helpers …
              No helper found for module: alert.
              No helper found for module: clock.
              No helper found for module: calendar_monthly.
              Initializing new module helper …
              Module helper loaded: calendar
              Initializing new module helper …
              Module helper loaded: MMM-Todoist
              Initializing new module helper …
              Module helper loaded: MMM-MyScoreboard
              Initializing new module helper …
              Module helper loaded: MMM-OpenWeatherMapForecast
              Initializing new module helper …
              Module helper loaded: MMM-PhilipsHue
              Whoops! There was an uncaught exception…
              { Error: Cannot find module ‘logger’
              at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
              at Function.Module._load (internal/modules/cjs/loader.js:529:25)
              at Module.require (internal/modules/cjs/loader.js:657:17)
              at require (internal/modules/cjs/helpers.js:22:18)
              at Object. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:15:13)
              at Module._compile (internal/modules/cjs/loader.js:721:30)
              at Object.Module._extensions…js (internal/modules/cjs/loader.js:732:10)
              at Module.load (internal/modules/cjs/loader.js:620:32)
              at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
              at Function.Module._load (internal/modules/cjs/loader.js:552:3) code: ‘MODULE_NOT_FOUND’ }
              MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
              If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

              any ideas

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

                @bradley1982 single or double doesn’t matter as long as both ends are the same

                Error: Cannot find module ‘logger’

                looks like the hue module didn’t document that dependency

                I the module folder do

                npm install logger
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  bradley1982 @sdetweil
                  last edited by

                  @sdetweil hi now getting this error

                  Connecting socket for: MMM-Remote-Control
                  WARNING! Could not load config file. Starting with default configuration. Error found: TypeError: Log.log is not a function

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

                    @bradley1982 but you are running mm 2.6

                    that is 4 years old. 2.25 is current, that’s 19 quarters newer

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • 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