Magic Mirror
By Russell Barnes. Posted
Mirror mirror on the wall, what’s the weather going to be like today? Should I bring an umbrella?
Advertisement
Head to head: Raspberry Pi + Raspberry Pi Zero + Raspberry Pi Pico.
It’s amazing how the Iron Man films have inspired people due to the way they portrayed almost-attainable technology. Watching someone look over sunny Malibu while the weather info was displayed right in front of them was a great visual. It’s not exactly brand new, unseen technology – cars have been projecting HUDS onto windscreens for a while now – but it has never been popularised in a major blockbuster before. While we don’t seem to have quite reached the stage of the incredible glass tech of Tony Stark’s bedroom just yet, apparently we’re close enough to get mirrors working in the same way, or at least Bradley Melton has managed it with his Magic Mirror.
The full article can be found in The MagPi 40
“It’s called a ‘Magic Mirror’, but a more accurate name would be a ‘Smart Mirror’,” Bradley tells us. “It’s a mirror that displays the information you need to know at a quick glance: the time, the date, the weather, and of course a compliment!”
It’s not the first mirror of its type, and Bradley admits that he’s taken some cues from a previous project by Michael Teeuw (see more details about it on Michael’s blog), taking the concept and bringing it down to a more beginner level for himself so he could learn more about web development.
“Plus, because I know what each and every function does and how it works, it makes it easier to fix bugs as well as make improvements in the future.”
Rather than use an actual mirror and project the data upon it, the Magic Mirror uses a widescreen monitor that has been put in a portrait orientation with an acrylic two-way mirror on top. With the right lighting and display tweaks, it can be reflective enough to use as a mirror while also displaying the weather data. The electronics are fairly simple: it’s just a Pi with HDMI linking to the mirror, a WiFi dongle to retrieve online data, and a USB cable to the monitor as well, which is how it draws its power. To finish it off, Bradley built a wooden frame to be laid over the bezel so that the whole thing was camouflaged a bit better.
“It’s not very complex,” Bradley informs us. “ As long as you have a little bit of carpentry or DIY skill to build the frame and have a basic understanding of how to program, you should be able to build this. I have never used JavaScript or CSS before this project, and I only had a little bit of experience with HTML, but this webpage is built almost entirely from JavaScript and CSS.”
At the time of writing, the mirror has been running for a few weeks without any problems. It seems like Bradley wants to include some holiday-themed extras to it, starting with some spooky additions for the Halloween just past. We’re hoping he will add some jollier ones for the Christmas period.
Russell runs Raspberry Pi Press, which includes The MagPi, Hello World, HackSpace magazine, and book projects. He’s a massive sci-fi bore.
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
E-ink shipping monitor
The display comprises a Raspberry Pi Zero 2 W, a Pimoroni Inky Impression 7.3-inch display, and a Wegmatt dAISy Mini AIS receiver. AIS stands for ‘Automatic Identification System’, and it’s this device that picks up the signals coming from the ships themselves, which goes to the display via the Raspberry Pi Zero 2 W. There’s probably a […]
Read more →
NTRON gaming and synth console
The NTRON is compatible with original NES controllers, and there are custom models built on perfboard
Read more →
3D-printable Raspberry Pi Cyberdeck
Unlike most cyberdecks, this one still needs mains power
Read more →
Sign up to the newsletter
Get every issue delivered directly to your inbox and keep up to date with the latest news, offers, events, and more.


