• 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.

PIR-Sensor - put your mirror to sleep if not used

Scheduled Pinned Locked Moved System
utilitygpiomotion-sensorpower-saving
56 Posts 32 Posters 96.9k Views 47 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.
  • B Offline
    Bangee Module Developer
    last edited by Feb 21, 2017, 9:17 AM

    @illskool
    Check this out:
    https://forum.magicmirror.builders/topic/569/mmm-pir-sensor-white-screen/39

    I 1 Reply Last reply Feb 22, 2017, 3:06 AM Reply Quote 0
    • D Offline
      djbosman @paviro
      last edited by Feb 21, 2017, 10:02 AM

      @paviro

      Hi!

      NOOB alert!!

      I have added the module, updated the config.js file accordingly, but then, with nothing connected, the screen turns completely white?? (Opposite to what I expect to happen).

      Could you kindly indicate what I might observe when it is running as expected? With a PIR connected, and without?

      I have learnt how to run “npm start dev”; What should I look for in that console if it is functioning?

      Or any other means of testing if it’s working, or where it is breaking?

      Much obliged!!

      1 Reply Last reply Reply Quote 0
      • D Offline
        djbosman @paviro
        last edited by Feb 21, 2017, 5:20 PM

        @paviro

        Hi!

        Just lest you miss my response to @Bangee , I have resolved my problem.

        Bangee gives a step-by-step how to re-install the module, which helped me to get my device working.

        Thanx, once again, for a great module!

        Cheers!

        1 Reply Last reply Reply Quote 2
        • I Offline
          illskool @Bangee
          last edited by Feb 22, 2017, 3:06 AM

          @Bangee Thanks for the assistance. I tried that link along with a couple of other suggestions that I came across from the forums but nothing worked. I went and ordered a new PIR sensor as a last resort and bam worked once I plugged it in. This is a great module. Its really going to save me some money in energy costs and increase the life of my MagicMirror Monitor.

          1 Reply Last reply Reply Quote 0
          • F Offline
            FlatPepsi
            last edited by Feb 25, 2017, 3:17 PM

            I don’t yet have my PIR sensor (soon!), but had a question.
            When the mirror is unused, with the monitor off, it doesn’t make sense to do frequent updates on all of the modules. I could tune those way back, if I could force a refresh on all modules when the PIR triggers a monitor wake-up.

            Is there an easy way to trigger a refresh of some/all modules when the PIR module senses a wake-up event?

            J 1 Reply Last reply Feb 26, 2017, 8:15 PM Reply Quote 0
            • J Offline
              Jopyth Moderator @FlatPepsi
              last edited by Jopyth Feb 26, 2017, 8:15 PM Feb 26, 2017, 8:15 PM

              @FlatPepsi I have implemented this to a few of my own modules, and it is relatively simple to add, depending on which modules you want to adapt. However it will require some fiddling with the code of the modules.

              Helpful sticky: How to troubleshoot

              F S 2 Replies Last reply Feb 26, 2017, 8:20 PM Reply Quote 0
              • F Offline
                FlatPepsi @Jopyth
                last edited by FlatPepsi Feb 26, 2017, 8:22 PM Feb 26, 2017, 8:20 PM

                @Jopyth OK, I’m game. Can you share how that would work?

                I just saw a module to play a sound on events- maybe I could also add a cool sound when the monitor wakes/sleeps. Either a Disney-style magic sound, or a StarTrek computer sound…

                J 1 Reply Last reply Feb 26, 2017, 8:25 PM Reply Quote 0
                • J Offline
                  Jopyth Moderator @FlatPepsi
                  last edited by Feb 26, 2017, 8:25 PM

                  @FlatPepsi I have made a helper function here. This basically works like a normal setInterval, except it stops, when noone is present, and immediately exectues when a someone comes back. The helper functions for this are here, you can probably just copy and paste them. And then you finally need to check incoming notifications like this.

                  Helpful sticky: How to troubleshoot

                  1 Reply Last reply Reply Quote 1
                  • M Offline
                    MobbareKurtZ
                    last edited by Apr 10, 2017, 8:01 PM

                    Thanks for this awesome module, works like a charm!

                    I have one question though, would it be possible in some way to make the sensor inactive a specific time of the day? So that the screen won’t turn on no matter what.

                    1 Reply Last reply Reply Quote 1
                    • F Offline
                      fox
                      last edited by Apr 28, 2017, 2:43 PM

                      Does the problem has known issues with MMM-Remote? Even if i once edit the powerDelay with MMM-Remote it breaks the config file.
                      Any other module works with the Remote module.

                      Could you please check this?

                      Issues With MMM-WatchDog known?

                      https://forum.magicmirror.builders/post/29827

                      Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

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