MagicMirror2: modular smart mirror on Raspberry Pi
Open-source modular smart-mirror software showing calendar, weather and news behind a two-way mirror, usually on a Pi.

Key Facts
- Board: Raspberry Pi 3/4/5
- Pi 4 4GB $100-120; Pi 5 4GB $110 list / $130 in stock (checked 2026-11-20)
- Display: any HDMI monitor + two-way mirror
- Software: Node.js/Electron
- Modules: 1000+ community
About This Project
MagicMirror2 is the software behind countless DIY smart mirrors. A Raspberry Pi drives a monitor placed behind two-way glass and shows modules like clock, calendar, weather, news and hundreds of third-party add-ons (Home Assistant, transit, photos). It is Electron-based and configured with one JavaScript file. The hardware can be as simple as a spare monitor and frame.
Source & Attribution

Illustration
How to Build It
Parts Needed
- Raspberry Pi 3, 4 or 5
- HDMI monitor (bezel removed, for a slim build)
- Two-way (one-way) mirror glass or acrylic
- Wooden frame
- Power supply
Steps
- 1
Prepare the Pi
Install Raspberry Pi OS with a desktop, connect the monitor and update the system.
- 2
Install Node.js
Install a current LTS version of Node.js, following the version the docs ask for.
- 3
Install MagicMirror²
Clone the repo, run npm run install-mm in the folder, copy config/config.js.sample to config/config.js, and start it with npm run start.
- 4
Configure modules
In config.js, set your location and units and enable modules such as weather (add your weather API key), calendar (an iCal URL) and news feeds. Install third-party modules into the modules folder.
- 5
Build the mirror
Mount the monitor behind the two-way mirror in a frame. Bright white text on a black background shows through best.
- 6
Autostart
Use pm2 (described in the docs) so MagicMirror starts on boot and restarts if it crashes.
Bill of Materials
Parts list
4 parts · 2 linked
Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works
1× Raspberry Pi
Better buy at 2026-11-20 prices: the Pi 5 4GB - $110 list at PiShop.us but out of stock there today, $130 in stock at Adafruit - while the Pi 4 4GB runs $100 at PiShop.us and $120 at Adafruit (all checked 2026-11-20). Raspberry Pi rates the Pi 5 up to three times faster than the previous generation, and an always-on Electron dashboard can use it; pair it with the 27W PSU below.
1× HDMI monitor
$0 with a spare monitor - the classic MagicMirror2 build. Cheapest new HDMI display we verified live: Waveshare 7in IPS 1024x600 touch panel with HDMI+USB, $44.95 in stock at PiShop.us (checked 2026-11-20); a full-size desktop panel costs more.
1× Two-way mirror
Kept as an estimate: marketplace two-way acrylic packs could not be re-verified live today (Amazon and Walmart bot walls). Verified live alternative: ePlastics 1/8in x 24in x 48in two-way (see-thru) acrylic sheet, $238.39 cut-to-size - one sheet covers several mirrors (checked 2026-11-20).
1× Power supply
Official PSUs in stock at PiShop.us: 15W USB-C $8.80 (Pi 4) and 27W USB-C $12.95 (Pi 5 - pair with the recommended board) (checked 2026-11-20).
Not included: 3D-printed case, wire, solder, USB cable
Related Projects



