Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.

    My Mirror

    Show your Mirror
    3
    10
    943
    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.
    • R
      radiv last edited by

      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

      S 1 Reply Last reply Reply Quote 4
      • S
        sdetweil @radiv last edited by

        @radiv nice!

        R 1 Reply Last reply Reply Quote 0
        • R
          radiv @sdetweil last edited by

          @sdetweil thanks

          1 Reply Last reply Reply Quote 0
          • R
            radiv last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • R
              radiv last edited by

              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
              
              1 Reply Last reply Reply Quote 0
              • kusselin
                kusselin last edited by

                Hi, wie dunkelst Du das Display am Rand ab wenn der Rand des Displays silber ist?

                Gruss

                R 1 Reply Last reply Reply Quote 0
                • R
                  radiv @kusselin last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • kusselin
                    kusselin last edited by

                    ahh o.k danke für die Info…welche Folie kann ich da nehmen ? Hast du einen Link eventuell?

                    Danke und Gruss

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      radiv @kusselin last edited by

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

                      1 Reply Last reply Reply Quote 0
                      • kusselin
                        kusselin last edited by kusselin

                        o.k. danke dir…

                        und das ist SCHWARZFOLIE keine Spiegelfolie???

                        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