Read the statement by Michael Teeuw here.
Motion Detector
-
Hi @strawberry-3.141
Thanks for your answer
I disabled the screensaver by editing (found here
Is that what you had in mind?sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
#@xscreensaver -no-splash@xset s off
@xset -dpms
@xset s noblank
@unclutterStrange that my camera driver was not working today.
I had to activate the cam in the pi config again.In the morning the cam led was on but when I tried to wake up the monitor the led just turned off.
I use a v1.3 cam on a rpi3.
-
@done Personally I don’t have a mirror myself, but I heard from other users in this forum they had problems with the screensaver when they tried to wake up the mirror using my voice module. They could see the mirror got brighter, but the screen was still black because of the screensaver. I would connect a mouse or keyboard and do some action to see if there is a screensaver active.
-
@strawberry-3.141 Ok, I’ll give it a try. Tomorrow morning, I will test again. Thx!
-
hello! as understood there are 2 topics ongoing here "PIR module of @cowboysdude " and "motiondetector of @alexyak ". I will not ask which is the best module, you both did a great job, thx!
don’t take it bad but i just wanted to have opinions and feedback on which one is running currently without any, less issues please? (i am starting my mirror and don’t want to be too much demanding on the forum if not working - wise ;-))@cowboysdude : i have already implemented Paviro’s module to test and i wanted to know if i should remove it before installing your one?
Thx in advance for your relpies and have a good day/eve :)
-
@bibi said in Motion Detector:
hello! as understood there are 2 topics ongoing here "PIR module of @cowboysdude " and "motiondetector of @alexyak ". I will not ask which is the best module, you both did a great job, thx!
don’t take it bad but i just wanted to have opinions and feedback on which one is running currently without any, less issues please? (i am starting my mirror and don’t want to be too much demanding on the forum if not working - wise ;-))@cowboysdude : i have already implemented Paviro’s module to test and i wanted to know if i should remove it before installing your one?
Thx in advance for your relpies and have a good day/eve :)
Honestly I will you this… I liked the motion sensor BUT @ianperrin worked out a module scheduler that I liked much better! I can turn modules off and on at specific times and turn it all off when I"m not home only to have it back on again when I arrive home.
All-in-all it really depends on your needs. NOTHING is without issues of some kind. I just really disliked the PIR sensor sticking out …
I hoped this help you in some way.
OH but of course @strawberry-3-141 also made a voice module that you can just tell the mirror to turn off too :) The usb mike is about the same price as a pir sensor!!! It’s REALLY awesome!!!
-
@done said in Motion Detector:
@strawberry-3.141 Ok, I’ll give it a try. Tomorrow morning, I will test again. Thx!
WORST case senario is you install a screen saver program and disable it… period. :)
-
@cowboysdude 1st thx for taking time to reply. much appriciated! the PIR is ok but as it needs to get hidden somewhere, etc it’s less convinent. Yes you are right, the solution depends on my personnal need… i just need a way to switch on MM when i am in front of it BUT also completly switch off the monitor when nothing detected and not only the MM.
oh great, i will check @strawberry-3-141 module for sure!
@IngmarSwart also designed a solution with motion detection with a Picam behind the glass which seems to be nice to. i let you check it if interest…by the way, do i have to remove Paviro module to install your one?
i couldn’t find @strawberry-3-141 module… can you pls forward me the link? -
@strawberry-3.141 said in Motion Detector:
@done propably everything is working for you guys and you can just see the screensaver, be sure to disable the screensaver
Negative. The screensaver has been disabled but the
motiondetection
module isn’t working. I gave the Facial Recognition module a try, but with the camera behind the glass, there isn’t enough light to train the system to recognize anyone.At this point, I’m considering downgrading my chromium to something without the new security “features”.
-
I’m still working this problem. To help with @paphko 's concern about processor utilization, I finally figured out how and where to put a delay in the main image comparison loop. @alexyak is using the RequestAnimationFrame feature to run the comparison as fast as the browser can render the UI.
If you wish to include a delay, modify your
motion.js
file’s main function to read as such:function main(frequency) { render(); if(rendering == true) { setTimeout(function() { raf(main.bind(this)); }, 500); } }
That last number (the 500) is the milliseconds between each image comparison. I think half a second between comparisons is enough to keep the CPU usage down and the effectiveness up.
-
Thx @bhepler
this helped to reduce my temperature from 80 °C to 50-60 °C.
Maybe the 80 °C even caused the wake up problem? :)Anyway, I think I’ll try the voice activation module tomorrow.
Somehow it’s even very sweet to say “Mirror, Mirror on the wall. Wake up!”.