Solved EXT-Pir doesn't work on 2.19
-
@bugsounet I have the same problem. EXT-Pir doesn’t wake up the screen. The gpio should be right, because it works in an other script.
npm: 6.14.15
node: 14.18.2
MM: 2.19.0I had reinstall both Modules (EXT-Screen, EXT-Pir).
My config:
{ module: 'EXT-Screen', position: 'bottom_right', config: { debug: true, animateBody: true, delay: 2 * 60 * 1000, turnOffDisplay: true, mode: 1, ecoMode: false, displayCounter: true, displayBar: true, displayStyle: "Text", displayLastPresence: true, lastPresenceTimeFormat: "LL H:mm", detectorSleeping: false, autoHide: false, delayed: 0, } }, { module: 'EXT-Pir', config: { debug: true, gpio: 23, reverseValue: false, } },
-
any error with EXT-Alert ?
-
@bugsounet Yeah Error Detected. Try to solve it with npm run rebuild in EXT-Pir
pi@raspberrypi:~/MagicMirror/modules/EXT-Pir $ npm run rebuild > EXT-Pir@1.0.1 rebuild /home/pi/MagicMirror/modules/EXT-Pir > installer/rebuild.sh Welcome to EXT-Pir rebuild script This script will erase current build and reinstall it Do you want to continue ? [Y/n] Your choice: y Deleting: package-lock.json node_modules Done. Upgrading EXT-Pir... HEAD ist jetzt bei e368238 delete pir library Bereits aktuell. Done. Reinstalling EXT-Pir... > EXT-Pir@1.0.1 preinstall /home/pi/MagicMirror/modules/EXT-Pir > installer/preinstall.sh Welcome to EXT-Pir v1.0.1 No root checking... Checking EXT-Pir: pi/pi Checking MagicMirror: pi/pi Checking OS... OS Detected: linux-gnueabihf (raspbian 10 armv7l) Installing all npm libraries... npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported > epoll@4.0.1 install /home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll > node-gyp rebuild make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird betreten CXX(target) Release/obj.target/epoll/src/epoll.o pi@raspberrypi:~/MagicMirror/modules/EXT-Pir $ npm run rebuild > EXT-Pir@1.0.1 rebuild /home/pi/MagicMirror/modules/EXT-Pir > installer/rebuild.sh Welcome to EXT-Pir rebuild script This script will erase current build and reinstall it Do you want to continue ? [Y/n] Your choice: y Deleting: package-lock.json node_modules Done. Upgrading EXT-Pir... HEAD ist jetzt bei e368238 delete pir library Bereits aktuell. Done. Reinstalling EXT-Pir... > EXT-Pir@1.0.1 preinstall /home/pi/MagicMirror/modules/EXT-Pir > installer/preinstall.sh Welcome to EXT-Pir v1.0.1 No root checking... Checking EXT-Pir: pi/pi Checking MagicMirror: pi/pi Checking OS... OS Detected: linux-gnueabihf (raspbian 10 armv7l) Installing all npm libraries... npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported > epoll@4.0.1 install /home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll > node-gyp rebuild SOLINK_MODULE(target) Release/obj.target/epoll.node COPY Release/epoll.node make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird verlassen > EXT-Pir@1.0.1 postinstall /home/pi/MagicMirror/modules/EXT-Pir > installer/postinstall.sh Prepare PIR sensor using Done Rebuilding MagicMirror... ⠋ MagicMirror Building module: epoll, Completed: 0make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird betreten CXX(target) Release/obj.target/epoll/src/epoll.o ⠼ MagicMirror Building module: epoll, Completed: 0 SOLINK_MODULE(target) Release/obj.target/epoll.node ⠋ MagicMirror Building module: epoll, Completed: 0 COPY Release/epoll.node make: Verzeichnis „/home/pi/MagicMirror/modules/EXT-Pir/node_modules/epoll/build“ wird verlassen ✔ MagicMirror Rebuild Complete Support is now moved in a dedicated Server: https://forum.bugsounet.fr @bugsounet EXT-Pir is now installed ! npm notice created a lockfile as package-lock.json. You should commit this file. added 195 packages from 173 contributors and audited 195 packages in 75.783s 22 packages are looking for funding run `npm fund` for details found 0 vulnerabilities
-
Exactly the same error.
-
I had planned to downgrade npm and node.js, but I’m not sure that will fix the problem.
@bugsounet , tell us if you want specific logs
-
downgrading node will not solve your problem
main problem is this:
Checking MagicMirror: pi/root
-
After doing npm run rebuild it’s still the same.
-
@bugsounet yes i think too, but i don’t know why I have it. Is it because a bad owner of a specific directory or a bad variable somewhere ? I’m sorry for my bad kwnoledge of linux world
-
try this:
sudo chgrp -R pi ~/MagicMirror/
and retry install
cd ~/MagicMirror/modules/EXT-Pir npm install
sample:
you have:bugsounet@debian:~/MagicMirror/modules$ cd EXT-Pir/ bugsounet@debian:~/MagicMirror/modules/EXT-Pir$ npm install > EXT-Pir@1.0.1 preinstall > installer/preinstall.sh Welcome to EXT-Pir v1.0.1 No root checking... Checking EXT-Pir: bugsounet/root npm ERR! code 255 npm ERR! path /home/bugsounet/MagicMirror/modules/EXT-Pir npm ERR! command failed npm ERR! command sh -c installer/preinstall.sh npm ERR! A complete log of this run can be found in: npm ERR! /home/bugsounet/.npm/_logs/2022-04-05T20_08_44_214Z-debug-0.log
solved with:
bugsounet@debian:~/MagicMirror/modules/EXT-Pir$ npm install > EXT-Pir@1.0.1 preinstall > installer/preinstall.sh Welcome to EXT-Pir v1.0.1 No root checking... Checking EXT-Pir: bugsounet/bugsounet Checking MagicMirror: bugsounet/bugsounet Checking OS... OS Detected: linux-gnu (debian 11 x86_64) Installing all npm libraries... > EXT-Pir@1.0.1 postinstall > installer/postinstall.sh Prepare PIR sensor using Done Rebuilding MagicMirror... ✔ MagicMirror Rebuild Complete Support is now moved in a dedicated Server: https://forum.bugsounet.fr @bugsounet EXT-Pir is now installed ! up to date, audited 196 packages in 1s 22 packages are looking for funding run `npm fund` for details found 0 vulnerabilities bugsounet@debian:~/MagicMirror/modules/EXT-Pir$
Note in my desktop my account is
bugsounet
in your Raspberry your account ispi
so just changebugsounet
bypi
-
@bugsounet I will try it tommorow, thank you for your help I’ll keep you informed.
-
This post is deleted! -
This post is deleted! -
Hi,
All works great after the change of directory owner and reinstall both modules.Many thanks for your help !
Not really fan about the display of bar so i hide it, maybe a really thin white line will be more class, than big bar with color ? Just my personnal opinion.
Thank you for your work, have a nice day.
-
-
semi-circle design is better (for me)