Solved issue with npm
-
still get this error
pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ npm run token
MMM-GoogleAssistant@4.0.2 token
installer/token.shWelcome to MMM-GoogleAssistant Token generator!
Do you want to install/reinstall MMM-GoogleAssistant token? [Y/n]
Your choice: yError: Bad credentials missing: redirect_uris
Done.
-
This error is related with a YouTube tutorial…
So Create credentials with the wiki (see Credentials setup) -
@bugsounet okay it worked i will buy you a beer that’s for sure but it does not recognize voice i mean nothing really happening when i say hey google or hey jarvis my mic is working sorry for bothering you and take your time but im totaly new
-
Wiki says need to install:
- MMM-GoogleAssistant
- Gateway
- EXT-Detector
- EXT-Alert
Right?
-
@bugsounet now i have snowboy library issue it cant load
-
without logs … I can’t help
-
@bugsounet ```
[ERROR] [DETECTOR] Warning: 1 @bugsounet library not loaded !
[29.03.2022 17:36.47.107] [ERROR] [DETECTOR] Try to solve it withnpm run rebuild
in EXT-Detector directory
[29.03.2022 17:36.47.118] [ERROR] [DETECTOR] No detector initialized!
[29.03.2022 17:36.47.122] [INFO] Checking git for module: EXT-Detector
[29.03.2022 17:36.47.216] [INFO] Checking git for module: EXT-Alert
[29.03.2022 17:36.47.298] [INFO] Checking git for module: Gateway
[29.03.2022 17:36.47.366] [INFO] Checking git for module: MMM-Remote-Control
[29.03.2022 17:36.47.455] [INFO] Checking git for module: default
[29.03.2022 17:36.48.294] [INFO] Newsfeed-Fetcher: Broadcasting 25 items.
[29.03.2022 17:36.49.330] [INFO] Calendar-Fetcher: Broadcasting 10 events.
[29.03.2022 17:36.49.827] [INFO] Newsfeed-Fetcher: Broadcasting 57 items. -
@bugsounet here is a code what i use ```
{
module: “MMM-GoogleAssistant”,
position: “top_left”,
configDeepMerge: true,
classes: ‘always’,
config: {
Extented: {
youtube: {
useYoutube: true,
youtubeCommand: “youtube”,
displayResponse: true,
useVLC: true,
minVolume: 30,
maxVolume: 100,
username: “my forum username”,
token: null
},
spotify: {
useSpotify: true,
visual: {
updateInterval: 1000,
idleInterval: 10000,
useBottombar: true,
CLIENT_ID: “[your clientID]”,
CLIENT_SECRET: “[your clientSecret]”
},
player: {
type: “Raspotify”,
email: “”,
password:“”,
minVolume: 10,
maxVolume: 90,
usePause: true
}} }, assistantConfig: { latitude: 51.508530, longitude: -0.076132, }, } },
{
module: “EXT-Detector”,
position: “top_left”,
configDeepMerge: true,
config: {
debug: false,
detectors: [
{
detector: “Snowboy”,
Model: “jarvis”,
Sensitivity: null
}
]
}
},
{
module: ‘EXT-Alert’,
config: {
debug: false,
ignore: []
}
},
{
module: ‘Gateway’
}, -
Can you try
npm run rebuild
inside EXT-Detector directory ?and verify if
✔ MagicMirror Rebuild Complete
on the end process -
sorry to barge in but you mentioned your MIC is functional did you try this to see if you have sound output https://developers.google.com/assistant/sdk/guides/service/python/embed/audio ?.. just throwing this out there…as well not sure if this could be an issue but /home/pi/.asoundrc is deleted when loading to PIdesktop…do you have your MIC info in there? again disregard if done already…good day
-
no, it’s not that
Note:
- I don’t use Python there … I use JS and node JS
- I use default mic with pulse audio server
-
@bugsounet An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy’.
Error:gyp
failed with exit code: 1Error: node-gyp failed to rebuild ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy’.
Error:gyp
failed with exit code: 1at ModuleRebuilder.rebuildNodeGypModule (/home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/module-rebuilder.js:193:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Rebuilder.rebuildModuleAt (/home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/rebuild.js:180:9) at async Rebuilder.rebuild (/home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/rebuild.js:143:17) at async /home/pi/MagicMirror/modules/EXT-Detector/node_modules/magicmirror-rebuild/build/cli.js:141:9
Support is now moved in a dedicated Server: https://forum.bugsounet.fr
@bugsounetEXT-Detector is now installed !
added 205 packages, and audited 206 packages in 45s
24 packages are looking for funding
runnpm fund
for detailsfound 0 vulnerabilities
-
ok, what OS do you use ?
-
raspberian os
-
yes … but What version ?
-
@bugsounet PRETTY_NAME=“Raspbian GNU/Linux 10 (buster)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“10”
VERSION=“10 (buster)”
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL=“http://www.raspbian.org/”
SUPPORT_URL=“http://www.raspbian.org/RaspbianForums”
BUG_REPORT_URL=“http://www.raspbian.org/RaspbianBugs” -
Can you give me the result of this command:
getconf LONG_BIT
-
@zeangkor 32
-
ok … humm
past me entire log output from
MagicMirror Rebuild... ⠏ MagicMirror Building module: snowboy ...
to your error that you have past, please … I think a library missing
-
@bugsounet [29.03.2022 18:11.03.471] [LOG] Starting MagicMirror: v2.18.0
[29.03.2022 18:11.03.478] [LOG] Loading config …
[29.03.2022 18:11.03.484] [LOG] Loading module helpers …
[29.03.2022 18:11.03.487] [LOG] No helper found for module: alert.
[29.03.2022 18:11.03.508] [LOG] Initializing new module helper …
[29.03.2022 18:11.03.513] [LOG] Module helper loaded: updatenotification
[29.03.2022 18:11.03.515] [LOG] No helper found for module: clock.
[29.03.2022 18:11.03.671] [LOG] Initializing new module helper …
[29.03.2022 18:11.03.672] [LOG] Module helper loaded: calendar
[29.03.2022 18:11.03.674] [LOG] No helper found for module: weather.
[29.03.2022 18:11.03.709] [LOG] Initializing new module helper …
[29.03.2022 18:11.03.711] [LOG] Module helper loaded: newsfeed
[29.03.2022 18:11.03.711] [LOG] No helper found for module: MMM-NowPlayingOnSpotify.
[29.03.2022 18:11.03.713] [LOG] No helper found for module: MMM-SpeedTest.
[29.03.2022 18:11.04.146] [LOG] Initializing new module helper …
[29.03.2022 18:11.04.147] [LOG] Module helper loaded: MMM-GoogleAssistant
[29.03.2022 18:11.04.150] [LOG] Initializing new module helper …
[29.03.2022 18:11.04.151] [LOG] Module helper loaded: EXT-Detector
[29.03.2022 18:11.04.153] [LOG] Initializing new module helper …
[29.03.2022 18:11.04.154] [LOG] Module helper loaded: EXT-Alert
[29.03.2022 18:11.04.155] [LOG] Initializing new module helper …
[29.03.2022 18:11.04.156] [LOG] Module helper loaded: Gateway
[29.03.2022 18:11.04.157] [LOG] No helper found for module: MMM-Globe.
[29.03.2022 18:11.04.271] [LOG] Initializing new module helper …
[29.03.2022 18:11.04.271] [LOG] Module helper loaded: MMM-Remote-Control
[29.03.2022 18:11.04.272] [LOG] No helper found for module: MMM-PIR-Sensor.
[29.03.2022 18:11.04.273] [LOG] No helper found for module: MMM-Face-Reco-DNN.
[29.03.2022 18:11.04.274] [LOG] No helper found for module: example_module.
[29.03.2022 18:11.04.275] [LOG] No helper found for module: example_module_2.
[29.03.2022 18:11.04.276] [LOG] No helper found for module: example_module_3.
[29.03.2022 18:11.04.277] [LOG] No helper found for module: example_module_4.
[29.03.2022 18:11.04.277] [LOG] No helper found for module: compliments.
[29.03.2022 18:11.04.278] [LOG] All module helpers loaded.
[29.03.2022 18:11.04.401] [LOG] Starting server on port 8080 …
[29.03.2022 18:11.04.430] [LOG] Server started …
[29.03.2022 18:11.04.431] [LOG] Connecting socket for: updatenotification
[29.03.2022 18:11.04.432] [LOG] Starting module helper: updatenotification
[29.03.2022 18:11.04.433] [LOG] Connecting socket for: calendar
[29.03.2022 18:11.04.434] [LOG] Starting node helper for: calendar
[29.03.2022 18:11.04.435] [LOG] Connecting socket for: newsfeed
[29.03.2022 18:11.04.435] [LOG] Starting node helper for: newsfeed
[29.03.2022 18:11.04.436] [LOG] Connecting socket for: MMM-GoogleAssistant
[29.03.2022 18:11.04.437] [LOG] [GA] Read config.js and check ConfigDeepMerge…
[29.03.2022 18:11.04.438] [LOG] [GA] Perfect ConfigDeepMerge activated!
[29.03.2022 18:11.04.439] [LOG] Connecting socket for: EXT-Detector
[29.03.2022 18:11.04.440] [LOG] [DETECTOR] EXT-Detector Version: 1.0.1 rev: 220315
[29.03.2022 18:11.04.441] [LOG] Connecting socket for: EXT-Alert
[29.03.2022 18:11.04.441] [LOG] Starting module helper: EXT-Alert
[29.03.2022 18:11.04.442] [LOG] Connecting socket for: Gateway
[29.03.2022 18:11.04.443] [LOG] Connecting socket for: MMM-Remote-Control
[29.03.2022 18:11.04.444] [LOG] Starting node helper for: MMM-Remote-Control
[29.03.2022 18:11.04.453] [LOG] Sockets connected & modules started …
[29.03.2022 18:11.04.813] [LOG] Launching application.
[29.03.2022 18:11.07.767] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/36/Belgium_Holidays.ics - Interval: 300000
[29.03.2022 18:11.07.852] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[29.03.2022 18:11.07.907] [LOG] Create new newsfetcher for url: https://www.nieuwsblad.be/rss/section/55178e67-15a8-4ddd-a3d8-bfe5708f8932 - Interval: 300000
[29.03.2022 18:11.07.956] [INFO] Checking git for module: MMM-GoogleAssistant
[29.03.2022 18:11.08.015] [LOG] [GA] MMM-GoogleAssistant Version: 4.0.2 rev: 220322
[29.03.2022 18:11.08.021] [LOG] [GA] Platform: ‘raspberry-pi’; attempting to use ‘arecord’ to access microphone …
[29.03.2022 18:11.08.025] [LOG] [GA] Google Assistant is initialized.
[29.03.2022 18:11.08.029] [LOG] [ALERT] EXT-Alert Version: 1.0.0 rev: 220301
[29.03.2022 18:11.08.031] [LOG] [GATEWAY] Gateway Version: 1.0.2 rev: 220326
[29.03.2022 18:11.08.353] [ERROR] [DETECTOR] Snowboy library: Loading error! Error: Cannot find module ‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/lib/node/binding/Release/electron-v16.0-linux-arm/snowboy.node’
Require stack:- /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/lib/node/index.js
- /home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/index.js
- /home/pi/MagicMirror/modules/EXT-Detector/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:785:27)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object.<anonymous> (/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/lib/node/index.js:9:29)
at Module._compile (node:internal/modules/cjs/loader:1116:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1169:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/lib/node/index.js’,
‘/home/pi/MagicMirror/modules/EXT-Detector/node_modules/@bugsounet/snowboy/index.js’,
‘/home/pi/MagicMirror/modules/EXT-Detector/node_helper.js’,
‘/home/pi/MagicMirror/js/app.js’,
‘/home/pi/MagicMirror/js/electron.js’,
‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
undefined
]
}
[29.03.2022 18:11.08.364] [ERROR] [DETECTOR] Warning: 1 @bugsounet library not loaded !
[29.03.2022 18:11.08.365] [ERROR] [DETECTOR] Try to solve it withnpm run rebuild
in EXT-Detector directory
[29.03.2022 18:11.08.394] [ERROR] [DETECTOR] No detector initialized!
[29.03.2022 18:11.08.404] [INFO] Checking git for module: EXT-Detector
[29.03.2022 18:11.08.550] [INFO] Checking git for module: EXT-Alert
[29.03.2022 18:11.08.688] [INFO] Checking git for module: Gateway
[29.03.2022 18:11.08.767] [INFO] Checking git for module: MMM-Remote-Control
[29.03.2022 18:11.08.827] [INFO] Checking git for module: default
[29.03.2022 18:11.09.163] [INFO] Newsfeed-Fetcher: Broadcasting 25 items.
[29.03.2022 18:11.11.080] [INFO] Calendar-Fetcher: Broadcasting 10 events.
[29.03.2022 18:11.12.136] [INFO] Newsfeed-Fetcher: Broadcasting 57 items.
32
32
32