@bugsounet okay thank you. I changed the gpio and now it works.
I
Best posts made by illef
-
RE: Still not working
Latest posts made by illef
-
RE: Still not working
@bugsounet okay thank you. I changed the gpio and now it works.
-
RE: Still not working
@bugsounet Many restarts but still not working. There is a npm warn while the rebuild script is running
The log shows this error:
0|mm | [07.04.2022 21:00.28.094] [LOG] [ALERT] EXT-Alert Version: 1.0.0 rev: 220301 0|mm | [07.04.2022 21:00.28.096] [LOG] [PIR] All needed @bugsounet library loaded ! 0|mm | [07.04.2022 21:00.28.099] [LOG] [PIR] PIR Library v1.1.0 Initialized... 0|mm | [07.04.2022 21:00.28.103] [LOG] [PIR] Callback Notification: PIR_INITIALIZED 0|mm | [07.04.2022 21:00.28.105] [LOG] [PIR] Start 0|mm | [07.04.2022 21:00.28.112] [LOG] [PIR:ERROR] Error: EBUSY: resource busy or locked, write 0|mm | [07.04.2022 21:00.28.114] [LOG] [PIR] Callback Notification: PIR_ERROR Error: EBUSY: resource busy or locked, write 0|mm | [07.04.2022 21:00.28.118] [LOG] [PIR] Initialize Complete Version: 1.0.1 rev: 220403
-
Still not working
I posted my problem in the Thread before but didn’t get a solution.
EXT-Alert report an error, so I rebuild the module:
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
The Version of node, npm and mm is supported and the gpio pin works in an other script
-
RE: EXT-Pir doesn't work on 2.19
@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
-
RE: 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, } },