MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. radiv
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: My Mirror

      @kusselin Hab´s in einem Baumarkt gekauft.AFE4594A-F691-4C8A-8549-E41FF40B1D15.jpeg

      posted in Show your Mirror
      R
      radiv
    • RE: My Mirror

      @kusselin , habe auf die beschichtete Seite des Spiegels schwarze Folie geklebt ( nicht unbedingt blasenfrei, was aber nicht stört ) und vorher passgenau die Innenmaße zwischen der Metallfassung des Displays ausgeschnitten. Die Metallfassung wird also von der schwarzen Folie verdeckt.

      posted in Show your Mirror
      R
      radiv
    • RE: My Mirror

      So, ich mache mal auf deutsch weiter.
      Im Probeaufbau hatte ich den üblichen PIR-Sensor verbaut. Dazu das Modul: MMM-PIR-Sensor.
      Weitere Module: MMM-Notification-Trigger und MMM-MplayerRadio.
      Hat auch funktioniert, nur daß bei jedem Bewegungsimpuls eine Unterbrechung des Radios auftrat.
      Also ein BashScript mit ‘mpv https://sender-url &’ erstellt, in MMM-NotificationTrigger eingetragen und in monitor_off.sh ‘killall mpv’ geschrieben und probiert.
      Resultat war, dass bei jedem Auslösen des Pir-Sensors mpv erneut gestartet wurde und es zu einem amüsanten Echo kam.
      Gleiche Resultate mit dem Rada_Sensor, der, wie der Pir-Sensor, ebenso gut mit MMM-PIR-Sensor funktioniert.
      Zum Modul MMM-PIR-Sensor ist noch zu sagen, dass trotz hoher Delay-Zeit (20min) das Display nach ca.8-10min ausschaltete. Damit auch das Radio.
      Also habe ich nach einem externen Python-Script gesucht, auch gefunden, monitor_on/_off.sh modifiziert, die drei obenstehenden Module deinstalliert und es funktioniert.

      #!/usr/bin/env python
      
      import sys
      import time
      import RPi.GPIO as io 
      import subprocess
      
      io.setmode(io.BCM)
      SHUTOFF_DELAY = 900 # seconds
      PIR_PIN=22
      
      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()
                  if not turned_off and time.time() > (last_motion_time + 1):
                      time.sleep(.1)
      def turn_on():
          subprocess.call("sh /home/pi/monitor_on.sh", shell=True)
      
      def turn_off():
          subprocess.call("sh /home/pi/monitor_off.sh", shell=True)
      
      if __name__ == '__main__':
          try:
              main()
          except KeyboardInterrupt:
              io.cleanup()
      
      #!/bin/bash
      mpv https://www.radioeins.de/live.m3u &
      vcgencmd display_power 1
      
      #!/bin/bash
      vcgencmd display_power 0
      killall mpv
      
      posted in Show your Mirror
      R
      radiv
    • RE: My Mirror

      Tomorrow I tell you something about my problems with the modules.
      Radar and mpv are out of MM. There are Python and Bash- Script’s to solve the problems with mmm-thirdparty-modules.

      posted in Show your Mirror
      R
      radiv
    • RE: My Mirror

      @sdetweil thanks

      posted in Show your Mirror
      R
      radiv
    • My Mirror

      Hello everyone. Frist, sorry for my terrible english. Here are some pictures and a lot about the hardware.

      • mirrorglass: Mirastar Spionspiegel 4 mm, brigla-shop.de
      • frame: Nielsen - Alurahmen Profil 224 60x80 cm, Silber matt, AllesRahmen.de (depth= 4cm)
      • Radarsensor: RCWL-0516
      • shelly 1pm: is for charging the JBL- speaker, because I can see the amperage in the web interface
        72B9948F-68F6-4569-80E6-1FD958560113.jpeg

      24B9DCE6-D107-428E-9904-C620A2E3CAFF.jpeg

      61E1C864-2546-456F-8A89-13BF892F7EB3.jpeg

      3BBD8E9B-07B1-4F93-8700-DBDDAA29CC73.jpeg

      F39D99D4-9387-4391-BA45-440F8C0D89C6.jpeg

      FD9A5758-7AEC-4A24-A8C4-FC8E40597F65.jpeg

      posted in Show your Mirror
      R
      radiv
    • 1 / 1