Read the statement by Michael Teeuw here.
Motion Detector
-
Hi alihallo,
i have exact the same problem. i also added the
@reboot sudo modprobe bcm2835-v4l2
command into my cronetab.but once the screen is off for some hours it will not switch on again.
for me it seems that the RPi 3 is going into some kind of sleepmode if the monitor is switched off for too long.
kind regards
Christoph -
This post is deleted! -
Just as a side note, I have the same issue that my RasPi screen does not switch on again after a random time. But I am running v1 of the mirror (so not this motion detector module) and I use motion for motion detection. My guess is that this is an issue with the RasPi firmware because it was working fine several months ago (and I was frequently updating RasPi firmware)…
-
I just run a straight cron job with a file called pir.py that runs two other files…
monitor_on.sh
monitor_off.shIt’s not incorporated into the mirror it runs the entire pi and I’ve had great luck with it! :)
-
hi @cowboysdude ,
could you please give me (and maybe others) the detailed instruction how these files look in detail and where those are located?
thanks a lot in advance,
Christoph -
here is what i have done, actually it works - i will watch it a few days.
switch to /bin/
cd /
cd binopen nano and create a shell script
sudo nano monitor_on.sh
write the “On” Command in it and save with Ctrl+x
/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chat 7
open nano and create another shell script
sudo nano monitor_off.sh
write the “Off” Command in it and save with Ctrl+x
/opt/vc/bin/tvservice -o
make both shell scripts executable
sudo chmod +x monitor_off.sh
sudo chmod +x monitor_on.shopen the crontab and add the following at the end
switches the monitor off and on every 15 minutes. this is for experimenting, i will look how it works and will set the
time up as.
15 * * * * sudo /bin/monitor_off.sh
15 * * * * sudo /bin/monitor_on.sh
@reboot sudo modprobe bcm2835-vl2 -
Well hey Thanks for making that easy… was JUST working on that LOL I’m putting it on github with instructions and the files…
-
-
Update:
https://github.com/cowboysdude/Pir-Sensor
Monitor was only partially coming back on this should fix that.
-
my monitor won’t turn back on
when I run “npm start dev”, it shows “compare result=Infinity,Infinity;0,0” , seems like it can’t capture any movement
the camera module works outside MagicMirror
when I tried “sudo modprobe bcm2835-v4l2”, it says “modprobe: invalid option – ‘4’”
how can I fix this