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

    Posts

    Recent Best Controversial
    • RE: Mirror in Spain

      Por cierto, si te interesa, tenemos un grupo de telegram en español acerca del magic mirror / smart mirror. No somos muchos miembros por ahora, pero a lo mejor alguien te puede dar alguna información más acerca de lo que buscas.

      Este es el enlace: https://t.me/smartmirrorRPI

      By the way, if you’re interested, we have a telegram group in Spanish about the magic mirror / smart mirror. We are not many members for now, but maybe someone can give you some more information about what you are looking for.

      This is the link: https://t.me/smartmirrorRPI

      posted in General Discussion
      qu1queQ
      qu1que
    • RE: Mirror in Spain

      Que tamaño buscas? en el enlace puedes seleccionar varias medidas para la lámina acrílica. Si te interesara un espejo de cristal (más caro), hay un usuario en el foro que vende 2 a un 10% de descuento. Este es el enlace: https://forum.magicmirror.builders/topic/8421/i-sell-2-x-two-way-mirrors-out-of-remnant-stock-with-10-discount

      What size are you looking for? in the link you can select several measurements for the acrylic sheet. If you are interested in a glass mirror (more expensive), there is a user in the forum that sells 2 to 10% off. This is the link: https://forum.magicmirror.builders/topic/8421/i-sell-2-x-two-way-mirrors-out-of-remnant-stock-with-10-discount

      posted in General Discussion
      qu1queQ
      qu1que
    • RE: I sell 2 x two way mirrors out of remnant stock *with 10 % discount*

      I will post this with your permission in a telegram group in Spanish, of which I am an administrator, in case there is someone interested.

      posted in Hardware
      qu1queQ
      qu1que
    • RE: Mirror in Spain

      @kaesiano

      I bought the acrylic sheet on Amazon USA (amazon.com). This is the link: https://www.amazon.com/gp/product/B017ONH3EG/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

      Yo compré la lámina acrílica en Amazon USA (amazon.com). Este es el enlace: https://www.amazon.com/gp/product/B017ONH3EG/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

      posted in General Discussion
      qu1queQ
      qu1que
    • RE: SPAM???

      @MichMich A lot of SPAM!

      posted in Forum
      qu1queQ
      qu1que
    • RE: PIR Sensor - Sleep LCD monitor

      Finally, I’ve finnished my script, and it works like a charm. I paste it here if someone else need it.

      #!/usr/bin/python3
      
      # PACKAGES NEEDED TO WORK:  sudo apt install python3 python3-rpi.gpio
      
      # My screen has an USB port, that turns on when screen is on, and off when screen is off.
      # So, I made a voltage divider with a few resistors to get 3 volts, to activate pin 6 (BCM) 
      # on the raspberry Pi. In this way, the script can 'know' if Screen is ON or OFF.
      
      import RPi.GPIO as GPIO
      import time
      import subprocess
      from subprocess import call
      
      GPIO.setmode(GPIO.BCM)
      GPIO.setup(22, GPIO.IN)		                  # PIR's output
      GPIO.setup(6, GPIO.IN)                            # Screen power detector
      GPIO.setup(25, GPIO.OUT)	                  # Relay Input
      GPIO.setwarnings(False)
      
      while (GPIO.input(6) == 0):                       # IF SCREEN IS ON
          if (GPIO.input(22) == 1):                     # PIR DETECTS MOTION
              call(('/opt/vc/bin/vcgencmd', ' display_power', '1'))
              GPIO.output(25, GPIO.HIGH)                # RELAY ACTIVATION
              time.sleep(3)
              GPIO.output(25, GPIO.LOW)
              time.sleep(60)                            # THE TIME WE WANT THE SCREEN TO STAY ON
              if (GPIO.input(22) == 1):                 # IF PIR DETECTS A NEW MOVEMENT, 
                  time.sleep(60)                        # ACTIVATES THE MIRROR ANOTHER AMOUNT OF SECONDS
              else:
                  GPIO.output(25, GPIO.HIGH)           # WITH THIS LINE, THE SCREEN POWERS OFF TO SAVE ENERGY
                  time.sleep(3)
                  GPIO.output(25, GPIO.LOW)	
          else:
              GPIO.output(25, GPIO.LOW)
      
      while (GPIO.input(6) == 1):                       # IF SCREEN IS OFF
          if (GPIO.input(22) == 1):                     # PIR DETECTS MOTION
              call(('/opt/vc/bin/vcgencmd', ' display_power', '1'))
              GPIO.output(25, GPIO.LOW)               # SAME AS ABOVE, BUT THIS TIME DON'T ACTIVATE THE RELAY
              time.sleep(60)
              if (GPIO.input(22) == 1):
                  time.sleep(60)
              else:
                  GPIO.output(25, GPIO.HIGH)      # WITH THIS LINE, THE SCREEN POWERS OFF TO SAVE ENERGY, AGAIN
                  time.sleep(3)
                  GPIO.output(25, GPIO.LOW)
          else:
              GPIO.output(25, GPIO.LOW)
      
      call(('/usr/bin/python3', '/home/pi/SCRIPTS/pir.py'))
      
      posted in Hardware
      qu1queQ
      qu1que
    • RE: PIR Sensor - Sleep LCD monitor

      @cruunnerr
      I’ve tried that script yesterday, but it didn’t work for me. Thanks anyway

      posted in Hardware
      qu1queQ
      qu1que
    • RE: PIR Sensor - Sleep LCD monitor

      Hello, Have you already solved this issue? I am with the same idea, I have the PIR, a 3.3V relay and a python script so that, when it detects presence, the relay is activated and makes contact on the button to turn the screen on or off.

      The sript I’m using is this:

      import RPi.GPIO as GPIO
      import time
      
      GPIO.setmode(GPIO.BCM)
      GPIO.setup(22, GPIO.IN)
      GPIO.setup(25, GPIO.OUT)
      GPIO.setwarnings(False)
      
      while True:
          if GPIO.input(22):
            	GPIO.output(25, GPIO.HIGH)
          else:
      	GPIO.output(25, GPIO.LOW)
      

      PIR output is connected on pin 22 (BCM). Relay input is connected on pin 25 (BCM).

      This simple script works correctly, but I want to go one step further. With this crypt, the screen is turned on or off when detecting presence.

      My idea is that (when the screen is off), when detecting presence, the screen will turn on for a while (for example 5 minutes), and then turn off again.

      For that purpose, I made this modification on the original script:

      import RPi.GPIO as GPIO
      import time
      import commands
      
      GPIO.setmode(GPIO.BCM)
      GPIO.setup(22, GPIO.IN)
      GPIO.setup(25, GPIO.OUT)
      GPIO.setwarnings(False)
      
      while True:
          if GPIO.input(22):
            	GPIO.output(25, GPIO.HIGH)
              commands.getoutput('vcgencmd display_power 1')
              time.sleep (300)
              commands.getoutput('vcgencmd display_power 0')
          else:
      	GPIO.output(25, GPIO.LOW)
      

      But this modification doesn’t work. Could someone help me with this? My knowledge in python is very elementary

      posted in Hardware
      qu1queQ
      qu1que
    • RE: mmm-wu-moon-phases - Moonphases from Weather Underground

      @mykle1 Thanks. Cool module! I will try it.

      posted in Utilities
      qu1queQ
      qu1que
    • mmm-moon-phases don't work for me

      @spectroman

      Hi, I’ve been using the mmm-moon-phases module for a couple of months without a problem, until yesterday. Suddenly, it stopped working. I tried to re-install it, but it does not load the image of the moon. Which may be due?

      I think the problem is that in the module git page https://github.com/spectroman/mmm-moon-phases, on the cache directory there isn’t any image of the moon, bu ti’m not sure…

      My installation of Magic Mirror is in a raspberry pi Zero W. It is a shame, because it is a module that I consider quite interesting.

      Thanks.

      posted in Troubleshooting
      qu1queQ
      qu1que
    • 1
    • 2
    • 9
    • 10
    • 11
    • 12
    • 13
    • 12 / 13