how to build a raspberry pi smart mirror - smart-ITATOUCH-img

how to build a raspberry pi smart mirror! - smart

by:ITATOUCH     2019-08-04
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).
Custom message
Chat Online
Chat Online
Leave Your Message inputting...
Hi, Nice to meet you! I am temporarilly away a momnet, Please can you talk with me by Whatsapp: +86 13582949978 / Skype: eliahe123? Email: Thank you in advance! Sincerely, ITATOUCH Sales {{"url":"/about us","text":"Welcome to visit us!"}} Welcome! What can I do for you?
Sign in with: