Skip to content
Back to the bench

Back wall

Smart Mirror

A two-way-mirror display on a Raspberry Pi 4, in an enclosure I built.

When
Jun to Aug 2026
Built with
  • Raspberry Pi 4
  • Electron
  • Node.js
  • systemd
  • I2C
Real photos of this build coming soon

What I did

  • Full-screen Linux system running under a Wayland compositor, started automatically by systemd.
  • Split into main and renderer processes so the UI can never reach the network or the hardware directly.
  • Wired a BME280 over I2C, a PIR motion sensor, and a 12 V LED strip on GPIO.
  • Active, ambient, and sleep states driven by idle timers, plus a custom URL scheme for local photos that blocks path traversal and symlink escapes.
Next on the bench7-inch FPV Drone