Raspberry Pi Smart Mirror

77,874

1,074

29

Introduction: 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

2 People Made This Project!

Recommendations

  • Metalworking Contest

    Metalworking Contest
  • Water Contest

    Water Contest
  • Tiny Home Contest

    Tiny Home Contest

29 Discussions

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

1 more answer

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.

RSS.PNG

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

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??

0
None
jimv42

1 year ago

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

0
None
197133

1 year ago

what size monitor did you use?

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

1 reply

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.

1 reply

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.

1 reply

Yes ! how much clicks you get is a real cool feature, but i would also like to have what's in my google agenda for the day, any help ? I'm trying to figure it out by myself but my programming skills aren't that good for the time being.