Solved 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
-
Don’t forget to restart your mirror
-
@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
-
You have your response
[PIR:ERROR] Error: EBUSY: resource busy or locked, write
It’s means that your GPIO port is already used by other script (or program).
So try to disable it and retryCan’t help you for this, sorry
-
@bugsounet okay thank you. I changed the gpio and now it works.
-
perfect so, Happy use !
-
bugsounet