A self-hosted digital photo frame and household kiosk for a Raspberry Pi 4. It drives a 1920×1080 HDMI monitor that has no keyboard or mouse. You manage everything from a phone or laptop on the same wi-fi by opening the Pi's address in a browser.
The monitor shows a slideshow. The same web app, opened on a phone, is the admin panel: you upload photos, build albums, fix dates and places, and change settings. The slideshow also shows a weather card, hurricane alerts and garbage/recycling reminders.
Stack: Node.js 20 · Fastify · SQLite (better-sqlite3) · sharp · vanilla JS SPA (no framework, no build step) · Chromium in kiosk mode · systemd
What the monitor shows: the slideshow with the weather card (top left) and
a caption built from the photo's corrected date and offline-geocoded place
(bottom left).
![]() |
![]() |
| Admin panel: remote control of the running slideshow, albums, and choosing what plays. | The same page on a phone. |
More screenshots
Photos
- Drag-and-drop or folder upload from any device, including iPhone HEIC. Duplicates are detected by content hash. Videos are skipped with a note instead of failing the batch.
- Each photo is stored three ways: the untouched original, a 1920×1080 derivative (the only version the slideshow loads), and a 400×400 thumbnail.
- Albums and filters (album, year/month, date range, place, filename). The active filter is the playlist, because the grid and the slideshow come from the same query builder.
- Keyset (cursor) pagination, so you can page through the library during a large upload without rows being duplicated or skipped.
Slideshow
- The server owns the playback state and the Pi's browser follows it. A "next" tapped on a phone is the same state change the display already reacts to.
- Shuffle works as a permutation: every photo plays once before any repeats, and photos added during a cycle are folded into the part not yet played.
- Captions show date and place, with three settings for how much a caption is repeated across a run of photos from the same day.
Metadata that can be undone
- Image files are never modified. Date and place corrections live in the database, so the camera's EXIF stays intact and every change can be undone.
- Dates are chosen by a fixed rule: your correction, then EXIF, then the GPS clock, then file time, then upload time.
- Offline reverse geocoding uses a bundled GeoNames gazetteer (170k places in 3 MB). Photo coordinates never leave the device.
- JSON round-trip: export metadata, correct it (for example with an AI and your trip itinerary), paste it back, review a diff of the changes, then apply. The last 10 imports can each be undone. This was used to re-date 640 photos from a camera whose clock was 59 days and 12 hours off.
Household info on the slideshow
- Weather: current conditions, hourly and 7-day forecasts, air quality, and National Weather Service alerts. The server fetches it once every 15 minutes and every screen shares the cached result. Stale data is hidden, not shown as current.
- Hurricanes: active storms from the National Hurricane Center. The slideshow shows a notice only when a storm threatens this location (an NWS warning, the point is inside the 5-day cone, or the forecast track passes nearby).
- Garbage and recycling: pickup days from Miami-Dade County's GIS route layers, with a reminder from the evening before until the morning of pickup.
- Pi health: temperature, clock speed, memory and disk, read from
/sysand/proc.
All external data sources are free and need no API key: Open-Meteo, api.weather.gov, NHC, the US Census geocoder, and Miami-Dade GIS.
phone / laptop ──HTTP──┐
▼
┌──────────────────────┐ ┌───────────────────────────┐
│ Fastify server │◄─poll──│ Chromium kiosk on the Pi │
│ app/server.js │ │ (fullscreen slideshow) │
│ routes/api.js │ └───────────────────────────┘
│ │
│ lib/query.js ◄──── one query builder for grid + playlist
│ lib/state.js ◄──── server-authoritative display state
│ lib/pipeline.js ◄── upload → hash → decode → derive → thumb
│ lib/metadata.js ◄── export / validate / diff / apply / undo
│ lib/weather, hurricanes, garbage ◄── cached external data
└──────────┬───────────┘
▼
data/ originals · derived · thumbs · photoframe.db (SQLite)
app/
server.js Fastify entry point
routes/api.js every HTTP endpoint
lib/ domain logic (see the list above)
geo/ bundled GeoNames gazetteer (CC BY 4.0)
public/ single-page UI: slideshow + admin
scripts/ deploy.sh, kiosk launchers, gazetteer builder
systemd/ server + kiosk units, sudoers rule, log rotation
desktop/ desktop launchers and icons
docs/ manual, benchmarks, design notes
cd app
npm install
PHOTOFRAME_PORT=8080 PHOTOFRAME_ROOT=/tmp/photoframe npm start
# open http://localhost:8080| Variable | Default | Meaning |
|---|---|---|
PHOTOFRAME_ROOT |
the repo root | Where data/ and logs/ are created |
PHOTOFRAME_PORT |
80 |
HTTP port |
PHOTOFRAME_HOST |
0.0.0.0 |
Bind address |
The weather and hurricane location is set in app/lib/weather.js and
app/lib/hurricanes.js. Garbage pickup works only for Miami-Dade addresses.
You enter the address in the app, and it is saved to data/home.json.
Target: Raspberry Pi 4B, Raspberry Pi OS Bookworm (64-bit), Node.js 20+.
Deploying is an rsync push over SSH from your dev machine. It installs the systemd units and the kiosk, then restarts the services. It waits for any upload in progress to finish first.
PI_HOST=rpi ./scripts/deploy.sh # code + system integration + restart
PI_HOST=rpi ./scripts/deploy.sh --code # code onlyThe Pi then serves the admin UI at http://<pi-address>/ and starts the
fullscreen slideshow on boot.
- docs/MANUAL.md: the full operating manual. Covers using the frame, the metadata JSON format and import rules, every file installed on the Pi, and troubleshooting.
- docs/benchmarks.md: why the image pipeline is built the way it is, measured on the Pi.
- docs/metadata/PLAN.md: design notes for the metadata and location work.
Place names come from GeoNames and are used under CC BY 4.0.






