Read the statement by Michael Teeuw here.
Motion Detector
-
@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
-
Never monitors turn off by themselve as soon as there is no signal or after a few minutes without signal. Mine was a old that did not turn on/off automatically.
I used wiringpi to activate a relais that turns the current of the monitor on and off. -
@danielis
Sorry I can’t get your point as English is not my first language.
What I’m saying is that when the camera does not detect any movement, and the timeout setted is out, the monitor does not show the mirror, but after a few seconds appears something like this:
-
OK
But if there is a movement detected - is then the mirror shown?Why do you expect to see the mirror after the timeout?
The mirror must be on if there is a movement. And if there is no movement and the timeout is over, then is the mirror off.
That is what you want and what this module is doing.I think your problem is that as soon as the mirror is off, your monitor should turn off - right?