Read the statement by Michael Teeuw here.
Motion Detector
-
I had the same issue.
For me was the solution to increase the capture interval time from 100ms to 1000ms.
With the default value of 100ms the overall systemload is to high and one of the two electron processes will use after some time around 85% of the memory. At that value the system slows down extremely and the memory swap process will take all cpu ressources while trying to free up physical memory.
And then anything can happen … (white screen, unresponsive, ENOMEM exceptions, …)Go to motiondetector.js and search for this code part:
DiffCamEngine.init(
{
video: video,
motionCanvas: canvas,Add the following line to change the default capture interval time of 100ms to 1000ms:
DiffCamEngine.init(
{
video: video,
captureIntervalTime: 1000,
motionCanvas: canvas,Observe the two electron processes and they will not reach memory values higher than 30%.
-
@danielis Fingers crossed, this appears to be working! The mirror has turned on and off a dozen times now with no processor or RAM issues.
-
@danielis woooow its working now since one hour!! thank you!!!
-
Same here. Great work and many thanks @danielis!
-
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,