Solved Detector module not running with Electron
-
i am using Pi5, and facing an issue with EXT-Detector. The server just pops up for 2 seconds and closes, and it leaves electron error line in the log, right when it is loading the Detector module. I have tried rebuilding both GoogleAssistant and Detector, but still having the same issue. But when I comment out Detector, MM is working out fine. Is there a conflict in Pi5 with Detector’s libraries?
-
Hi,
I have a pi5 too. I have not this problem
My prod pi run
develop
branch of MagicMirror² maybe it’s that …So maybe it’s related to electron version (yes there is some bug on it… that why there is some patch)
can you try to install electron v28 in MagicMirrror ?
I have done some test on it with Pi5 32bits os and workscd ~/MagicMirror npm install electron@28 cd ~/MagicMirror/modules/MMM-GoogleAssistant npm run refresh
MMM-GoogleAssistant
refresh command will update automaticaly all EXTs and itself (include electron rebuild ! for electron compatibility)Note if you have another module to rebuild you have to do it manually
And … restart MM² and see if it’s better
-
Thanks for the reply. It finally works for me after giving out many tries. For me, I have to comment out Snowboy detector, which leaves me perfectly fine by only using porcupine. Do you know why is that ?
-
no idea for this, for me actually it’s the reverse:
- pocupine don’t works
- snowboy works
But It’s Raspbian 32 bits OS
-
Hi everyone!
Ran into the same issue today running Magic Mirror v2.26.0 on a Pi4 64bit OS when trying to use Snowboy. Switching to Pocupine seems to have worked for me as well.
Incase anyone else tries to make the switch, I had to put my
.ppn
custom model file in the root folder ofEXT-Detector
and not thecomponents
folder as the wiki suggests.Thank you so much for all the amazing plugins!
-
@brz553 said in Detector module not running with Electron:
my .ppn custom model file in the root folder of EXT-Detector and not the components folder as the wiki suggests.
Ah… Thanks for this report. I will check it.
Sincerely, I have not check this after refact/lint this part of code -
-
-
Fixed with 2.5.4
Fix: move custom .ppn file of porcupine into custom folder move custom .pmdl file of snowboy into custom folder
-