loading

A Professional Manufacturer of Smart Interactive Screens For More Than 10 Years 

how to build a raspberry pi smart mirror! - smart

how to build a raspberry pi smart mirror!  -  smart

Hello Everyone!
For my computer science final project, I decided to build a smart mirror with Raspberry Pi 3!
I got this idea from the Hacker House, which is a fantastic Youtube channel and it has a lot of fun ideas for creative projects with easy to follow instructions!
While I focus mainly on coding in Java, this smart mirror allows me to work on Raspberry Pi by coding in Linux and Python, a language I have never used before.
Also, I did some interesting carpentry by building the frame around the monitor located behind the two way mirror.
While this is my first Raspberry Pi project, it took me about two weekends to get it done from the coding of the Pi to the frame.
Building this is an amazing experience and I hope this tutorial will help you create your own!
Before you start, here are all the items you need for the item: 3D brackets ~ Way Mirror ~ Order Pi receives information from the magic mirror module found on the Internet, it is crucial to set up your Wi
Fi and time zone.
When the operating system is installed in Raspbian (
I'm using the "Jessie" version)
On the micro SD card, plug the keyboard and mouse into the Pi and connect the HDMI cable to the monitor that will be used.
Wait for the system to start, and then you can start configuring the Pi to your location.
First, click on Wi-
The Fi symbol in the top right corner of the screen.
Select your internet and enter your password.
Then you should connect to your Wi-Fi.
Upon completion, access the terminal and type the following: you can then start accessing a specific time-
Display Pi through the menu area.
Once you have chosen the right time
Area, save and restart the Pi.
At this time, the mirror can use your Wi-Fi.
Now, you can start programming!
You should know how this program works before you start downloading and configuring the program.
Magicmirmirror is a downloadable platform created by Michael Teeuw (a. k. a MichMich)
, You can access this repository on www. github. com.
With Pi, you must download and clone the repository and its dependencies.
By doing so, the Pi is able to run the program and display certain elements contained in the magicmirmirror file.
For further explanation, you can visit an online forum that provides a great deal of useful modules and trouble shooting methods for anyone coding a program.
To get started, visit your terminal and type the following code: When you click enter, the Pi will start to download the repository automatically, about 10-15 min.
During this process, you are prompted to enter "Y" or "N" for certain dependencies, such as vim ".
Vim is a key dependency that allows the text editor to manage MagicMirror.
Also, a program called pm2 will be downloaded, which will run automatically when your Pi starts.
The node will be another prompt.
Js, which allows web applications to run on Pi.
Restart the Pi after downloading magicmirmirror completely.
You should see praise, time, and news articles after restarting (See above).
From this point on, you can start a custom program (
Add new modules, directions, change fonts, etc).
As mentioned earlier, magicmirmirror should display the time automatically, which is a kind of compliment, U.
Holidays and some news articles.
However, I would like to add some features to the Pi to make it more beautiful and have more information to access (
For example: weather, weather forecast, cool quotation, etc).
To do this, in order for magicmirmirror to receive information about where you are, you have to do a lot of things.
To do this, you have to access the module folder.
This folder is the key to storing all the options needed for magicmirmirror.
You can add modules, delete modules (I deleted America.
My holiday list because I live in Canada
, And customize the settings.
To do this, visit the terminal and type: this will open a file where you can see the list of modules (
Looking for closed brackets with information inside).
I started by adding the weather and weather forecast module.
You should already see the default module with the weather option, but you will notice that two important keys are missing.
Location ID and api id.
As mentioned earlier, magicmirmirror uses an online source to display information.
These two IDs come from a website called OpenWeatherMap (
See link at bottom).
This website provides API for the weather required for this module.
First of all, sign up on the website for free and access your free API.
Type this code in the "appid" section of the module.
Then you need to find the location ID of your city/town.
OpenWeatherMap provides a huge file for almost every city in the world, along with the location ID next to it.
I'm not sure there is a simpler way, but you may have to scroll through the entire file before you can find the ID of your city/town.
Once discovered (
This part is terrible, it took me about 20 minutes to find the ID card of my city)
, Enter the weather and weather forecast module.
After that, save and exit.
When your Pi starts, you should look at the weather in your city.
I added an extra module with an inspirational quote shown at the bottom of the screen (See above).
However, the list of modules is entirely up to you!
Make sure to check the module web page provided by the MagicMirror2 forum on its website!
Anyone can add some really cool modules to make their mirrors more fun and fun!
The steps are entirely up to you, depending on whether you want the mirror to appear with a portrait perspective rather than a landscape.
In order to customize the Pi, make it rotate (see last photo)
, Access the terminal and type the following: this will open certain system preferences where you can add "Rotate screen options ".
To do this, scroll to the bottom of the file and add: Save and exit.
When restarting the Pi, magicmirmirror should be up and displayed horizontally.
Also, you should see all the modules you add in Portrait Perspective.
One more thing you should add to customize the Pi is the pm2 boot.
After installing pm2, I found that magicmirmirror does not start unless I access the terminal and type a few lines of code.
To eliminate this issue, do the following: access the terminal and type: pm2 startupThen, type: After, access the script by typing: then add: Save and exit.
Now, magicmirmirror should start automatically when your Pi is up. It's also hard to find out how to disable the screensaver as you want to keep seeing the display behind the mirror.
To do this, you need to access the terminal and type: Then, add: Save and exit, then access another file in the terminal by typing: then add: Save and exit, then restart your pithoff, and while the framework is relatively easy to build, you have to do something important to prepare.
First, handle the two-way mirror.
Depending on the size of the display, you may need to cut the mirror into a larger half inch size (
Width and length)
More than the squad leader.
To do this, measure and mark the dimensions on the mirror (
I used a share. don't worry!
When you are ready, there is a protective plastic layer on the frame)
Put some tape on the line
I used the painter's tape just because it wasn't super strong and it was easy to fall off.
Cut carefully along the tape (
When you cut, you will notice that the mirror is broken on the edge.
Try to limit these cracks as they damage the life of the mirror).
Once the mirror is cut to the right size, you can start making the frame.
With the framework, you need two parts.
Inner shell and outer frame.
To do this, measure the display and cut two pieces of wood around 1.
5 inch larger than the length of the display (See above).
After that, cut two more pieces for larger pieces.
Fix with wood glue and clip.
To speed up the process, you can drill a screw in the corner to better secure it together.
Make the outer box (
See the second photo)
, Cut 4 pieces at 45 degrees per end (
Remember, when you put the outer box on the inner shell, you should put it on it so that the midpoint on the 45 cutouts falls on the shell).
Once the frame is set and stable, clip the mirror between the frame and the monitor.
Screw in the 3D brackets to make sure they are firmly placed.
At this point, you can plug in the Pi and power supply, and magicmirmirror should start up.
You should see a display behind the mirror (
Whatever you put on the show, date, time).
Congrats, you have your own smart mirror now!
Please leave a comment if you have any questions!
I would be happy to help if you have any questions or ideas!
Thanks to the House of hackers, this is an amazing project.
One point I would like to point out is that I strongly recommend you to buy a radiator for the Pi.
Because the program is designed to run continuously, your processor gets very hot.
Buying a radiator can make your smart mirror run more safely, and it can also relieve any pressure on the Pi when it runs.
I hope you can try this project, it is really useful and is an interesting aesthetic where you can hang up the phone in any room.
Thank you so much for visiting my page and hopefully I can add some cool modules to the mirror and I can help you guys (
Artificial intelligence, motion sensors, alarms, etc).

GET IN TOUCH WITH Us
recommended articles
Knowledge INFO CENTER FAQ
The Future of Classrooms and Conferences: Smart Podium Solutions
In today’s digital era, traditional classrooms and meeting spaces are rapidly evolving. One of the most innovative tools leading this transformation is the Smart Podium. Designed to integrate advanced technology with practical usability, the smart podium has become a powerful solution for both educators and professionals.
ITATOUCH IP66 Outdoor Display – Reliable Digital Signage for Smart Cities
In today’s fast-moving world, outdoor advertising and public information systems require displays that are not only clear and bright, but also durable enough to withstand harsh environments. ITATOUCH, as a professional OEM manufacturer of digital display solutions, proudly presents its IP66 outdoor display, designed for high-performance applications across multiple industries.
Why Digital Displays Are Transforming Modern Communication?

In today’s fast-paced digital world, traditional signage is no longer enough. Businesses, schools, and public organizations are rapidly shifting toward digital displays as a more dynamic, efficient, and engaging way to communicate with their audiences.

At ITATOUCH, we specialize in high-quality digital display solutions that combine advanced technology with sleek design. Our displays are widely used in education, retail, hospitality, transportation, and government sectors.
The Future of Collaboration and Learning: Why Interactive Flat Panels Are a Game-Changer
In today’s fast-paced digital era, communication and collaboration tools have become more important than ever. From classrooms to boardrooms, the demand for smart, interactive technology is reshaping the way we learn, teach, and work. Among these innovations, interactive flat panels (IFPs) stand out as one of the most powerful solutions.
 Why Interactive Flat Panels Are Transforming Classrooms and Meeting Rooms
In today’s fast-paced digital world, communication and collaboration tools are more important than ever. Whether in a classroom or a corporate boardroom, Interactive Flat Panels (IFPs) are redefining how we share information, brainstorm ideas, and engage audiences.
Weatherproof & Brilliant: Why Choose Our Outdoor LCD Displays for Maximum Impact

In today’s fast-paced world, grabbing attention is more challenging than ever. Traditional advertising methods are no longer enough to stand out. That’s where Outdoor Digital Displays come in — delivering vibrant, dynamic content that captivates audiences in real time.

🔹 What Is an Outdoor Digital Display?
An Outdoor Digital Display is a weatherproof LED or LCD screen designed to operate in various environmental conditions — including sunlight, rain, wind, and extreme temperatures. These displays are commonly used in public spaces for advertising, wayfinding, and information broadcasting.
Unlock Engagement & Efficiency: The Power of Modern Indoor Digital Displays
In today's fast-paced, visually driven world, capturing attention and communicating effectively within your physical spaces is crucial. Static signs and printed posters simply can't keep up. That's where Indoor Digital Displays step in – transforming how businesses inform, engage, and influence audiences inside their walls.
The Future of Indoor Advertising: Why Digital Displays Are a Game-Changer
In today’s fast-paced world, businesses need innovative ways to capture attention and engage their audience. Traditional static signage is no longer enough—enter indoor digital displays, the modern solution for dynamic, eye-catching communication.
Revolutionize Your Work and Play with Our Portable Mobile Touch Screen
In today’s fast-paced, tech-driven world, flexibility and efficiency are no longer luxuries—they’re necessities. Whether you’re a digital nomad, a creative professional, or someone who values seamless multitasking, our Portable Mobile Touch Screen is designed to elevate your productivity and entertainment experience. Let’s explore why this innovative device deserves a spot in your tech arsenal.
no data
Established in Oct, 2016, focusing on the interactive high-tech products, specializing in the development of LCD touch screen monitor, interactive whiteboard, interactive learning software, infrared touch screen frame, interactive tablet … etc.
INFORMATION FOR INQUAIRY
Tel: +86 755 28281849
Wechat & whatsapp: +86 13582949978
Address:  Building #123, Mansheng Industrial District, Gongming Town, Guangming District, Shenzhen, China
Copyright © 2022 ITATOUCH| Sitemap
Customer service
detect