• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Motion Detector

Scheduled Pinned Locked Moved Utilities
213 Posts 38 Posters 460.2k Views 39 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    cpramhofer @cowboysdude
    last edited by Sep 18, 2016, 12:10 PM

    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

    1 Reply Last reply Reply Quote 0
    • C Offline
      cpramhofer
      last edited by Sep 18, 2016, 2:27 PM

      here is what i have done, actually it works - i will watch it a few days.

      switch to /bin/

      cd /
      cd bin

      open 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.sh

      open 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

      1 Reply Last reply Reply Quote 0
      • C Offline
        cowboysdude Module Developer
        last edited by cowboysdude Sep 18, 2016, 2:29 PM Sep 18, 2016, 2:28 PM

        Well hey Thanks for making that easy… was JUST working on that LOL I’m putting it on github with instructions and the files…

        1 Reply Last reply Reply Quote 0
        • C Offline
          cowboysdude Module Developer
          last edited by Sep 18, 2016, 3:08 PM

          https://github.com/cowboysdude/Pir-Sensor

          1 Reply Last reply Reply Quote 0
          • C Offline
            cowboysdude Module Developer
            last edited by Sep 20, 2016, 1:03 AM

            Update:

            https://github.com/cowboysdude/Pir-Sensor

            Monitor was only partially coming back on this should fix that.

            1 Reply Last reply Reply Quote 0
            • C Offline
              chengstark
              last edited by Sep 22, 2016, 12:40 AM

              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

              1 Reply Last reply Reply Quote 0
              • C Offline
                cpramhofer
                last edited by Sep 23, 2016, 2:22 PM

                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

                C 1 Reply Last reply Sep 24, 2016, 1:47 AM Reply Quote 0
                • C Offline
                  cpramhofer
                  last edited by Sep 23, 2016, 3:53 PM

                  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=0

                  good luck

                  D 1 Reply Last reply Oct 26, 2016, 6:37 PM Reply Quote 0
                  • C Offline
                    cowboysdude Module Developer @cpramhofer
                    last edited by Sep 24, 2016, 1:47 AM

                    @cpramhofer There is a module for camera control… cannot remember the name of it but look around here I KNOW there’s one here.

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cpramhofer
                      last edited by Sep 25, 2016, 9:10 AM

                      hi @cowboysdude,

                      i´m sorry - i thought we are all speaking about the camera based motion detection by @alexyak
                      https://github.com/alexyak/motiondetector

                      have a nice sunday!

                      C 1 Reply Last reply Sep 25, 2016, 1:32 PM Reply Quote 0
                      • 1
                      • 2
                      • 6
                      • 7
                      • 8
                      • 9
                      • 10
                      • 21
                      • 22
                      • 8 / 22
                      8 / 22
                      • First post
                        74/213
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy