@sdetweil said in MMM-GoogleAssistantMk2 issues:
MMM-GoogleAssistant
Hey sdetweil, sorry, meant that one. I followed all steps to a T, and am getting the above error.
@sdetweil said in MMM-GoogleAssistantMk2 issues:
MMM-GoogleAssistant
Hey sdetweil, sorry, meant that one. I followed all steps to a T, and am getting the above error.
Hey All, trying to get MMM-GoogleAssistantMk2 up, and have the token, auth code, and when doing the command: node auth_and_test.js it works, but when I add the module to the config file, I get the below error when starting MagicMirror.
SyntaxError: Unexpected token }
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:67:12)
at App.start (/home/pi/MagicMirror/js/app.js:202:3)
at Object. (/home/pi/MagicMirror/js/electron.js:126:7)
at Module._compile (internal/modules/cjs/loader.js:786:30)
When I put the basic config structure in, it opens, but it doesn’t respond to commands, and when I start adding some of the other stuff to the config, I get the below error. Any ideas?
{
module: “MMM-AssistantMk2”,
position: “top_right”,
config: {
coordinates: {
latitude: 51.5033640,
longitude: -0.1276250,
},
record: { // put there configuration generated by auto-installer
recorder : “arecord”,
device: “plughw:1”
}
}
},
@sdetweil Ah, so it’s just to control the mirror, but not actual Alexa built-in?
@Stoffbeuteluwe Thanks Stoffbeuteluwe. I will give that a shot, and let you know.
@dphotograph Hey dphotograph, I had somehow copied the bottom part twice, and that was my problem. I just copied the config sample again, and built all of my modules, one by one.
Yeah, there was none. Very short URL, and no code at all.
Hey all, been trying to setup this module, but when going to get the refresh token in the “configuring the Alex Module”, I get to the login page, then hit allow, then get this error:
We’re sorry!
An error occurred when we tried to process your request. Rest assured, we’re already working on the problem and expect to resolve it shortly.
I have read everything I can find, and nothing is working. Even tried the other steps for https://sakirtemel.github.io/MMM-alexa/ and same thing.
@sdetweil Nevermind. All is now working. Had an extra bit of info in my config file that didn’t need to be there. Thanks again for all of your help sdetweil!
@sdetweil Still getting black screen after performing these steps. For some reason, it is stating that I have the wrong syntax in the config file.
$ npm run config:check
magicmirror@2.12.0 config:check C:\Users\blake\MagicMirror
node js/check_config.js
[2020-07-08 07:59:36.797] [INFO] Checking file… C:\Users\blake\MagicMirror\config\config.js
[2020-07-08 07:59:36.854] [LOG] Line 1 col 1 Definition for rule ‘prettier/prettier’ was not found.
C:\Users\blake\MagicMirror\js\check_config.js:66
throw new Error(“Wrong syntax in config file!”);
^
Error: Wrong syntax in config file!
at C:\Users\blake\MagicMirror\js\check_config.js:66:10
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63: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! C:\Users\blake\AppData\Roaming\npm-cache_logs\2020-07-08T12_59_36_872Z-debug.log
@sdetweil Thank you sdetweil. I will try thins now, and let you know.