• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

My bathroom smart mirror.

Scheduled Pinned Locked Moved Show your Mirror
3 Posts 3 Posters 7.8k Views 3 Watching
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.
  • Q Offline
    qu1que Project Sponsor
    last edited by Sep 26, 2018, 7:15 PM

    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 …

    M 1 Reply Last reply Sep 26, 2018, 9:41 PM Reply Quote 3
    • M Offline
      Mykle1 Project Sponsor Module Developer @qu1que
      last edited by Sep 26, 2018, 9:41 PM

      @qu1que

      Good stuff!

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • C Offline
        CyruS1337 Project Sponsor
        last edited by Sep 27, 2018, 4:55 AM

        Looks really great. Thanks for the documentation and the review

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          Last post
        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