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 525.8k 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.
    • bheplerB Offline
      bhepler Module Developer @bibi
      last edited by

      @bibi Based on that pull request, it looks like it’s in the config.txt of your Pi. So /boot/config.txt

      B 1 Reply Last reply Reply Quote 0
      • D Offline
        DirkS
        last edited by

        @bibi yes you need to include it into /boot/config.txt

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          bibi @DirkS
          last edited by bibi

          @Dirks Thx!
          @bhepler Thx! i will add this option there under HDMI hotplug as i don’t know where else to add.

          1 Reply Last reply Reply Quote 0
          • B Offline
            bibi @bhepler
            last edited by

            @bhepler and @DirkS : any idea why my screen doesn’t stay off as long as no motion is detected??

            1 Reply Last reply Reply Quote 0
            • D Offline
              done @DirkS
              last edited by

              @DirkS Thank you. Pi doesn’t die over nights :D

              But before I mess it up:
              Would the motion detection with the common script work or not?
              How did you realize it? Where did you enter your new script?

              And don’t you want to make an additional motion detector module for those who have the same problem? :)
              I don’t see the original programmer caring to much. ;)

              cheers
              done

              1 Reply Last reply Reply Quote 0
              • D Offline
                DirkS
                last edited by

                @done as discribed above by @cpramhofer (thanks to you :) ) i created the monitor_on and off.sh script.
                With FHEM i’m polling the PIR status and use a DOIF to call on or off. Because my homeautomation depends in FHEM i have much more control instead of using a MM module, i switch much more devices with the PIR as well. I have several Pi’s with FHEM installed so it is also on the PI for the Mirror.

                1 Reply Last reply Reply Quote 1
                • D Offline
                  DirkS
                  last edited by

                  @bib you are providing a bit less information to give you some tipp.

                  B 2 Replies Last reply Reply Quote 0
                  • B Offline
                    bibi @DirkS
                    last edited by bibi

                    @DirkS ok here you go. 1st: when the Pi is started the screen directly goes into sleep. it’s a bit annoying but i can live with that as i will not reboot it everyday. 2nd: to wake up the system with a motion during this sleep mode, it takes quite a while (don’t know why) 3rd: when motion is detected, screen wakes up and stays up accordingly the time defined in config.js and goes sleep again (this is fine) but suddently it wakes up again without motion and this last behavior is unpredictable. i hope it’s enough info for you but don’t hesitate to ask more if needed. thx
                    moreover your script is i guess different from the one of this pull…

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      bibi @bibi
                      last edited by

                      @DirkS and i see now after few hours, it won’t wake up anymore :(

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bibi @DirkS
                        last edited by bibi

                        @DirkS forget my last posts… i restarted (reinstall MM) everything and i m trying to figure out how to avoid the black screen now…

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          chrisvanlaar
                          last edited by

                          This post is deleted!
                          C 1 Reply Last reply Reply Quote 0
                          • C Offline
                            chrisvanlaar @chrisvanlaar
                            last edited by chrisvanlaar

                            @chrisvanlaar said in Motion Detector:

                            After reading here the motion works on my MM.
                            Now ik want to go out of the sleep mode when a new mail or i get a phonecall. (it reads from my Fritzbox).
                            Can i build in this option also? or is it better in the phone/mail module.

                            Chris

                            I mean that i have the camera module connected to my PI3. In the /boot/config.txt i had the (@reboot sudo modprobe bcm2835-v4l2 ) and it works! :-)

                            Chris

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              alexyak
                              last edited by alexyak

                              Hi All,

                              I’ve revamped the motiondetector module to use a more optimised code to detect the motion from the web camera. The old one was performing very poorly. The new code works many times better. Just pull the latest from

                              https://github.com/alexyak/motiondetector

                              • Alex
                              1 Reply Last reply Reply Quote 1
                              • T Offline
                                trividar
                                last edited by

                                Hi Alex,
                                thank you so much for your work! Unfortunately my MM start with a black screen after the update. I tried to reboot my Raspi but it didn’t help. Should I make a npm install after the update?
                                THX

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  trividar
                                  last edited by

                                  and this is the error:
                                  error

                                  A 1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    alexyak @trividar
                                    last edited by

                                    @trividar My apologies. This should be fixed. Just pull the latest.

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      trividar
                                      last edited by

                                      @alexyak Now my MM start. But after awhile (2 min) i got this error and my MM freeze:

                                      alt text

                                      I disabled the DHT module but than i got this error:

                                      alt text

                                      Do you have also a solution for this? THX a lot!

                                      A 1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        alexyak @trividar
                                        last edited by

                                        @trividar I don’t see anything related to the motiondetector in your logs. It seems the error coming from the mmm-systemperature/node_helper.js

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          trividar
                                          last edited by

                                          I disabled mmm-systemperature and now I have no errors on my log but after first deactivation of the monitor my raspberry freeze completely. Before the pull everything works perfekt beside DHT, now nothing works ;o( strange…

                                          J 1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            jdahli1 @trividar
                                            last edited by

                                            @trividar I’m having a similar issue. My mirror will turn on and off a few times, but after a few minutes it will peg the RAM and completely lock up the pi. Not sure what to try next.

                                            in_a_daysI 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 13 / 11
                                            • 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