← All postsAi

Photo Frame Hacking: My Experience

I saw Wes Bos’s post about hacking a cheap photo frame and turning it into a customized digital display with a calendar, photostream, etc — all with the help of an LLM, and thought I would give it a shot. I went down a couple of rabbit holes in the world of networking and Android 6 quirks, but it was a lot of fun, and the frame works! Here’s how my experience went.

The Purchase

I bought a $50 photo frame on Amazon, using one of the affiliate links in Wes Bos’s photo frame repo. I didn’t want to risk buying one that hadn’t been hacked like this before, as a hacking newbie ;)

I cloned the repo and then pointed Claude Code at it, saying that I wanted to turn it into a custom display for time, weather, my calendar, and photos. I used Claude Opus 5.5, starting with plan mode (yes, I still use plan mode as I like to be able to steer the agent up front before it writes any code).

It wrote up a plan and then I had it execute the plan step by step, waiting for magic to happen. I dropped down to Claude Sonnet for most of those tasks. It didn’t take very long for it to have adb up and running and my Mac was able to then connect to the frame, which was running an ancient version of Android (Android v6).

Forays into Networking

I decided that I wanted to put the frame on our guest wifi network, attempting to follow networking best practices where we isolate smart devices that don’t need to connect to the rest of our home network.

Soon I realized that what I thought was our guest network was actually just an IoT network, which was still part of the same subnet! This was not where I wanted this Android device to live, being that it’s running a very old Android version that won’t ever receive security vulnerability fixes. Frames like this also have vendor software that, if not disabled, could allow for back door access to the device, leading to the possibility of malicious activity. Better to be safe than sorry!

Getting the device working on a new guest network that I set up turned out to be a bit of a hassle. At first, it would drop connection intermittently, and I also ran into issues with ADB freezing on a device, making it unresponsive, and it would get stuck on the Android WiFi settings screen. Eventually, I worked through those issues with Claude (back on Opus 5.5). It created a watchdog that checks every minute and restarts ADB on the frame if it’s down.

I also added a utility on the frame that automatically switches back to the main “Today” home screen after a certain time interval. That was a godsend, as it kept getting stuck on the wifi settings screen.

After more wrangling I was able to get Tailscale up and running. I had heard about Tailscale on podcasts as a very useful tool with a generous free tier. It was pretty straightforward to configure with Claude, and it allows me to be able to connect to the frame, on my home guest wifi network, from my laptop, which is on my main home WiFi network. It does this by creating a peer-to-peer encrypted network where devices communicate directly.

Network diagram: the home router puts my laptop on the main Wi-Fi and the photo frame on an isolated Wi-Fi network. Both run Tailscale, and the laptop connects to ADB on the frame through an encrypted Tailscale tunnel with adb connect to the frame's Tailscale address on port 5555.

Home Wi-Fi infrastructure for the photo frame

Finally, I had Claude add a watchdog to auto-reconnect to WiFi if the frame remains disconnected for a bit. So far, this has worked great.

Calendar Foibles

I wanted the calendar to display just my personal Google Calendar, but it turned out that my calendar was too big to fit under Cloudflare Workers’ free tier. I had been planning on using a worker to parse the calendar directly. My calendar was about 7MB and I am cheap, so I decided to use my linux box at home, which is basically always on, to handle this step. I used Claude to set up a job on my linux box that processes my Google Calendar secret ical feed using ical.js, pulling events from 1 day before to 8 days ahead, and uploads the JSON to a Cloudflare Workers KV key. An API key for the worker sits on my linux box.

The Cloudflare worker has an /api/calendar route that just reads the KV key and returns it to the frame, after checking for a token. The calendar page on the frame fetches the calendar every 5 minutes. It also tracks the last synced time on the data. If the last sync time exceeds 20 minutes, the frame’s calendar will display a “calendar offline since…” message, so I know that something’s up. It has worked well so far.

Other Tweaks

As a frontend engineer, I had to tweak!

UI

I tweaked the default font pairing a bit, though what the repo had was pretty solid too! I also added a botanical element near the clock and may see if I can fit in more elements too, without affecting readability. I also added a different color palette since I love purple.

Photo Stream

I updated my photos tab to pull photos from a public Flickr album that I have (yes, I am one of the few people who still use this service, as I have so many years of photo albums on it and it serves as another photo backup for me). It works great, and tapping on a photo advances to the next one.

Dark Mode

I set my frame to go to dark mode starting at 9:30pm, and I also added automatic dimming of the display brightness at that time. I am a huge dark mode fan and this was very easy to add with Claude.

The photo frame's brightness control

The Result

I’m going to continue to tweak this display over time, but I’m happy with how things turned out. When I’m bored of weather and calendar, I can just tap on the photos view and enjoy some of my past travel adventures.

The photo frame in my office showing the Today screen

The photo frame in my office showing the weather screen

The photo frame in my office showing the photos screen

To see the full repo including all of my changes, check out my fork on GitHub: https://github.com/sheelah/photo-frame-dashboard