Read the statement by Michael Teeuw here.
Motion Detector
- 
 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 scriptsudo 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 scriptsudo nano monitor_off.sh write the “Off” Command in it and save with Ctrl+x/opt/vc/bin/tvservice -o make both shell scripts executablesudo chmod +x monitor_off.sh 
 sudo chmod +x monitor_on.shopen the crontab and add the following at the endswitches the monitor off and on every 15 minutes. this is for experimenting, i will look how it works and will set thetime 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
- 
 Hi @cowboysdude thank you for your files and the explanation. what i don´t understand is how this all works together with the “Motion Detector” - i would prefere to use a camera instead of a PIR Sensor but as far as i see i have to install the pir.py file which is calling the on&off files and referring to the PIN with the connected PIR sensor. is there a way to use the on&off files with the “Motion Detector” Module? greets 
 Christoph
- 
 Hi guys as it looks that it isn´t an MM problem but an Pi Problem…another try: sudo nano /etc/kbd/config change the values to zero BLANK_TIME=0 
 POWERDOWN_TIME=0good luck 
- 
 @cpramhofer There is a module for camera control… cannot remember the name of it but look around here I KNOW there’s one here. 
- 
 hi @cowboysdude, i´m sorry - i thought we are all speaking about the camera based motion detection by @alexyak 
 https://github.com/alexyak/motiondetectorhave a nice sunday! 

