• 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 Detection with RaspiCam, Non-Module version

Scheduled Pinned Locked Moved Tutorials
47 Posts 13 Posters 41.6k Views 17 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.
  • K Offline
    Kimzer
    last edited by Jun 25, 2017, 9:20 AM

    I am completely unable to make this work.
    The camera wont take any snapshots, maybe just a config error. But can someone confirm that this still works or show me something that works? Dont wanna go out and buy a pir sensor if i can make use of the raspicam. :)

    B 1 Reply Last reply Jun 29, 2017, 2:44 AM Reply Quote 0
    • B Offline
      bhepler Module Developer @Kimzer
      last edited by Jun 29, 2017, 2:44 AM

      @Kimzer - If the camera won’t even take a snapshot, then none of this is going to work. Have you tried the various tutorials about getting the PiCam to work? The ones that are at the basic level of “I enter this command and it takes a picture right then and there and I can download it”?

      Start with the official Getting Started Guide. Once you can get images from the camera to your Pi, come back.

      If you can get the camera to produce images but have trouble getting Motion to work, follow my tutorial and the part where it says “at this point you can test it but…”, stop there. Change the parameter in the motion.conf file named output_pictures to on and change on_event_start to echo Motion Detected!. That should put a bunch of snapshots on your memory card. Test Motion by entering ./motion -c motion.conf and you should see motion writing messages to the screen.

      1 Reply Last reply Reply Quote 0
      • K Offline
        Kimzer
        last edited by Jun 29, 2017, 4:25 AM

        Ah my bad, poorly formulated on my end here.

        I am able to take snapshots, and i have gotten the camera to work just fine itself. It is the motion part i am struggling with.

        But i will have to test some more.

        1 Reply Last reply Reply Quote 0
        • F Offline
          Freebond
          last edited by Sep 9, 2017, 8:58 PM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • N Offline
            Natacha3 @bhepler
            last edited by Sep 21, 2017, 8:28 AM

            @bhepler It works perfectly !
            Thank you so much for sharing !

            1 Reply Last reply Reply Quote 1
            • S Offline
              stangarrang
              last edited by Oct 22, 2017, 6:50 AM

              @bhepler I was hoping you could give me a hand. I’ve got your motion working but. Pm2 is not auto starting the motion. Everything is working fine if I manually “pm2 start motion” and " pm2 start mm" and I’ve tried adding @pm2 start motion to my auto start along side my “pm2 start mm” but that only breaks both processes. I’m trying to get both the magic mirror and the motion to auto start upon reboot.

              B 1 Reply Last reply Oct 23, 2017, 12:55 AM Reply Quote 0
              • B Offline
                bhepler Module Developer @stangarrang
                last edited by bhepler Oct 23, 2017, 12:55 AM Oct 23, 2017, 12:55 AM

                @stangarrang Sure, no problem. Quick question: Did you enter pm2 save after you started both the motion and the Magic Mirror processes?

                1 Reply Last reply Reply Quote 0
                • S Offline
                  stangarrang
                  last edited by Oct 23, 2017, 12:58 AM

                  @bhepler yes that was one of the first things I did but after reboot nothing was saving. Actually just as you replied I went through a couple steps for pm2 startup plus the command that came after. After that I did a pm2 save and now things are working well :) thanks for your prompt reply!

                  1 Reply Last reply Reply Quote 1
                  • A Offline
                    AnduriI
                    last edited by Nov 2, 2017, 8:03 PM

                    is it possible to use Motion to activate the screen and MMM-Facial-Recignition simultaneously? Maybe also use the on_event_start to activate some lights in the front of the MM to increase image quality…

                    B 1 Reply Last reply Nov 4, 2017, 12:48 PM Reply Quote 0
                    • B Offline
                      bhepler Module Developer @AnduriI
                      last edited by Nov 4, 2017, 12:48 PM

                      @AnduriI It should be. The motion system will operate independently of the mirror and only controls the signal running down the HDMI cable to the monitor. The Pi camera and the Magic Mirror process are still running.

                      If you create a simple python script to control the pinouts on the Pi, you should be able to switch on some simple LED lights to illuminate the front of the mirror.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 2 / 5
                      • First post
                        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