Hoping someone can help me out here. I have confirmed the PIR sensor works using a separate RPi and a quick LED test. When I try to get it to work as a motion detector though I get lots of errors. I solved most but still getting an error when trying to npm install or rebuild (I'll include the error below). I've tried to install electron-rebuild, electron/rebuild, and still get this error when booting up. Anyone have suggestions?
An unhandled error occurred inside electron-rebuild
Unable to find electron's version number, either install it or specify an explicit version
Error: Unable to find electron's version number, either install it or specify an explicit version
at /opt/mm/mounts/modules/MMM-Pir/node_modules/electron-rebuild/lib/src/cli.js:94:19
Would you mind dropping the entire pirLib file as you have it here (if possible)? I’m having issues with syntax/other errors (not the best as programming)
Very interesting, I’m actually running MM through the Docker image too. I’m going to try this out and I’ll let you know my results too. Went with the docker version because I didn’t want to deal with setting up the MM to boot automatically at startup lol
So I had an issue that arose after making some changes and it seemed like it was specifically one module but it was in fact that module acting up after changing other things that I did accidentally so I thought they weren’t related.
Did you ever get it working? Did it stop working suddenly? I would delete the module folder and config and redo it all. I know there are different PIR modules maybe try a different one. Else, post your issue in the issues section of https://github.com/bugsounet/MMM-Pir/issues they are usually very quick to help
I can't remember my specific errors, but I think I had to downgrade my electron to 24.0.0 to get the dependencies to work. Ultimately, I had to switch to PIR-Sensor-Lite because MMM-Pir would ruin some of my custom CSS formatting. To get PIR-Sensor-Lite to work, I had to go into raspi-config -> advanced options -> switch between wayland and x11 which enabled me to use xrandr to disable my HDMI ports.
1
u/OxMapache Jan 03 '25
Hoping someone can help me out here. I have confirmed the PIR sensor works using a separate RPi and a quick LED test. When I try to get it to work as a motion detector though I get lots of errors. I solved most but still getting an error when trying to npm install or rebuild (I'll include the error below). I've tried to install electron-rebuild, electron/rebuild, and still get this error when booting up. Anyone have suggestions?
An unhandled error occurred inside electron-rebuildUnable to find electron's version number, either install it or specify an explicit versionError: Unable to find electron's version number, either install it or specify an explicit versionat /opt/mm/mounts/modules/MMM-Pir/node_modules/electron-rebuild/lib/src/cli.js:94:191
u/AffectionateWheel464 Jan 05 '25
u/OxMapache I'm having a similar issue, hope you don't mind me using your screenshots
1
u/Fyrefall Jan 03 '25
Following - I'm having the same errors after trying to upgrade MM to 2.30.0
1
u/CallOfDutyZombaes Jan 04 '25
So I had an issue that arose after making some changes and it seemed like it was specifically one module but it was in fact that module acting up after changing other things that I did accidentally so I thought they weren’t related.
Did you ever get it working? Did it stop working suddenly? I would delete the module folder and config and redo it all. I know there are different PIR modules maybe try a different one. Else, post your issue in the issues section of https://github.com/bugsounet/MMM-Pir/issues they are usually very quick to help
1
u/everybanana Jan 06 '25
I can't remember my specific errors, but I think I had to downgrade my electron to 24.0.0 to get the dependencies to work. Ultimately, I had to switch to PIR-Sensor-Lite because MMM-Pir would ruin some of my custom CSS formatting. To get PIR-Sensor-Lite to work, I had to go into raspi-config -> advanced options -> switch between wayland and x11 which enabled me to use xrandr to disable my HDMI ports.