Mirror Display

The completed project along with a screenshot of the software display behind my Magic Mirror

In part one of my D.I.Y. Magic Mirror blog post I showed the software setup of custom modules for the excellent MagicMirror project. This post I’ll show the final hardware build out.

Software architecture

Basic software architecture. The mirror pulls data and pushes metrics logs to Elastic Cloud for later visualization

I moved to a new home recently, so the I swapped out the capital bikeshare feed with an incidents feed for the DC metro system. I live near a bus line, which I find I’m using more often, so I’ll probably try to figure out how to get bus ETAs from the WMATA apis as a later project.

Wiring Photo

My Ugly wiring behind the mirror

The hardware build out only took a few minutes once I had a plastic one-way mirror that fit my frame. I recommend picking a picture frame you like first and then ordering a plastic mirror that fits it rather than the other way around. (Especially if you are like me and don’t have access to the space or woodworking tools necessary to build your own frame). My mirror is held together by electrical tape, which isn’t ideal. I’m a software engineer, not an electrical engineer, so I’m excused.

Wiring Diagram

Here’s a cleaned-up diagram of what’s going on behind all that electrical tape. I’m using a Raspberry Pi 3 and a “HDMI 4 Pi - 10.1 Display 1280x800 IPS - HDMI/VGA/NTSC/PAL” from adafruit (link).

Kibana

As the mirror is pulling some interesting data that I want in my quantified-self dashboard project, I wrote some quick nodejs request code to POST commands to my generic REST metrics endpoint for visualizing data from my Magic Mirror in kibana (hosted in Elastic Cloud of course.)