Read the statement by Michael Teeuw here.
MMM remote
-
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 -
@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
-
@sdetweil thanks for how do i fix this?
-
@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
-
@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/issuesany ideas
-
@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
-
@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 -
@bradley1982 but you are running mm 2.6
that is 4 years old. 2.25 is current, that’s 19 quarters newer