Tech Reflect

From ESE205 Wiki
Revision as of 20:39, 13 December 2016 by Samdkramer (talk | contribs)
Jump to: navigation, search


Everyone is a little vain. Whether you’re shaving, brushing your hair, or taking a quick peek at yourself for self-admiration, it would be incredible to save some time and see your calendar or the stock market without having to look at your phone. Get ready, get informed, that is the beauty of a smart mirror. Our objective is to create a mirror that can be programmed to display a variety of different information. We are hoping to connect this smart mirror with a phone/website so you can customize your preferences easily and efficiently.


Our objective for this project is to create a mirror than can be used as any other mirror but is also able to seamlessly display information. The information we intend to be put on display includes the time, the weather forecast for the day or week, stock information, and a calendar of the user's day. The weather forecast would need to be pulled from the internet so creating a connection between the display and the internet is necessary. Another objective is to make the mirror display controllable from an iPhone. We intend to achieve this phone-to-display connection by using a remote desktop controller that would allow a user to control the interface of the mirror display from a phone.

Team Members

  • Sam Kramer
  • Andreas Larsen
  • Alex Blustein
  • Kjartan Brownell (TA)


  1. Raspberry Pi = $0 (Provided by Washington University)
  2. 10" LCD Display = $69.99
  3. Power Supply - $6.59 (
  4. 14in x 20in Two-Way Mirror- $46 + $12 shipping (
  5. Black Electrical tape- $4.11 (
  6. Wood for frame- (
  7. Wood glue- $3.47-
  8. Wifi Dongle Adapter - $0





  • Software
    • Raspberry pi is pre-loaded with Python. Will have to learn language (codecademy,
    • We need to find a way to connect a smartphone to the raspberry pi. This could possibly be done by using a VNC, a graphical desktop sharing system that allows you to remotely control the desktop interface of one computer from another. Our LCD screen is only 10 inches so we are considering adding a feature which allows you to switch the "widgets" visible on the mirror. This will require further knowledge of python. Also once we have fastened the LCD to the back of the mirror (check hardware sketches), it will be useful to be able to access it from another device.
    • Connecting your phone to the smart mirror (to import calendar events, stock market, weather): we can do this with the wifi dongle which allows the raspberry pi to connect online. However, there are some security issues we need to address.
    • Cyber Security: We need to ensure that no data from your connected phone can be accessed by others. We need to make sure that there is no way for other systems to access the raspberry pi and this can most likely be done by using password protection. VNC's require a password to access the desktop so this will heighten the security. No matter the amount of security, however, people will be wary of sending personal information via wifi and so for our demo we will only be using our own devices. To access the raspberry pi, we just need one device with a VNC app and the access password. (Also, we will be using the wustl secure wifi connection for our project).
  • Hardware (Check sketches)
    • We need to be especially careful with our LCD screen and also our mirror as the screen's circuit board can easily be fried and the mirror is brittle. To ensure that our mirror/screen will not break during use, we are going to build a wooden frame/case and a stand for the mirror. The wooden frame/case secures the LCD screen on the back of the mirror by placing planks of wood along the back edges of the screen. The screen will not be able to be separated easily from the back of our mirror. For the sake of our demo, we plan on either 3D printing or building a stand for the mirror as to avoid the risk of hanging the mirror and having it drop.

Gantt Chart


How To: Make Requests to the Google Calendar API

1. Before you start, make sure you have the newest version of Python, a wifi connection, and a gmail account with google calendar:


2. Now, follow along as we show you how to enable the API:

3. Place your downloaded JSON file in your directory.

4. Now that you have enabled the API, copy and paste the following code in to terminal to install the Google Client Library:

                         pip install --upgrade google-api-python-client

5. To set up a sample request for 10 upcoming calendar events, create a file named "" in your working directory and copy in the following code from this pdf


6. To run your sample, run the following code in terminal:


7. A white window will pop up and you should now see your upcoming events!


Our objective was to create a mirror that displayed the weather forecast for the day or week, stock information, and a calendar of the user's day. We also wanted to make the mirror display seamlessly controllable from an iPhone with a remote desktop controller. We were unable to create a seamless connection between an iPhone and the mirror display. We had success manipulating the display from an iPhone using the iOS version of VNC Viewer (the application used to access the remote desktop). Although there are ways to alter the module being displayed from an iPhone, this would require closing out of the module, and either changing code in a primary .py file, or accessing a separate premade .py file with the desired module changes. Neither of these options are viable for a user looking for effortless and non-complex functionality.

The coding portion of the project proved more difficult than expected. We were not familiar with Python, so there was a steep initial learning curve. Coding the stock module was far more strenuous than anticipated, and ultimately we decided to create a news feed which proved to be a less complex process. We ran into an issue also while painting and assembling the frame. We were unaware that the acrylic on the two-way mirror was easily stripped and, as we were removing the blue tape placed on the mirror to protect it from the paint, it took off a few inches off the acrylic making a small portion of the mirror transparent (i.e. the back wood panel was visible).