I’ve been using a python script to achieve this functionality, its worked well for me so far. I make sure the script is run at start up.
https://github.com/joerod/python/blob/master/raspberry_pi/motion.py
I’ve been using a python script to achieve this functionality, its worked well for me so far. I make sure the script is run at start up.
https://github.com/joerod/python/blob/master/raspberry_pi/motion.py
@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
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.
Do I install this as a separate module? When I add it to my config.js file my MM does not start. I have a valid API key.
What are you using for your travel times? Looks like you live in the NYC area.
@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'.
Voice control will be great, I’d be super interested in this. I know there is a fork of this MagicMirror that does user voice control with googles API. The problem with this is that google only allows 50 API calls a day and there is no option to even buy more calls. As you can imagine the 50 calls get used up pretty quickly.
I’ve seen another Mirror that uses Jasper which is open source and does not have the API limitation, but I found this application difficult to install.