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: MMM-Lunartic

      @mykle1

      Hahaha, I’ve heard it two or three days days ago, on last full moon. Awesome!! My sister heard it and she was scared with the wolf sound, hahaha.

      posted in Education
      qu1queQ
      qu1que
    • RE: Bathroom Magic Mirror

      Wow!! I like your mirror a lot. Impressive the final result. What are the buttons for?

      posted in Show your Mirror
      qu1queQ
      qu1que
    • RE: MMM-Lunartic

      @mykle1

      Hi! I really like this module! It’s so cool!! I’ve just recently updated it to the last version, and I can’t wait for next full moon to hear the wolf audio. I have one doubt about it, when that sound it will be played? Ramdomly or how?

      Thanks!

      posted in Education
      qu1queQ
      qu1que
    • My bathroom smart mirror.

      Hi!

      First of all I would like to thanks to @goldjunge_chriz for the opportunity to acquire a 2-way mirror. It is impressive, much better than the acrylic sheet. And, I’d like to thanks to @MichMich too for the Magic Mirror software.

      Here I leave some pictures of the montage that I was doing this last summer, at leisure. I have been quite happy with the result. I hope you like it!

      I am going to try not to extend myself too much with the explanations, if someone has any doubts, I will kindly answer him.


      The bathroom cabinet consists of 2 pieces: a frame and a door:

      0_1537986196178_0607_173319.jpg

      0_1537986208894_0614_164110.jpg

      0_1537986224219_0616_113111.jpg


      A coat of paint…

      0_1537986286535_0616_115341.jpg

      0_1537986328433_0725_130451.jpg


      The screen of a second-hand 24-inch LCD TV

      0_1537986410698_0725_125051.jpg

      0_1537986418743_0725_124752.jpg

      0_1537986432842_0725_124820.jpg

      0_1537986637705_0727_185026.jpg

      0_1537986651261_0727_202409.jpg


      To correct these errors in the cut with the electric saw, I have put some plastic corners and black silicone. This is the result:

      0_1537986808768_0728_170120.jpg

      0_1537986820628_0728_170147.jpg


      E.L. wire installation:

      0_1537986939909_0728_133140.jpg

      0_1537986957196_0728_133150.jpg

      0_1537986967216_0728_133156.jpg

      0_1537987056166_0728_140218.jpg

      0_1537987141279_0728_163211.jpg

      0_1537987187134_0728_170120.jpg

      0_1537987445903_0729_113651.jpg

      0_1537987490033_0729_113659.jpg


      Mirror installation:

      0_1537987257410_0802_211332.jpg

      0_1537987268275_0811_142230.jpg
      The mirror was glued with black silicone too

      0_1537987324216_0811_143332.jpg

      0_1537987333126_0811_144935.jpg


      Preparation of the electrical wiring in the frame…

      0_1537987416196_0811_141000.jpg

      0_1537987742317_0811_150336.jpg

      … and the TV speakers. I designed a simple piece in 3D to put them inside (they are available in thingiverse in case someone is interested).

      0_1537987619280_0805_133050.jpg


      Final assembly:

      0_1537987691163_0815_185507.jpg

      0_1537987705865_0816_195158.jpg

      0_1537987788665_0816_194842.jpg

      0_1537987849650_0816_205618.jpg
      Detail of Raspberry Pi 3B


      Last adjustments and … It works !!!

      0_1537987914503_0817_185839.jpg

      0_1537987944995_213058.jpg


      I have made a pdf with the connection scheme of all the electronic part that you can see here (I’ve had to convert to png previously to put it here):

      0_1537988735274_esquema_instalacion.png

      And here is the python3 script to make it all works:

      #!/usr/bin/python3
      # Para que funcione correctamente, hay que instalar los siguientes
      # paquetes:   sudo apt install python3 python3-rpi.gpio
      
      # Script que activa la pantalla y el EL wire cuando detecta movimiento
      # a través del sensor de presencia PIR
      
      import RPi.GPIO as GPIO
      import time
      import os
      
      GPIO.setmode(GPIO.BCM)
      GPIO.setup(22, GPIO.IN)						# SALIDA DEL PIR (PIR OUTPUT)
      GPIO.setup(23, GPIO.OUT)					# EL WIRE (CABLE ELECTROLUMINISCENTE)
      GPIO.setwarnings(False)
      
      time.sleep(120)
      os.system('vcgencmd display_power 0')
      
      while True:
          if (GPIO.input(22) == 1):		                # SI DETECTA PRESENCIA (IF MOTION IS DETECTED)
              os.system('ogg123 -qz /media/pi/MUSICA/ &')	# ACTIVA LA MÚSICA (TURN MUSIC ON)
              os.system('vcgencmd display_power 1')	        # ACTIVA HDMI --> ACTIVA PANTALLA (TURN ON SCREEN)
              GPIO.output(23, GPIO.HIGH)			# ENCIENDE EL ELWIRE (TURN ON EL WIRE)
              time.sleep(600)					# "DUERME" 10 MINUTOS (SLEEP 10 MINUTES)
              os.system('vcgencmd display_power 0')		# APAGA SALIDA HDMI --> APAGA PANTALLA (TURN OFF SCREEN)
              GPIO.output(23, GPIO.LOW)			# APAGA EL WIRE (TURN OFF EL WIRE)
              os.system('sudo pkill ogg123')			# MATA PROCESO MÚSICA (TURN OFF MUSIC)
      

      And you can watch a video here:

      https://www.youtube.com/watch?v=WOjyTtQLJ6w


      I hope you like it as much as I do!!

      So far I have not managed to make the music stop when the push button is pressed, but I will end up getting it …

      posted in Show your Mirror
      qu1queQ
      qu1que
    • RE: I can't upload pictures in a forum post

      thanks @Mykle1, I will try it.

      posted in Bug Hunt
      qu1queQ
      qu1que
    • I can't upload pictures in a forum post

      Hi!

      I’m trying to make a new post about my new smart mirror on the “Show your mirror” section, but when I try to upload a picture I’m getting the following error:

      “Request Entity Too Large”

      Initially, the error was that the picture was over 2048 KB, so I resized it, but now its size is 1.6 MB and I can’t upload any picture, it shows me the error I commented some lines above.

      I hope someone can help me.

      posted in Bug Hunt
      qu1queQ
      qu1que
    • RE: Does a hardware on/off button conflict with the mirror software?

      @MWel1977
      Hi,

      It should work without problem with any raspberry with raspbian installed, and MagicMirror works on raspbian ;). The important thing is to connect the button in the apropiate GPIO pins and then the scripts point to that pins. I think the tutorial of the link it should work. Follow instructions on that tutorial.

      Make sure the button is a push button instead of a switch.

      posted in Hardware
      qu1queQ
      qu1que
    • RE: [DONE] New two way community order for all european countries - Open until 03 June 2018

      Sure! thank you!

      posted in Hardware
      qu1queQ
      qu1que
    • RE: [DONE] New two way community order for all european countries - Open until 03 June 2018

      Hello @Goldjunge_Chriz, I’ve received the mirror today. I liked it a lot, only that I had made up the idea that it was a little thicker, but even better for the piece of furniture that I am building (I will put pictures in the “show your mirror” section of the forum when is finished).

      I just wanted to ask you a question, in one of the faces of the mirror, there is a film of very fine material, which can be extracted. Does that mean there is one face through which you look better than the other? Or in other words, what is the purpose of protecting only one of the faces with that film? (I put a picture of it)

      0_1533241687008_photo_2018-08-02_21-34-02.jpg

      Regards and thank you very much for the management!

      posted in Hardware
      qu1queQ
      qu1que
    • 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
    • 3
    • 4
    • 5
    • 6
    • 7
    • 6 / 7