How do you use your Raspberry Pi?

12–19 minutes

read

I have a few Raspberry Pi’s around the house. One had been sitting on a shelf in my study for a while and as a bit of a play task I thought I’d see what I can do with it without touching a single line of code, config file or anything else beyond setting up SSH and granting Claude access to it. It has 2 GB of RAM and runs Raspberry Pi OS 12 (Bookworm). On top sits a Pimoroni Inky pHAT, a tiny 212 × 104 pixel e-ink screen.

I described what I wanted; it explored the Pi, wrote the code, ran the commands and asked me before anything risky. This post (also mainly written by Claude) is what we built, what broke, and what I learned.

Step 1: Getting the basics setup

A Wi-Fi setup service called wifi-connect was blocking the device from starting properly which I had been using as a Homebridge server. Because Homebridge was set to start after it, Homebridge never started at all. Disabling it fixed it at a stroke. (Poking it the wrong way first knocked the Pi off Wi-Fi, so I had to pull the plug once.)

Then came the overdue maintenance:

  • System updates. A full OS update, with a backup of the Homebridge config first.
  • Homebridge 2. Upgraded, along with every plugin. Plugins only supported up to Node.js 24, so I pinned Node there rather than the newest release.
  • Ring. Its login token had expired. I generated a new one in the Homebridge UI, then re-added both cameras and the Samsung TV to Apple Home.
  • Power. Homebridge kept warning about under-voltage. A proper Raspberry Pi power supply fixed it, and a stress test showed no throttling at all.

Lesson one: when a Pi service “just stops”, check what it waits for at boot.

Step 2: Waking up the e-ink screen

The first project for the Inky pHAT was a daily London weather dashboard, using the free Open-Meteo API (no key needed). It refreshed on a schedule and highlighted rain in red.

The red was the problem. It came out pale and washed-out. We tried three fixes: a double refresh, a different waveform table (the timing pattern that drives the e-ink particles), and a custom “red boost” waveform with longer drive times. None made it properly red. The panel was made in July 2020, and I suspect the red ink has simply aged.

So I went black and white only. That had a bonus: the black-only waveform refreshes in about 5 seconds instead of the 15 or more that red needs. That speed mattered for what came next.

Step 3: What’s that plane overhead?

The weather screen was fine, but I wanted something more active. I live under the approach to Heathrow, so I asked for a display that updates the moment a new plane flies over. It shows where the plane came from, where it’s going and what it is.

The Pi checks a circle around my house (now 6 km) and redraws only when a different plane becomes the nearest one. A typical screen reads YYZ→LHR in huge white-on-black letters, then 777-300ER, then AC856 3,200ft.

No single free service gives you everything, so it stitches four together:

ServiceWhat it providesFree limit
adsb.lolLive positions, aircraft type and registration500 requests a day
OpenSky NetworkLive positions (backup source)400 requests a day
adsbdbRoute (origin and destination) from the flight numberNo published limit
hexdb.ioAircraft type when adsbdb doesn’t know itNo published limit

The tricky part is staying inside the daily limits while still catching planes. The script works out its own polling rate. It splits about 790 checks across both feeds between 05:30 and 23:30 (Heathrow’s quiet hours), which works out at roughly one check every 82 seconds. Routes and aircraft are cached, so a plane seen before costs nothing.

Three refinements came from living with it:

  1. Readable from the sofa. My first layout was crammed with detail. I sent a photo from my seat, and we redesigned it around three huge lines: route, type, flight and altitude.
  2. “Unknown aircraft”. About 3% of planes were brand-new airframes (new BA jets, Riyadh Air) that no free database lists yet. Now the screen shows the airline instead, and unknown planes are looked up again after two days.
  3. Impossible routes. About 5% showed nonsense like “Larnaca → Tel Aviv” over South London, because airlines reuse flight numbers. Now each route is checked against the plane’s actual position. If flying via my house would add more than 300 km (or 25% of the trip), it shows “route unknown” instead.

A USB radio receiver (around £35) would make it fully real-time with no limits. That’s on the list.

Step 4: When’s my train?

On weekday mornings, planes matter less than my Thameslink train from Tulse Hill to Farringdon. From 06:00 to 10:00 on weekdays, the screen now shows:

  • The next train in huge type, with “On time”, “exp 08:55” or “Cancelled”.
  • The two after it, with “+2” for minutes late or “canc”.
  • The line’s overall status (“Good Service”, “Minor Delays”) and when it last checked.

The surprise was the data source. National Rail’s own feed needs a registration, but TfL’s free, keyless API turned out to cover Thameslink departures, including delays and cancellations. The script keeps only northbound trains that actually reach Farringdon.

I still wanted my planes, so they interrupt the trains: a new plane takes over the screen for 30 seconds, then the train view comes back. TfL allows about 50 requests a minute without a key; this uses two.

Step 5: Watching the whole house with Uptime Kuma

Uptime Kuma is a self-hosted status dashboard. It runs in Docker on the Pi, uses about 130 MB of RAM, and now watches 23 things. When something goes down, my phone buzzes through the free ntfy app, with no account needed.

To decide what to watch, we scanned the home network and found 27 devices. Here’s what made the cut:

GroupWhat’s monitored
InternetBroadband (ping to Cloudflare), a real web page, and the router’s DNS
NetworkThe main TP-Link Deco router and all four mesh units
Apple HomeHomebridge, its HomeKit bridge, and the Apple TV that acts as the Home hub
DevicesHive hub, Ring camera, three Meross smart plugs
My projectsThe e-ink display, TfL and the plane data feeds
The Pi itselfHealth, backups and the Time Machine share

Two tricks made it more than a ping checker:

  • Heartbeats. The plane display reports in after every successful check. If it crashes, or both plane feeds fail, the heartbeat stops and I get an alert. That tells me whether a blank screen is the Pi’s fault or the internet’s.
  • Pi health. A small script runs every two minutes and alerts me if the Pi overheats, its disk or the backup drive fills up, memory runs low, or an earlier under-voltage warning comes back.

Step 6: Backing up the Pi, and my Mac

With so much now living on one SD card, a backup stopped being optional. SD cards are the part of a Pi most likely to fail.

The first backup went to iCloud. The Pi streamed a compressed image of its whole card over SSH into my Mac’s Documents folder, which iCloud syncs. Blanking the card’s free space first shrank the 16 GB card to a 3.3 GB file. A checksum confirmed the copy matched the card byte for byte.

Then I plugged in an old 8 TB Seagate desktop drive. Two things to know first: it was formatted for Mac (APFS), which the Pi can’t write to, so it had to be erased. Now it does two jobs:

JobHow it worksSpace
Weekly Pi imageEvery Sunday at 03:00, a full card image you can write straight to a new card with Raspberry Pi Imager. Keeps the last 4. Alerts my phone if one fails.About 11 GB each
Mac Time MachineThe Pi shares the drive over Samba, set up so Macs see it as a Time Machine disk. Backups are encrypted and run every hour over Wi-Fi.Capped at 3 TB

The first Time Machine backup is about 440 GB and takes around 13 hours over Wi-Fi. The hourly ones after that take minutes.

If the card dies, recovery is: write the latest image to a new card, put it in, and switch on. Everything comes back exactly as it was.

Step 7: My wind farm, on the e-ink screen

I own a small share of Kirk Hill, a community-owned wind farm in Scotland with eight turbines and 18.8 MW of capacity. Its members’ dashboard has a read-only API, so the next job was putting the wind farm on the screen.

The API needs an API key from the dashboard’s account settings. I typed it into a hidden prompt on the Pi, so it never appeared in the chat with Claude, and it lives in a file only my account can read. The API returns live output, wind speed, each turbine’s status, an hourly forecast and daily statistics, either for the whole farm or scaled to my share.

The new screen shows:

  • Live output in huge white-on-black type (for example 11.6MW), with wind speed and how hard the farm is working as a percentage of its maximum.
  • Today’s output by hour. Solid bars for what’s been generated, outlined bars for the forecast for the rest of the day, and a small arrow at the current hour.
  • One dot per turbine. Filled means running; a ring means stopped. Next to them, how much my share has made today.

The wind farm is now the screen’s resting view. Trains still take over on weekday mornings, and a new plane interrupts for 30 seconds before the wind farm comes back. It refreshes every 5 minutes, which is about 4 requests against a limit of 120 a minute. Regular use also stops the key expiring, which happens after 90 days without use.

Uptime Kuma got a new monitor too. It alerts my phone if the API stops working, the readings go stale, or a turbine stops while the wind is blowing at 5 m/s or more. Turbines stopping in calm weather is normal, so that doesn’t count.

Step 8: Wind vs house, or how much am I really buying?

The question I actually wanted answered: how much of the electricity my house uses does my wind farm share cover?

The other half of the data comes from Octopus Energy, which supplies my electricity and gas. Octopus has a personal API, again with a key from the account page, that gives smart meter readings. Better still, I have an Octopus Home Mini, a small device that reads the smart meter every 10 seconds. It sends the readings to Octopus rather than sharing them on the home network, so the Pi fetches them from Octopus’s API. That gives live house usage and today’s total so far, not just yesterday’s.

The answer for the last 30 days:

kWh
My share of the wind farm generated292
My house used498
Net I bought206
Share covered by the wind59%

The daily numbers swing wildly with the weather. Over three windy days in late October, my share made about 20 kWh a day more than the house used. In a calm spell in early November, some days it covered almost nothing.

The screen now alternates every 5 minutes between the live wind farm and a new energy view. The energy view shows today’s net (“Bought 1.1kWh” or “Spare 2.0kWh”), wind made against house used, the last 7 days as pairs of bars, and both live power figures.

One caveat: the wind farm’s power doesn’t physically flow to my house. My share earns savings on my bill instead, so “bought” is a calculation, not something a meter measures. Gas is left out, because wind can’t offset it.

Step 9: A web dashboard for phone and desktop

A 212 × 104 pixel screen only holds so much. So the same information now has a web version, served by the Pi on its own port and laid out to work on a phone or a desktop.

It has five cards:

  • Kirk Hill wind farm. Live output and wind speed, an hourly chart of generated against forecast, my share’s output for today and tomorrow, and a tile for each turbine.
  • Wind vs house. Today’s net, a bar showing how much of today’s use the wind has covered, and a chart you can switch between 7 and 30 days.
  • Trains. The next eight departures to Farringdon with delays and platforms. On the web these show all day, not just in the morning.
  • Overhead. The plane above the house right now, and a list of recent ones.
  • Raspberry Pi. Temperature, memory, disk and backup drive space, and the date of the last backup image.

The web page makes no calls of its own to the wind farm, Octopus or plane services. The e-ink program saves its latest data to a file each time it updates, and a tiny Python web server (standard library only, no extra packages) serves that file. Adding the website added no load on any API.

It refreshes itself every 30 seconds, follows the phone’s light or dark mode, and can be added to the iPhone home screen like an app. Uptime Kuma watches it as well.

Step 10: Seeing it all from outside the house

The web dashboard only worked on my home Wi-Fi. To see it from anywhere, I chose Tailscale, which joins my phone and the Pi into a small private network that works wherever I am. It’s free for personal use, and on the Pi it uses about 30 to 50 MB of memory.

The main alternative, opening a port on the router, would put the Pi and a dashboard with no password on the open internet. With Tailscale, nothing on the router is opened at all.

Before installing it, I asked what security risks it adds. The honest answer is that the security of your Tailscale account becomes the security of your home network. So:

  • Two-factor sign-in on the account used with Tailscale.
  • Only the Pi joins. Tailscale can share the whole home network, but I left that off. My smart plugs, cameras and hubs stay home-only.
  • An access rule so my devices can reach only the dashboard, Uptime Kuma, Homebridge and SSH, and nothing else on the Pi.
  • Device approval, so a new device can’t join just by signing in to my account.
  • No sign-in expiry for the Pi, so it doesn’t drop out while I’m away. Uptime Kuma alerts me if it ever does.

Setup took about ten minutes. Claude installed Tailscale from its official package source and started the sign-in. I approved the Pi in my browser and installed the iPhone app. Then I switched off Wi-Fi, and the dashboard opened over mobile data.

And then my Pi set off a smoke alarm

Halfway through the Time Machine setup, Apple Home told me (and everyone else in the family, cue some panic WhatsApp messages) smoke had been detected in the study. I was sitting in the study. There was no smoke.

The culprit was the Pi Health plugin. It adds a “smoke sensor” to the Pi’s accessory, not because it can smell anything, but as a warning light. It trips when the Pi is throttled, under-voltage, or using 80% of its swap. The swap file was only 200 MB. Copying the SD card filled the memory cache, then Time Machine started, and swap hit 87%. Apple Home did exactly what it should with a smoke sensor.

The fix was three changes: turn off the plugin’s smoke sensor, grow swap to 1 GB, and make the backup read the card without filling the memory cache. Real problems still reach my phone through Uptime Kuma, with a message that says what’s actually wrong.

What I learned

  • Read what a plugin exposes before you install it. A “smoke sensor” that means “the computer is busy” is a nasty surprise.
  • Free data has gaps. About 3% of planes had no type and 5% had wrong routes. Checking data against reality (does this route even pass my house?) beat hunting for a perfect source.
  • Check what a service waits for. One stuck service at boot silently took down all of Homebridge.
  • Monitor the monitor. Heartbeats tell you when something has quietly stopped, not just when it’s down.
  • Test the backup. A backup you haven’t opened is a hope. Both copies were checked against the card.
  • Keep API keys out of the chat. Every key went into a hidden prompt on the Pi and into a file only my account can read. The AI never saw a single one, and it didn’t need to.

What one 2 GB Pi is doing now

All of this runs on a five-year-old Raspberry Pi 4 with 2 GB of RAM. It idles at about 55°C with roughly 1 GB of memory free.

ServiceWhat it doesApprox. memory
HomebridgeRing cameras, Samsung TV and Pi Health in Apple Home320 MB
Uptime Kuma (Docker)26 monitors, alerts by ntfy130 MB + Docker 55 MB
E-ink displayPlanes, trains, wind farm and energy on the screen60 MB
Web dashboardThe same data for phone and desktop35 MB
TailscalePrivate access from outside the house40 MB
SambaTime Machine share for the Mac30 MB
xrdpRemote desktopOnly while connected

Not bad for a box that was gathering dust a few days ago.

One response to “How do you use your Raspberry Pi?”

  1. HI Matt,

    currently only 1 running here as a network streaming server with a USB mic to fetch bird sounds for the BirdNet-Go Docker container which analyse this audio stream: https://oliverbusse.notesx.net/hp.nsf/blogpost.xsp?documentId=25A2

Leave a Reply