Read the statement by Michael Teeuw here.
PIR-Sensor - put your mirror to sleep if not used
-
Let me get home and get you the details on it. It a monitor we had sitting around at the office, some high end graphic Pro monitor that wasn’t being used anymore. I also have a test I want to perform on it, see if that makes a difference in what I’m seeing. Stay tuned.
-
@paviro I donwloaded to node 5.0.0 and I know get the following error
Failed at the magicmirror@2.0.0 start script 'electron js/electron.js'.
-
@joerod That’s all? Not a failure of my plugin. Any more logs?
-
For people who are not confortable with programming this, or need to buy a pir sensor anyway
You can also buy a pir with motionsensor like this
-
9 verbose stack Error: magicmirror@2.0.0 start: `electron js/electron.js` 9 verbose stack Exit status 1 9 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214$ 9 verbose stack at emitTwo (events.js:87:13) 9 verbose stack at EventEmitter.emit (events.js:172:7) 9 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14) 9 verbose stack at emitTwo (events.js:87:13) 9 verbose stack at ChildProcess.emit (events.js:172:7) 9 verbose stack at maybeClose (internal/child_process.js:817:16) 9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
I’ve tested my PIR sensor with a Python script to make sure I’m using the proper GPIO and its functioning as it should. I do see 1 & 0 when I move near the sensor so I don’t think its the hardware.
I’d love to use this module, I was going to do it in python but since you have it in JS I figured why not use that.
-
-
Sorry, no clue. :(
-
@paviro I had to downgrade to node 5.0.0, I confirmed its that version of node. After the downgrade I removed the PIR module and did a git clone and then npm install in the folder. Still the same thing, is there a specific version of node 5 I should be using or a specific version of npm?
I’m running it from
/home/pi/MagicMirror/modules/MMM-PIR-Sensor -
Could you try it with
node serveronly
? -
@joerod also do
npm install
on the mm folder or install the whole thing from scratch :)