Raspberry Pi Smart Mirror

103K1.2K36

Intro: Raspberry Pi Smart Mirror

Find out how to make an easy raspberry pi powered home smart mirror. It displays applications so that you can check the weather and local news while you are getting ready in the morning. It's also modular, so you can easy move it around or hang it on the wall if you like. We've created a basic application that you can run on the mirror, but it's totally customizable if you want to write some of your own code.

STEP 1: Materials

You will need a few materials for this project:

1 x Low profile monitor (we used an old led display, about 0.5" thick)

1 x 18" - 24" Acrylic See-Through Mirror, 1mm

12 ft - 1x2

12 ft - 1x3

1 x Wood glue

1 x Low profile HDMI cable

Various screws

We also modeled some brackets that can be used to sandwich the monitor in place

Brackets

If you don't have access to a 3d printer, you can also use a few pieces of 1x2 to hold the monitor in place.

Tools:

- Wood saw

- Miter box (45 deg angle cuts)

- Sharp scissors

- Tape

STEP 2: Instructions


We've created this guide which shows you step-by-step how to build the frame, then load the application code on the Raspberry Pi. No coding experience is necessary, but you can use your own application or add more functionality to ours if you want.

STEP 3: Resources

All of the code used in this video is available on Github.

That's it! If you have any questions about the project, please post them in the comments and I will answer them the best I can.
Thanks, Aaron @HackerHouse

STEP 4: Update! We Added Artificial Intelligence to the Mirror


We created another video recently that show you how to add artificial intelligence to the mirror. We created this AI and use Wit.ai for the natural language processing. Since the code is open source, anyone can help to make the AI smarter.

Unfortunately, the AI is too much for a Raspberry Pi to handle, so we created a guide on how to set it up on a Mac.

Here is a link to the Github repository: https://github.com/HackerHouseYT/AI-Smart-Mirror

30 Comments

I've noticed there's been a bit of a gap in information regarding the choice of operating systems for the Magic Mirror project. As this project can be approached from various platforms, it would greatly benefit our community to share insights and experiences with different operating systems.

If you have any knowledge or recommendations regarding operating systems suitable for the Magic Mirror project, I encourage you to kindly share them here. Your contributions will undoubtedly help fellow enthusiasts navigate their options more effectively. Let's foster a collaborative environment where we can all learn and grow together. Thank you!

Followed the tutorial and everything works great except the first line in the news feed reads "This RSS feed URL is deprecated", the rest of the news feed looks as I would expect. Any ideas for how to fix this?

I have my country code for news set to US

yes it can be fixed easily by changing the list to be shown

like index given in that is [0:5] just change it to [1:6] so it will skip that like which shows The RSS thing

Thanks for sharing the project.

Please share program that you used in your project

Can we use linux os?

I dint have mac..... how to do it on other operating system? Plz help

can i do it with an Arduino

I'm guessing you must be a guy that's just beginning to know anything.zz the answer is yes if you're smart enough.but you should choose microprocessor and not microcontroller

I dont have a mac...I want to add AI

How to set it up on other Operating systems??

great project thanks could not find the place to input the pi's ip address and when i ran the smartmirror.py file i get an error "locale.Error unsupported locale settings" please help thanks

what size monitor did you use?

How I download PDF file with out intering premium

The AI is lagging. Is there a way to make it faster?

The lag is mainly caused by your network latency since most of the components are simply service calls.

for python smartmirror.py,

I am getting this,


Traceback (most recent call last):
File "smartmirror.py", line 330, in <module>
w = FullscreenWindow()
File "smartmirror.py", line 307, in __init__
self.clock = Clock(self.topFrame)
File "smartmirror.py", line 77, in __init__
self.tick()
File "smartmirror.py", line 80, in tick
with setlocale(ui_locale):
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "smartmirror.py", line 39, in setlocale
yield locale.setlocale(locale.LC_ALL, name)
File "/usr/lib/python2.7/locale.py", line 579, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

Please help.

i figured out that i am entering my countries (India's) country code wrong! I looked everywhere but it is "IN" but when i enter it, this error appears. Whenever i keep it blank ("") the code runs smoothly. But, i don't see weather or news.

Would it work with a normal mirror? I don't know where to get an acrylic mirror

Like it if you can find a link please

Hey guys ! GREAT PROJECT !

I just made one and it works great !

Would you be willing to make a tutorial about how to add other APIs in there ? Or maybe advise me some good tutorial you know about, still using python (Say i would like to know how much clicks i get on my website for example ?)

Great job, thanks a lot for sharing, you made the world a little better doing so.

More Comments