MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Pir Sensor not shutting off screen.

    Tutorials
    2
    6
    838
    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.
    • T
      tinsebayacc last edited by

      Re: {HowTo} turn on/off your monitor (Time based

      I have followed this tutorial and its great thank you. i installed the pir module and everything works great. the only issue is my screen goes into a no signal screen with an annoying cube in the middle which i cannot disable. So, on a fresh install i tried the manual way and followed all steps to have my screen turn black instead of off when the pir detects motion but nothing happens. i have run my python pir.py and it detects my motions and gives me … everytime i move so i know its working ok. What have i missed? im new to the whole raspberry pi and programming world but im learning fast. I have a fully functional magic mirror with lots of 3rd party modules installed so im quite good with following instructions. Any help would be greatly appriciated.

      T S 2 Replies Last reply Reply Quote 0
      • T
        tinsebayacc @tinsebayacc last edited by

        @tinsebayacc
        This is the tutorial ive been following

        https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app

        1 Reply Last reply Reply Quote 0
        • S
          sdetweil @tinsebayacc last edited by

          @tinsebayacc some devices do not have the ability to turn to back… (none of my TV’s do)…

          I wrote my MMM-SleepWake (on github) module to provide the ability to hide all modules to darken the screen…
          its not off, and at night it has a glow (the backlight)… but its better than nothing…

          i don’t care how you detect motion, camera, pir, wave, …

          when you do, call my provided script with ‘started’, and when the motion ends, call it again with ‘ended’
          see the readme.

          set the “mode” to “hide”
          I use a webcam for motion detection

          Sam

          Create a working config
          How to add modules

          T 1 Reply Last reply Reply Quote 0
          • T
            tinsebayacc @sdetweil last edited by

            @sdetweil Thank you for your reply

            This would work for me. As I mentioned I am a beginner in all this. How would I configure your module to work with my pir sensor. Sorry if this seems a daft question, I’m still learning the ropes. Thanks

            T 1 Reply Last reply Reply Quote 0
            • T
              tinsebayacc @tinsebayacc last edited by

              @tinsebayacc

              Modify you script *

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @tinsebayacc last edited by sdetweil

                @tinsebayacc

                I just added some code to my module to handle PIR_SENSOR sending notice of user around…
                so you shouldn’t have to change anything there… well, stop it from turning off the display

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy