• 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 Troubleshooting
126 Posts 37 Posters 205.6k Views 20 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.
  • P Offline
    paviro Admin @joerod
    last edited by May 21, 2016, 4:55 PM

    @joerod please use Markdown on code snippets so it is easier to read! :) have you installed all the dependencies (also for the mirror itself?)
    @MichMich any idea?

    We're all stories in the end. Just make it a good one, eh?

    – The Doctor

    J 1 Reply Last reply May 21, 2016, 5:08 PM Reply Quote 0
    • M Offline
      MichMich Admin
      last edited by May 21, 2016, 5:03 PM

      Sorry, no clue. :(

      1 Reply Last reply Reply Quote 0
      • J Offline
        joerod @paviro
        last edited by May 21, 2016, 5:08 PM

        @paviro I had to downgrade to node 5.0.0, I confirmed its that version of node. After the downgrade I removed the PIR module and did a git clone and then npm install in the folder. Still the same thing, is there a specific version of node 5 I should be using or a specific version of npm?

        I’m running it from
        /home/pi/MagicMirror/modules/MMM-PIR-Sensor

        P 1 Reply Last reply May 21, 2016, 5:09 PM Reply Quote 0
        • M Offline
          MichMich Admin
          last edited by May 21, 2016, 5:09 PM

          Could you try it with node serveronly ?

          1 Reply Last reply Reply Quote 0
          • P Offline
            paviro Admin @joerod
            last edited by May 21, 2016, 5:09 PM

            @joerod also do npm install on the mm folder or install the whole thing from scratch :)

            We're all stories in the end. Just make it a good one, eh?

            – The Doctor

            1 Reply Last reply Reply Quote 0
            • D Offline
              DirkS @paviro
              last edited by May 23, 2016, 7:25 AM

              @paviro as a feedback: i used the latest MMM branch and yours and it is working fine with my PIR sensor on a rpi2. I didn’t had to downgrade anything to node 5 (and i also don’t know what it is :D ) Thanks for your work. It is so great that the mirror is starting if a presence is detected!!

              P 1 Reply Last reply May 23, 2016, 7:42 AM Reply Quote 0
              • P Offline
                paviro Admin @DirkS
                last edited by May 23, 2016, 7:42 AM

                @DirkS glad to hear! :)

                We're all stories in the end. Just make it a good one, eh?

                – The Doctor

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MechMatt
                  last edited by MechMatt May 26, 2016, 10:37 PM May 26, 2016, 10:30 PM

                  Hey Everyone!
                  I am trying to use this module to turn off/on a tv and im having a bit of trouble on the physical end of things… I got the module working perfectly (tested it with PIR and hdmi on/off). Now I am trying to use a relay with the PIR sensor to have the TV screen itself turn on and off. I was planning on wiring this to the TV power button (so it is essentially the same as pressing the on/off button).

                  I got the relay working… and I was about to take apart my tv when i thought…will even work for the on/off button? When it senses movement it will send the signal and then … turn off the tv I guess. As soon as the movement is undetected it stops sending the signal (or really pulse in this case)… just stopping wouldn’t turn the tv back on either. I guess it needs to send a pulse when it stops detecting movement, and then another one when it does again. Am I thinking about this wrong? Should I wire it to something else? Thanks in advance

                  M 1 Reply Last reply May 26, 2016, 10:53 PM Reply Quote 0
                  • M Offline
                    MechMatt @MechMatt
                    last edited by May 26, 2016, 10:53 PM

                    @MechMatt On second thought, im having trouble with the relay as well… could you post a wiring diagram for the pi, relay, and tv? I’m not the best at electronics

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      paviro Admin
                      last edited by paviro May 28, 2016, 1:13 AM May 28, 2016, 1:12 AM

                      To be honest the relay thing does not work that we’ll yet, still have to figure out some stuff related to how the Pi reacts when a monitor gets turned on after the boot process and not before.

                      As to your TV on/off button thing. The module simply puts s 3.3 volts on the configured Pin if the relay should be on and sets it back to 0 volts if it should be off. You can also configure it the other way around. Since I do not now how your TV button is wired I have no idea wheather it would work with this module without modifying some parts.

                      We're all stories in the end. Just make it a good one, eh?

                      – The Doctor

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 6
                      • 7
                      • 8
                      • 9
                      • 10
                      • 11
                      • 12
                      • 13
                      • 8 / 13
                      8 / 13
                      • First post
                        76/126
                        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