Read the statement by Michael Teeuw here.
[Electron] display en screen after installing MMM-PIR-Sensor
-
hre it is :
https://www.cjoint.com/c/JHvrPBCBgZT -
and this one (because i don’t if it it change something) : https://www.cjoint.com/c/JHvrUegIVzT after the command :
pm2 stop 0 pm2 flush pm2 start 0and after only
pm2 logs --lines=100without
pm2 statusandpm2 stop 0 -
@RIKKO14 i see this
0|mm | [2020-08-21 19:37:58.395] [LOG] [LPCM16] WARN: arecord: pcm_read
:2145: erreur en lecture: Appel système interrompu
and this
0|mm | [2020-08-21 19:43:41.435] [LOG] [Error: failed to read sensor]so we may have to look at t he browser dev window,
ctrl-shift-i on the mirror keyboard
select the tab labebled console,
and scroll up to see any errors, usually in red text -
ctrl+shift+i on the mirror keyboard : nothing displayed
ctrl+shift+i on my pc keyboard : this is displayed :

-
ctrl+shift+i on the mirror keyboard : nothing displayed : because my screen is powered off : source of the issue…
-
@RIKKO14 too small to read
-
@RIKKO14 i think the ‘failed to read the sensor’ error lead to the power off command being issued…
but don’t know
-
-
@RIKKO14 that is dev window open on forum page, not MM page
-
that’s te problem…
you ask me to do ctrl+shift+i on the mirror keyboard :
but the screen is powered off so nothing displayed, i don’t know if it’s displayed something, I can’t see it…
or i don’t anderstand to acceed MM page with my pc, I have only this :

-
@RIKKO14 edit the config.js on the mirror
change address and ipWhitelist like this
address:"0.0.0.0", ipWhitelist:[],restart mm…
now on your pc you can do
http://pi_ip:8080and then u can open the dev window on that page
i thought you said earlier you had removed the command to make your mirror screen turn off
so you know which code is issuing the command… tell where that was -
But I have only acces to my MM with SSH, so how to edit the config.js on the mirror with ssh ?
-
@RIKKO14 on the ssh terminal, (its a terminal window, same as works on pi)
cd MagicMirror/config
nano config.jsfix the text (move the cursor with the arrow keys and type and backspace
then ctrl-o to write the changes back out and ctrl -x to exit nano
then type pm2 restart 0for your windows box, get winscp, then u can connect to pi as both terminal window (for commands)
and a file system view, like windows, double click on folder to go in, or file to edit… use your favorite pc editor (I use notepad++_) -
I do this :

and type pm2 restart 0, but my screen of MM is steel powered off… -
@RIKKO14 now on your PC, open browser to
http://pi_ip:8080same up address u used for ssh
now see magic mirror
-
@sdetweil and disable the PIR module in config.js, and manually turn screen back on
I’d this a Pi4. the off command works, the old on command doesn’t. I have seen others fight this but don’t remember any solution
-
I reinstalled everything last night except the GA module and had the same problem.
This morning I start all over again with the MMM-PIR module and the [Electron] screen is displayed instead of my MM screen.
My pm2 log indicated that there is a Node.js version pb: I am in version 73 while the require version is version 64.
So I put an issue on the link of this module to request an update of the module with Node.js version 73, hoping that there is only that.
In the meantime I put aside this module and reinstall all the modules for the X time.
my pm2 log :0|mm | was compiled against a different Node.js version using 0|mm | NODE_MODULE_VERSION 64. This version of Node.js requires 0|mm | NODE_MODULE_VERSION 73. Please try re-compiling or re-installing 0|mm | the module (for instance, using `npm rebuild` or `npm install`).``` Thank you very much however for all your help and patience. -
@RIKKO14 same instructions as post 5 of the topic
-
everything works except the PIR.
thanks again for your help.
now i need to customize the CSS because my display is so big . -
@RIKKO14 u used the electron rebuild instructions in the PIR module folder??
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login