Read the statement by Michael Teeuw here.
mmm assistant mk2
-
Update: I reinstalled from scratch (again for a2d I had to do a npm rebuild, you may want to take note)
Still the same issue of assistant hanging after query:
I do the query, hotword recognized, query recognized, answer fetched, answer saved in temp and displayed on screen bottom but no audio feedback and gogle spin icon going.
After refreshing the screen goes again in “steady state”Now I am sure I have a sound output issue.
Meaning that I can play sounds on the mirror via vlc but somehow the plugin cannot.
I guess that somehow the plugin does not receive a feedback of “play ended” from the output.
What I also noticed is that if I refresh the browser by vnc the mirror will go again in a waiting status.
Will continue checking -
Hello,
First of all, thank you for not stopping your work on this module which is of high quality.
I tried to install the new assistant. I followed the wiki. However, I have a problem.
Indeed, when the mirror is launched, I find myself with the following message:[2020-06-01 14:04:54.256] [LOG] [ASSISTANT][ERROR] token.json file not found
However, I followed the WIKI well and applied the following command:
(env) pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ ACCESSTOKEN=ya29.a0AfH6SMABBPj590X_itMQG616F8QpxddhPVuSXCE4qvZs6znHKbG2n5RggszFMdl0V5HP0lf956H9O7VHlbuGuMxSzkU3pMkdbpFxs485NwfXYl9T7hfLzB0EOPlRTwcifZW-8rIUlZlWXXXXXXXXXXXXXXXXXXX
Do you have any idea about this problem?
Thanking you in advance,
Regards,
-
@dvbit try this:
launch it in root directly in RPI terminal (not ssh)cd ~/MagicMirror sudo ./node_modules/.bin/electron js/electron.js --no-sandbox
give me result
-
@chris:
token.json
file must be located in~/MagicMirror/modules/MMM-GoogleAssistant/token.json
-
@Bugsounet u can also run the fixsandbox script from my repo
https://github.com/sdetweil/MagicMirror_scriptsif they use my installer I fix it… otherwise they either need the --nosandbox or run my script
-
sam, i suspect a bug in electron
chown root and chmod 4755 ?
-
@Bugsounet yes, what my script does…
not a bug, new feature
-
yes but i don’t understand why … with pulseaudio there is no sound but with root it’s works …
There is a permission missing somewhere
-
@Bugsounet sorry, got no idea what the side effects are…
they wanted some additional security
are u launching a player as a background task, or playing direct to the device? if the latter then u get all the security crap
-
sam:
in RPI4: it’s works
pi@Raspberry:~/MagicMirror/node_modules/electron/dist $ ls -la total 107516 drwxr-xr-x 4 pi pi 4096 mai 20 15:23 . drwxr-xr-x 3 pi pi 4096 juin 1 13:37 .. -rw-r--r-- 1 pi pi 145945 mai 20 15:23 chrome_100_percent.pak -rw-r--r-- 1 pi pi 209147 mai 20 15:23 chrome_200_percent.pak -rwsr-xr-x 1 root pi 4204060 mai 20 15:23 chrome-sandbox
i have no idea if @dvbit it’s the same
Note: this Issue take me head since 6 month