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.

    Blackscreen after install MMM-PIR-Sensor

    Scheduled Pinned Locked Moved Troubleshooting
    15 Posts 5 Posters 8.2k Views 4 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
      Blackmirror
      last edited by

      I Have solve this problem without MMM-PIR-Sensor this a python-skript in rc.local.

      But bei DHT22 - Sensor is not working now, destroyed? But why?

      1 Reply Last reply Reply Quote 0
      • H Offline
        howesfam
        last edited by

        Hi Blacjscreen,

        I’m suffering the same problems, do you have alink to your python code?

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          Blackmirror @howesfam
          last edited by yawns

          @howesfam

          import RPi.GPIO as GPIO
          import time
          
          
          #Board Mode: Angabe der Pin-Nummer
          GPIO.setmode(GPIO.BOARD)
          
          #GPIO Pin definieren fuer den Dateneingang vom Sensor
          PIR_GPIO = 13
          Relay_GPIO = 37
          GPIO.setup(PIR_GPIO, GPIO.IN)
          GPIO.setup(Relay_GPIO, GPIO.OUT)
          GPIO.output(Relay_GPIO, True)
          GPIO.setup(32,GPIO.IN)
          
          read=0
          wait=0
          ein=0
          button=1
          
          while True :
             #PIR auslesen
             read = GPIO.input(PIR_GPIO)
             button = GPIO.input(32)
          
             if ((read==1 or button==0) and wait==0):
               GPIO.output(Relay_GPIO, False)
               wait=1
               ein=1
               time.sleep(0.5)
             elif ein==1 and button==0:
               ein=0
               time.sleep(0.5)
          

          Have found in the web and I have modified for me, the Pin 32 is a button to make the monitor, ampilifier and the mirror light always on.

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

            Having the same problem. Any solution ?

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

              Use the PIR-Senosr not with this modul, but with the python script.

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