Read the statement by Michael Teeuw here.
[Electron] display en screen after installing MMM-PIR-Sensor
-
from the module folder do
npm install onoff --save -
I do
npm install onoff --savein ~/MagicMirror/modules/MMM-PIR-Sensor and reboot
but the same problem :0|mm | [2020-08-21 13:36:17.541] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'onoff' 0|mm | Require stack: 0|mm | - /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js 0|mm | - /home/pi/MagicMirror/js/app.js 0|mm | - /home/pi/MagicMirror/js/electron.js 0|mm | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.jsand
0|mm | [2020-08-21 14:22:15.086] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node' 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`). -
@RIKKO14 oh the joy, do
cd ~/MagicMirror/modules/MMM-PIR-Sensor rm -rf node_modules rm package-lock.json npm install npm install nan --save npm install electron-rebuild --save node node_modules/.bin/electron-rebuild -
@RIKKO14 and u don’t need to reboot. just use the pm2 commands
pm2 restart 0
-
I do this, MM reload but now after 2-3 secondes the screen turn off, GA with Jarvis works in background but i can’t find the screen of MM, if i do Ctrl + M
nothing is happening, there, I’m completely stuck…, I unplugged but the problem stay here… -
@RIKKO14 is the screen actually powered off? did u enable ssh to get into a terminal window if desktop/mm has trouble?
if so I can issue commands there to turn on display tvservice or dpms…
I don’t use PIR, lots of troubles.
-
I dont use ssh, only command on the py.
Instead of that, i think the py cut the power to the screen because the led of my screen is yellow like power off and not blue like something displayed. -
Yes, the screen actually powered off
-
And I forgot to not the IP adress of my py, so I can’t use ssh now…
Pffff, I’m not lucky, every modules I want works instead of the PIR module… -
If i find my IP adress, Can you give me the commands to delete the problem ?
-
@RIKKO14 if u didn’t turn on ssh, it isn’t on, so can’t use it anyhow. look in your router to see what addresses were given out…
I do that quite often, then fix/reserve the address so I don’t have to remember
-
ok, i find my IP adress (I’ve wrote it in excel file with some commandes i use) and I connected in SHH with putty,
thanks for your help to delete the commandh whose powered off my screen -
below my pm2 logs,
If that can help you…
https://www.cjoint.com/c/JHvqsqJ1QTT -
If it can help you this is my pm2 logs : https://www.cjoint.com/c/JHvqsqJ1QTT
-
@RIKKO14 looking at… hard to tell
dopm2 stop 0 pm2 flush pm2 start 0the will throw away the old logs…
-
I do this, the problem still here…
-
@RIKKO14 it just makes the log easier to read. please post it again
-
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
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