Read the statement by Michael Teeuw here.
Motion Detector
-
@phoenixrising look at the last reply of in_a_days.
If that is not working post your config.js here. -
@danielis Where do I fint that? I’ve searched all the .js files in the module and config.
-
@oscarkindberg it is the file config.txt in the folder /boot/
type ‘sudo nano /boot/config.txt’ without ’
add as last line:
hdmi_blanking=1 -
@danielis Actually got it to work now, changed to “updateInterval: 10000” from “updateInterval: 1000” and in diff-cam-engine.js I changed captureIntervalTime to 1000 instead of 100.
Made it easier on the RBP3 i think.
Downloaded MMM-SystemStats to keep check on sysload during config and it’s lookin’ good now.
Thanks for the help! I’ll comeback with a picture of the mirror as soon as my mirrorglas arrives. -
@oscarkindberg where is the updateinterval located?
-
@phoenixrising Sorry! I meant timeout: 10000 in config.js file. Copy pasted wrong part
-
@alexyak I’m using raspberry pi 3 with the camera module. And the motiondetection module.
Could not initiate the module before I ran sudo modprobe bcm2835-v4l2 but even after I never get any motion “score”.
I inspected the diffImageData it all contained 0,0,0,255 in series…
The camera works when using raspistill. Any hints of what I can test to debug the camera output within electro?
-
@Jhonte , post your config file.
-
@phoenixrising said in Motion Detector:
@Jhonte , post your config file.
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. */ var config = { port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], language: 'en', timeFormat: 24, units: 'metric', modules: [ { module: 'motiondetector' } ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') {module.exports = config;}
-
@Jhonte , see oscarkindberg example. You are missing the config portion to your module config file. Ill dig mine up later when I have a chance.