Read the statement by Michael Teeuw here.
MMM-GoogleAssistant autostart
-
@poopyurinal so, does mirror app start? but assistant doesn’t work ? are you using pm2? to control Mirror autostart?
-
auto install script sets up a pm2 module to start mirror app
-
yes, the mirror app starts flawlessly with all installed modules. The assistant icon appears on the mirror, but is not activated by “Ok google” unless I type the commands in my OP. I believe pm2 is controlling the Mirror autostart.
-
@poopyurinal ok, but if yoiu start it manually does it work?
pm2 stop MagicMirror
open a terminal window (ctrl-alt-t)
cd MagicMirror
npm startdoes it all work?
I don’t know assistant.py I assume it runs in the background… and somehow talks to the module… -
and with mirror running on boot, press ctrl-shit-i to open the developers window, and select the console tab, and scroll up to find any module errors
there is also a pm2 command to show its log… (I don’t use pm2 myself).
-
@poopyurinal said in MMM-GoogleAssistant autostart:
I know that to start the module successfully, I can enter the following 3 commands:
source env/bin/activate
cd ~/MagicMirror/modules/MMM-GoogleAssistant/pi
python3 assistant.pyyou are not starting the module… you are starting a background application
that is included in the module folderthe ‘module’ only runs inside the MagicMirror environment
so, you need to create a command that does the startup…
start the py and then start MMand then automate that
if u stop MM manually and restart it (without doing the assistant.py step) do the GA work thru mirror as u expect?
-
pm2 stop MagicMirror gives me:
[PM2][ERROR] Process MagicMirror not found
┌──────┬────┬──────┬────────┬───┬─────┬──────────┐
│ Name │ id │ mode │ status │ ↺ │ cpu │ memory │
├──────┼────┼──────┼────────┼───┼─────┼──────────┤
│ mm │ 0 │ fork │ online │ 1 │ 0% │ 2.5 MB │
└──────┴────┴──────┴────────┴───┴─────┴──────────┘
Usepm2 show <id|name>
to get more details about an appAny thoughts? The MagicMirror is running. If I stop it by hitting Alt and closing it via the menu bar, it automatically restarts.
-
@poopyurinal pm2 list
-
pm2 list
┌──────┬────┬──────┬────────┬───┬─────┬──────────┐
│ Name │ id │ mode │ status │ ↺ │ cpu │ memory │
├──────┼────┼──────┼────────┼───┼─────┼──────────┤
│ mm │ 0 │ fork │ online │ 1 │ 0% │ 2.5 MB │
└──────┴────┴──────┴────────┴───┴─────┴──────────┘
Usepm2 show <id|name>
to get more details about an app -
@poopyurinal pm2 stop mm