Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. Sceetch
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 8
    • Best 0
    • Groups 0

    Sceetch

    @Sceetch

    0
    Reputation
    3
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Sceetch Follow

    Latest posts made by Sceetch

    • RE: PIR Sensor won't wake up

      @jste84
      i guess i have the same issue.
      you can try easily with this module

      https://github.com/bugsounet/MMM-NewPIR

      you can change inside the module the mode

      mode: 1 - use vgencmd
      mode: 3 - use tvservice

      in my case it works. But i think i have an adjustment problem.

      The screen turns off and also the sensor can wake up the screen again.
      But if there is no movement, the screen turn on randomly. Currently i have no solution. I guess there is some wrong settings on sensors Potentiometer.

      posted in Troubleshooting
      S
      Sceetch
    • RE: PIR Sensor won't wake up

      @sdetweil
      Hi sdetweil, this was a good hint. I think the problem are the adjustments of the sensor itselfs. the time values in my previous post changed now. But the problem still exists.

      The reason why the screen wake up without movement is, the overlapping of signals. there is one delay in the script, but also one of the Sensor. If the script turns off the screen and the sensor gives also a signal regarding the time delay a little later, the screen will turn on again. so my opinion.

      But what is now the best adjustment of it?
      is it possible to inactivate the time delay of the sensor itself?

      In what position is the jumper to be set?
      sensivity of it should be clear. thats a customized value for the different situations.

      posted in Troubleshooting
      S
      Sceetch
    • RE: PIR Sensor won't wake up

      @sdetweil thx for your comment.

      I guess the sensor works.
      If i start this script, the sensor switch after 2 minutes off.
      If the sensor receives movements, the screen turn on, so i think it works. But i will test your script in the evening.

      If there is no movement registered from the sensor the screen switch on after 1 minute.

      I don’t understand why the countdown is 2 min? In the script the delay time is setted by 10 sec.

      And why the screen turns on after another one minute. If there is no signal from the sensor??

      posted in Troubleshooting
      S
      Sceetch
    • RE: PIR Sensor won't wake up

      @dbg i’m using Raspberry Pi 3 Modell B Plus (B +)

      I have no idea whats wrong.
      I can change the delay time value randomly. There is no effect. After exact 2 minutes the screen turn off.

      Could it be, there is something activated in the tvservice?

      posted in Troubleshooting
      S
      Sceetch
    • RE: PIR Sensor won't wake up

      hi.
      There are some news about my Sensor problem.

      i tried to install these steps according this link

      https://teilzeitrebell.de/blog/magicmirror-part-2-bewegungsmelder

      i made two sh-scripts for screen on & off

      monitor_off.sh
      monitor_on.sh

      then i created this phyton

      pir_loop.py

      !/usr/bin/env python
      
      import sys
      import time
      import RPi.GPIO as io
      import subprocess
      
      io.setmode(io.BCM)
      SHUTOFF_DELAY = 10  # seconds
      PIR_PIN = 17        # Pin 11 on the board
      
      def main():
          io.setup(PIR_PIN, io.IN)
          turned_off = False
          last_motion_time = time.time()
      
          while True:
              if io.input(PIR_PIN):
                  last_motion_time = time.time()
                  sys.stdout.flush()
                  if turned_off:
                      turned_off = False
                      turn_on()
              else:
                  if not turned_off and time.time() > (last_motion_time + SHUTOFF_DELAY):
                      turned_off = True
                      turn_off()
              time.sleep(.1)
      
      def turn_on():
          subprocess.call("sh /home/pi/Pir-Sensor/monitor_on.sh", shell=True)
      
      def turn_off():
          subprocess.call("sh /home/pi/Pir-Sensor/monitor_off.sh", shell=True)
      
      if __name__ == '__main__':
          try:
              main()
          except KeyboardInterrupt:
              io.cleanup()
      

      i can start this with

      python pir_loop.py
      

      and it seems that it works.

      But in the code i defined a delay of 10 seconds. But after it, it happend nothing.
      the weird thing is, that the screen turn off after exact 2 minutes. If i move in front of the sensor the screen turn on again.
      But if i do nothing or cover the sensor with something the screen turn on after exact one minute.

      does anybody has an idea, whats wrong there?

      posted in Troubleshooting
      S
      Sceetch
    • RE: PIR Sensor won't wake up

      Thx. now the table should be clear.
      But the PIR doesn’t work.
      After delay the screen switch off.
      But i can breakdance in front of the sensor. It happend nothing…

      but if i remove the cable from sensorpin 23 the sceen wakes up.

      posted in Troubleshooting
      S
      Sceetch
    • PIR Sensor won't wake up

      Hi guys,

      i want to install for my Magicmirror project a PIR Sensor (HC-SR501) for switching the monitor automatically on/off.

      i have already tested MMM-PIR-Sensor and MMM-PIR. But both have the same issue.

      After the adjusted delay the monitor switches off. But there is no chance to wake it up again.

      It seems to me that i have installed something wrong in the pins.
      In both modules i need a value for sensorPin:
      That mean the "out"wire of the PIR? thats right. That mean according my Occupancy i have to put “16” into it?
      20210219_213752.jpg

      please help!

      posted in Troubleshooting
      S
      Sceetch
    • second calendar modul

      hey guys,
      sorry for this stupid question but i’m on the beginning to set up a magic mirror.

      i want to realize two calendars side by side.
      i guess i have to add two times the calendar module? i tried this but it doesen’t work.
      does anybody has an example code for a case like this?

      Thanks in advance
      Markus

      posted in Troubleshooting
      S
      Sceetch