Read the statement by Michael Teeuw here.
Motion Detector
-
Is this module work along with MMM-Facial-Recognition using the same camera?
-
Not working here. Only either one or the other.
But paviro said he will include a motion detection to the facial recognition module at some time.
I will try to do it also. Will report if I have success -
Hi!
I’m trying to get this to work, have a USB cam attached to the RPI3 and installed the .js.
But when I add the code:{
module: ’motiondetector’,
config:
}
}Am I missing something? Because it only give me errors… :(
(new to this)
-
@oscarkindberg Try this instead:
{ module: 'motiondetector', config: { timeout: 300000 // time in milliseconds for to switch off the display after last movement is detected. } },This is set for a 5 minute delay. Modify the timeout value if you want a longer or shorter delay before your screen turns off.
-
@in_a_days Hit! Works now, BUT next issue.
After 5-6 min the screens goes white, can’t find anything in the code that would cause that. -
I apologize if this a very noob question but I am having trouble getting the motion detector module running. I have clone the files to the module folder. I have modified the config file but maybe I dont have it correct. Could some one show me how the config file be modified to get the module running. Any other pointers? Thank you,
-
@oscarkindberg try hdmi_blanking=1in /boot/config.txt
-
@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.
-
@phoenixrising That is only an override for the defaults? Or am I missing something here. Working the same way with or without the config part.
-
Hey All,
I’ve followed all the instructions in this topic, and I’ve finally got it to work (RPi 3 + PS EYE camera) everything works well for a while, and then HDMI out stays inactive, moreover, the PS EYE Left LED (the blue one) shuts off, normal operation, both LEDs are ON, so there is definitely an issue with Raspbian itself, is there anyone which resolved this since the previous post ?
My config : https://pastebin.com/j7cKDBy3
-
Hi @alexyak !
Thanks for the module, it looks awesome!
I was trying to use it, at some point I could make it run, I mean, I can set the timeout and the monitor “wakes up” when the pi camera detects any movement.
But when the timeout reachs the limit time, the monitor get off, but after a few seconds it appears a message that says “not signal, cable disconect”.
Is there any way to avoid that alert?Kind regards
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login