• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. qu1que
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

qu1que

@qu1que

Project Sponsor
27
Reputation
2.0k
Profile views
129
Posts
2
Followers
0
Following
Joined May 20, 2018, 4:32 PM
Last Online Feb 9, 2025, 8:03 AM

qu1que Unfollow Follow
Project Sponsor

Best posts made by 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
    Sep 26, 2018, 7:15 PM
  • RE: Starting a new project: Magic Mirror on a small 2.2 inches screen

    One step more on this project

    photo_2020-07-28_22-30-23.jpg

    posted in Show your Mirror
    qu1queQ
    qu1que
    Jul 28, 2020, 8:30 PM
  • RE: Considering taking donations to support the MagicMirror project. Interested in your thoughts!

    I think it is a good idea to make donations voluntarily so that the project continues to grow or at least to be maintained and, if possible, without advertisements.

    It could be chosen by the person who makes the donation if they want to make a punctual or periodic donation.

    As for the payment method, I could not advise you much, since I only know paypal.

    Another idea could be that from time to time there will be a draw where interested people pay a small amount for each number (for example, numbers from 00 to 99). And the prize could be a raspberry, a screen, even a complete magic mirror. With the idea of financing the project. I do not know, it’s just an idea.

    Regards!

    posted in MagicMirror
    qu1queQ
    qu1que
    Jan 30, 2019, 10:52 PM
  • RE: 1 old noob + 1 rPi = I can't believe I did it! (revisited)

    @Mykle1

    I’ve just discovered Eyecandy module, it’s great!! Thanks for your job!

    Anyway, two eyes see better than one :face_with_stuck-out_tongue:

    ezgif.com-video-to-gif.gif

    posted in Show your Mirror
    qu1queQ
    qu1que
    May 3, 2020, 11:03 AM
  • RE: Do you use a PIR sensor? How do you hide it?

    I’ve made an 8 mm hole, as you can see here:

    https://forum.magicmirror.builders/topic/7263/my-first-smart-mirror-in-a-frame-of-40-x-30-cm-with-raspberry-pi-zero-w/2

    posted in Hardware
    qu1queQ
    qu1que
    Mar 14, 2019, 3:03 PM
  • 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
    Nov 27, 2018, 12:39 AM
  • RE: MMM-SolarPicture

    Very nice module!! I just tested it and it looks great next to the MMM-Lunartic module.

    0_1577009374696_IMG_20191222_110145_8.jpg

    I wonder if it will be possible to show all the images from the SDO website one after the other, setting the time between one and another, so you can see them all consecutively.

    Great work. Thanks for sharing!

    Greetings, Quique.

    posted in Entertainment
    qu1queQ
    qu1que
    Dec 22, 2019, 10:09 AM
  • My first smart mirror in a frame of 40 x 30 cm with Raspberry Pi Zero W

    At the moment I only have the modules by default and some simple ones from third parties. In the future I hope to add some more, such as a presence detector to turn on the monitor when it detects movement. I’d like to show you some pictures of the project.

    If you prefer, you can watch a video on youtube about my mirror in this link:
    https://www.youtube.com/watch?v=JmT4wroDmCY (WITHOUT THE PIR AND THE RELAY)

    https://www.youtube.com/watch?v=a5RfCQVqrJo&t=6s (WITH THE PIR, RELAY AND SCRIPT WORKING)


    0_1527600294590_2013-11-26 15.32.28.jpg

    0_1527600460622_IMG_20180514_232826_pequeña.jpg

    0_1527600527366_IMG_20180527_201828_pequeña.jpg

    These little holes are for, from left to right:
    1 - infrared receiver for the remote control of the controller board.
    2 - led status of the screen, also included with the controller (on: green / off: red).
    3 - pushbutton to turn on / off the screen (for now also the rpi zero is turned off, since it is connected to a usb of the controller, in the future I hope that the screen can be turned off independently).
    4 - Activity LED of the raspberry (you have to follow these simple steps: https://sudomod.com/forum/viewtopic.php?t=1113).
    5- RESET button (if the raspberry is hanging, it is a hard reset).

    0_1527601092486_IMG_20180528_232838_pequeña.jpg

    0_1527601353326_IMG_20180528_234543_HHT_pequeña.jpg


    HARDWARE:


    0_1527602707788_IMG_20180529_125530_pequeña.jpg

    The Power Supply I’m using is a 12 V DC 2 A and works great for the controller board + raspberry Pi Zero W.


    DETAILED VIEW


    0_1527602929892_IMG_20180529_125422_pequeña.jpg

    0_1527603200284_IMG_20180529_125441_HHT_pequeña.jpg

    0_1527603364352_infrarrojo.jpg

    0_1527812996812_photo_2018-06-01_02-23-22.jpg

    0_1527603524750_IMG_20180529_125626_pequeña.jpg


    FINAL RESULT


    0_1527604682494_IMG_20180529_162004.jpg


    NEW UPDATE (2018-07-09): INSTALATION OF THE PIR AND RELAY TO SWITCH ON/OFF SCREEN AUTOMAGICALLY


    Well, I’ve finished my mirror installing the motion detector (PIR) and the relay. I’ve installed too one 18650 battery in case there is a blackout.

    The basic idea of the motion detector is that when nobody are near the mirror, it turns off the scree, but the raspberry is still running. When somebody aproax the mirror, it turns on the screen. The PIR output goes into an input GPIO of the raspberry (22, BCM), then, on pin 25 (BCM) goes the input to the relay (output from the raspberry GPIO). And finally, the screen detector as an input to the GPIO (pin 6 BCM). It’s a simple circuit from the USB port of the controller board of the screen that is on level HIGH (3v) when screen is on, and level LOW (0v) when is off.

    Here you can take a look at the script written in python for this purpose:

    #!/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'))
    

    Here are some pictures of the back face of the mirror:

    0_1531143321488_photo_2018-07-09_15-34-52.jpg

    0_1531143349822_photo_2018-07-09_15-34-41.jpg

    Detail of the PIR on the back face of the mirror…

    0_1531143427906_photo_2018-07-09_15-34-27.jpg

    … and on the front face. I’ve made an 8 mm hole for the PIR detector (I think is a phototransistor, but I’m not sure)

    0_1531143483954_photo_2018-07-09_15-34-49.jpg

    Detail of the micro SD Extender to easily extract te micro sd card.

    0_1531143561440_photo_2018-07-09_15-34-45.jpg

    I’ve made a voltage divider with a few resistors to get 3 volts from the USB port of the screen. When the screen is on, the USB is on too, and vice versa. The 3 volts output of this voltage divider goes to pin 6 (BCM) of the raspberry.

    MATERIAL’S LIST


    • Laptop screen from a 10 years old Airis laptop (owned, not buyed).

    • Controller board for that screen:
      https://www.amazon.es/gp/product/B0722Q7HX3/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1

    • One power supply 12 V - 2 A (owned, not buyed).

    • A cheap frame (not exactly this model, but similar):
      http://www.leroymerlin.es/fp/320202_milo1z1haya1z1marco/milo-haya-marco-milo-haya-marco

    • A raspberry pi zero W:
      https://uk.pi-supply.com/products/raspberry-pi-zero-w

    • 12" x 12" Acrylic mirror:
      https://www.amazon.com/gp/product/B017ONH3EG/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

    OPTIONAL:

    • One 3mm blue LED and two switches like these:
      https://www.amazon.es/gp/product/B072TSNZJ1/ref=oh_aui_detailpage_o03_s00?ie=UTF8&psc=1

    • Micro sd card extender
      https://es.aliexpress.com/item/48CM-60CM-TF-Male-to-micro-SD-card-Female-Flexible-Card-Extension-cable-Extender-Adapter-reader/32811147746.html?spm=a2g0s.9042311.0.0.3c4d63c06dnylM

    • 18650 Battery Shield USB Port with USB to Micro-USB Cable for Raspberry Pi and Arduino
      https://www.amazon.es/gp/product/B07B2JSXQG/ref=oh_aui_detailpage_o08_s00?ie=UTF8&psc=1

    • One 18650 battery cell from the same laptop than the screen.

    • One Step down to get 5 volts from the 12 v of the screen power supply:
      https://www.amazon.es/gp/product/B07142WLXT/ref=oh_aui_detailpage_o05_s00?ie=UTF8&psc=1

    MATERIALS FOR THE MOTION DETECTOR

    • One PIR for motion detection:
      https://es.aliexpress.com/item/Free-shipping-1PCS-LOT-HC-SR501-HCSR501-SR501-human-infrared-sensor-module-Pyroelectric-infrared-sensor-imports/32730387155.html?spm=a2g0s.9042311.0.0.2a4063c02jBYAy

    • One 3v3 Optocoupled relay module:
      https://www.ebay.es/itm/3V-3-3V-Relay-High-Level-Driver-Module-optocouple-Relay-Module-for-Arduino/351748538371?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m1438.l2649

    posted in Show your Mirror
    qu1queQ
    qu1que
    May 29, 2018, 2:39 PM
  • RE: MMM-Lunartic

    @Mykle1

    Maybe this can help you.

    Before using the MMM-Lunartic module, I used the module MMM-moonphases https://github.com/spectroman/mmm-moon-phases until one day a few months ago it also stopped working (the images of the moon did not come out ). At that time I decided to install the Lunartic, until they also stopped seeing the images of the moon a few weeks ago.

    Then, yesterday it occurred to me to try again with the MMM-moonphases, and now the images come out. I do not know if I could give you any idea or if it can help you in something.

    posted in Education
    qu1queQ
    qu1que
    Dec 17, 2018, 9:12 PM
  • RE: My first smart mirror in a frame of 40 x 30 cm with Raspberry Pi Zero W

    I’ve just follow this tutorial:

    http://emmanuelcontreras.com/how-to/how-to-create-a-magic-mirror-2-with-pi-zero-w/

    And there are an image of all the software to burn and just configure with your choices/modules. The problem is that I can’t update it, always give me some error. So I decided not to update it. I hope it helps you!

    Here yo have a link directly to download the image for raspberry pi zero:

    https://mega.nz/#!J2xChCrD!I3lUEsfQP2NoZ91uxlYznIynC_KxyxVp0R68I6yqR4k

    posted in Show your Mirror
    qu1queQ
    qu1que
    Dec 16, 2018, 7:03 PM

Latest posts made by qu1que

  • RE: noseguy on MagicMirror? .... maybe?

    I’ve just found that the command to make noseguy appear is

    /usr/libexec/xscreensaver/noseguy

    So, any idea of any module to launch this command and integrates in MM?

    posted in Requests
    qu1queQ
    qu1que
    Sep 22, 2022, 7:35 PM
  • RE: noseguy on MagicMirror? .... maybe?

    @sdetweil

    The thing is that noseguy is not a gif, it’s a screensaver from xscreensaver. Maybe it’s not possible to run another program over MM. I don’t know

    posted in Requests
    qu1queQ
    qu1que
    Sep 22, 2022, 7:23 PM
  • noseguy on MagicMirror? .... maybe?

    Hello!

    I would like to make a proposal for a possible module (if possible, of course). The idea is to show “noseguy” in the MM, or in a window inside MM.

    noseguy is a screensaver included in the xscreensaver package, where it can be configured for example with the fortune package to randomly display a “fortune biscuit”, a famous phrase, etc. Those of you who have been using gnu-linux for a few years will surely know what I’m talking about.

    I leave here a video of this screensaver, the audio is added in the video, the screensaver has no audio.

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

    I think it would be an interesting module and I don’t think it would consume too many resources to, for example, run it on a MM with raspberry pi. Also, as you can see, the background is black ;)

    I look forward to your opinions about it.

    Regards,
    Quique.

    Translated with www.DeepL.com/Translator (free version)

    posted in Requests
    qu1queQ
    qu1que
    Sep 22, 2022, 6:36 PM
  • RE: How to properly update modules?

    @Cliff365

    Hi, today I have an update on MMM-Wallpaper module too. I updated it using git pull && npm install. A few hours later, I had another update, so I repeated the process. I think it’s not an error. I think it’s the module developer that is making some changes to the code.

    Try to check if the response on the terminal is always the same when updating or if they are different. In the case I just told you about, the updates were different.

    posted in Troubleshooting
    qu1queQ
    qu1que
    Aug 21, 2022, 9:44 PM
  • RE: [SOLVED] random black screen

    Well, I think I can tag this post with SOLVED, all day with MMM-RAIN-MAP module disabled and no more black screens.

    Thanks all for your advice.

    posted in Bug Hunt
    qu1queQ
    qu1que
    Aug 15, 2022, 6:08 PM
  • RE: [SOLVED] random black screen

    @sdetweil

    It is possible that in the end the problem was with the resource-intensive MMM-RAIN-MAP module. Now it’s disabled, let’s see what happens…

    In the end, my method is as simple as trial-and-error until it’s solved.

    posted in Bug Hunt
    qu1queQ
    qu1que
    Aug 15, 2022, 12:42 PM
  • RE: [SOLVED] random black screen

    I’m starting to see my problem…

    Fortunately I had saved an old config.js file with less modules than the one I have now. In studying the differences, I find this in my current config.js file:

    Too many calls to the newsfeed module, surely that’s the reason for the error.

    This is the configuration in the MMM-Pages module that was giving me problems

    {
    module: 'MMM-pages',
         config: {
              modules:
                   [[ "calendar_monthly", "MMM-Tools", "MMM-OpenWeatherForecast", "newsfeed"],
                   [ "calendar", "MMM-AirQuality"],
                   [ "MMM-TelegramBot", "MMM-EyeCandy"],
                   [ "calendar_monthly", "MMM-Tools", "MMM-OpenWeatherForecast", "newsfeed"],
                   [ "MMM-SolarPicture", "MMM-Lunartic", "MMM-Comics"],
                   [ "MMM-Comics" ],
                   [ "MMM-RAIN-MAP" ],
                   [ "calendar_monthly", "MMM-Tools", "MMM-OpenWeatherForecast", "newsfeed"],
                   [ "MMM-RandomPhoto", "MMM-History"],
                   [ "MMM-WeatherChart"],
                   [ "MMM-AirQuality", "newsfeed"],
                   [ "MMM-Wallpaper"]],
    rotationTime: 30000,
    fixed: ["alert", "updatenotification", "clock", "MMM-OpenmapWeather", "MMM-page-indicator"]
    }
    },
    
    
    posted in Bug Hunt
    qu1queQ
    qu1que
    Aug 15, 2022, 11:13 AM
  • RE: [SOLVED] random black screen

    @MMRIZE

    The thing is, now that I remember, during the weekend I disabled completely newsfeed module, and the error does not disappeared. Now I’ll try disabling more modules.

    posted in Bug Hunt
    qu1queQ
    qu1que
    Aug 15, 2022, 10:11 AM
  • RE: [SOLVED] random black screen

    @MMRIZE

    Maybe, I’ll try disabling some modules. Thanks. i will tell u when I try it.

    posted in Bug Hunt
    qu1queQ
    qu1que
    Aug 15, 2022, 10:04 AM
  • RE: [SOLVED] random black screen

    @MMRIZE

    I don’t know, I have now 14 url of rss feeds, But I’ve tried with less of them and the error does not disappear.

    posted in Bug Hunt
    qu1queQ
    qu1que
    Aug 15, 2022, 9:56 AM
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy