Comments (5)
Same for me; I included the following within the config file, but the screen goes blank immediately and it seems impossible to re-awake it. I have had to go back to a backup .dmg
config: {
sensorPin: 22,
powerSaving: true,
powerSavingDelay: 30,
I'm using a fairly new Benq LCD screen, and the centre wire is connected to BCM 22.
TIA
from mmm-pir-sensor.
Same for me. The screen goes black and blank as soon as I start up magic mirror, have to quit to get back to seeing anything on my screen. I remove the module from configure file and everything works again. Any ideas?
from mmm-pir-sensor.
i have the same problem. i would love to know the solution.
from mmm-pir-sensor.
I think it's a problem with rebuild of node-abi which makes MMM-PIR module crashing Magic Mirror.
Please try this command: npm upgrade node-abi --depth=100
This worked for me :-)
from mmm-pir-sensor.
same issue here ->
modules: [
{
module: "MMM-PIR-Sensor",
config: {
// default pin is 22 - view here https://pinout.xyz/
powerSavingDelay: 60,
preventHDMITimeout: 7,
presenceIndicator: "fa-eye", // Customizing the indicator
presenceOffIndicator: "fa-eye", // Customizing the indicator
presenceIndicatorColor: "#f51d16", // Customizing the indicator
presenceOffIndicatorColor: "#2b271c" // Customizing the indicator
}
},
and the output is
pi@raspberrypi:~/MagicMirror $ npm start
> [email protected] start /home/pi/MagicMirror
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[01.03.2021 15:17.19.020] [LOG] Starting MagicMirror: v2.14.0
[01.03.2021 15:17.19.027] [LOG] Loading config ...
[01.03.2021 15:17.19.032] [LOG] Loading module helpers ...
[01.03.2021 15:17.19.040] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'onoff'
Require stack:
- /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
-
[01.03.2021 15:17.19.041] [LOG] Loading module helpers ...
[01.03.2021 15:17.19.044] [ERROR] App threw an error during load
[01.03.2021 15:17.19.051] [ERROR] Error: Cannot find module 'onoff'
Require stack:
- /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
-
at Module._resolveFilename (internal/modules/cjs/loader.js:798:15)
at Function../lib/common/reset-search-paths.ts.Module._resolveFilename (electron/js2c/browser_init.js:7718:16)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (internal/modules/cjs/loader.js:691:27)
at Function.Module._load (electron/js2c/asar.js:748:26)
at Module.require (internal/modules/cjs/loader.js:853:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js:11:14)
at Module._compile (internal/modules/cjs/loader.js:968:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:986:10)
[01.03.2021 15:17.19.053] [ERROR] Whoops! There was an uncaught exception...
[01.03.2021 15:17.19.058] [ERROR] Error: Cannot find module 'onoff'
Require stack:
- /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
-
at Module._resolveFilename (internal/modules/cjs/loader.js:798:15)
at Function../lib/common/reset-search-paths.ts.Module._resolveFilename (electron/js2c/browser_init.js:7718:16)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (internal/modules/cjs/loader.js:691:27)
at Function.Module._load (electron/js2c/asar.js:748:26)
at Module.require (internal/modules/cjs/loader.js:853:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js:11:14)
at Module._compile (internal/modules/cjs/loader.js:968:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:986:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js',
'/home/pi/MagicMirror/js/app.js',
'/home/pi/MagicMirror/js/electron.js',
'/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
undefined
]
}
[01.03.2021 15:17.19.061] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[01.03.2021 15:17.19.061] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[01.03.2021 15:17.19.319] [LOG] Launching application.
[01.03.2021 15:17.19.348] [WARN] (electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false". It will change to be "true" in Electron 9. For more information please check https://github.com/electron/electron/issues/18397
[01.03.2021 15:17.20.655] [LOG] Shutting down server...
Anyone?
from mmm-pir-sensor.
Related Issues (20)
- MM will not start after update 11/08/20 HOT 4
- MM locked after turn On HOT 6
- The detecting movement
- Can this module deactivate other running modules ?
- blue screen once a while HOT 1
- Request - Start skript by
- sensorPIN: 17 does not work HOT 1
- MagicMirror v2.15.0 breaks this module HOT 3
- MMM-PIR-Sensor activates automatically without inputs after 60 seconds
- bug in clearing timeout
- Works fine after 5-15 minuts
- Is there a way to avoid Dell monitor continue to display Power Saving message when PIR sensor turns off screen
- Execute 'sudo chmod u+s /opt/vc/bin/tvservice' does not work in Bullseye HOT 6
- Updating PIR for 2.17 error HOT 1
- Module only works once - doesn't go back to power saving HOT 2
- Works with 7" Raspberry Pi branded touch display
- Error: Could not detect abi for version 16.0.6 HOT 2
- postinstall issue [LIBERTY LIBERY LIBERTY] HOT 2
- install problems HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmm-pir-sensor.