Read the statement by Michael Teeuw here.
MMM-PIR-Sensor not work after v2.25
-
@sdetweil I renamed the folder and reinstalled the module, this is the result:
pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $ npm install npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated electron-rebuild@1.11.0: Please use @electron/rebuild moving forward. There is no API change, just a package name change npm ERR! code 7 npm ERR! path /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@6.1.0 npm ERR! gyp info using node@20.8.0 | linux | arm npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3" npm ERR! gyp ERR! UNCAUGHT EXCEPTION npm ERR! gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#<Object>' npm ERR! gyp ERR! stack at createConfigFile (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/lib/configure.js:118:21) npm ERR! gyp ERR! stack at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/lib/configure.js:85:9 npm ERR! gyp ERR! stack at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/mkdirp/index.js:30:20 npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:189:23) npm ERR! gyp ERR! System Linux 6.1.21-v7+ npm ERR! gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/.bin/node-gyp" "rebuild" npm ERR! gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll npm ERR! gyp ERR! node -v v20.8.0 npm ERR! gyp ERR! node-gyp -v v6.1.0 npm ERR! gyp ERR! This is a bug in `node-gyp`. npm ERR! gyp ERR! Try to update node-gyp and file an Issue if it does not help: npm ERR! gyp ERR! <https://github.com/nodejs/node-gyp/issues> npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2023-10-03T13_57_09_313Z-debug-0.log
-
@JoeFranz said in MMM-PIR-Sensor not work after v2.25:
“/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/.bin/node-gyp” “rebuild”
no… still using the wrong MMM-PIR-Sensor distro
delete the one you have and do
cd ~/MagicMirror/modules git clone https://github.com/sdetweil/MMM-PIR-Sensor.git cd MMM-PIR-Sensor npm install
-
@sdetweil ok, that worked now, my mistake :-(
I also made updates for the pi, unfortunately I now also have the latest firmware version: 82f3750a65fadae9a38077e3c2e217ad158c8d54 from March 2023. I’ve had that before, so the monitor on the pi doesn’t go into standby. I now need to downgrade the firmware to version 5.10 (b976c54917e240630c05a9b383010f1492bc61b4). When I try with “sudo rpi-update b976c54917e240630c05a9b383010f1492bc61b4” it says that the firmware is already up to date. -
@JoeFranz sorry on the firmware, don’t know how to downgrade firmware
-
@sdetweil Ok, I managed it :-)
Now everything is working again as it was before the update, thank you again :-)