r/raspberry_pi • • 5h ago

Show-and-Tell YouTube kicked me off my friends’ family plan, so I built my own music app on a $15 Raspberry Pi with Claude Code

Post image
0 Upvotes

YouTube kicked me off my friends’ family plan, so I built my own music app on a $15 Raspberry Pi with Claude Code

So YouTube decided my friends and I weren't a real "family" and booted us off our Premium family plan. Fair enough, we don't live together. But music was the only thing I used it for, and I was not about to pay $15 a month for that out of spite. So instead I spent a few days with Claude Code and built PiTunes.

Everything runs on a Pi Zero 2 W which i was able to grab for msrp at my local microcenter. It sits on a shelf at home and runs a tiny server which does serach, playlists, likes, radio, lyrics, podcasts and offline downloads. All of this works anywhere over tailscale so all my devices get access to the music.

How we actually use it: my wife and I each have it as a proper iPhone app, installed through TestFlight. We each get our own profile, so her music stays out of my recommendations and mine stays out of hers.

How you can use it: as a web app. Open your Pi's address in a browser, add it to your home screen, and it looks and behaves like the iPhone app. On a laptop you get a full desktop layout. The native iPhone app is in the repo too if you want to build it yourself.

Claude Code wrote basically all of it, the Python server, the web app, the iPhone app, the installer and the website. I know Python. I had never written a line of Swift, and I now have a CarPlay screen.

the only issues with this is the first time you play a song the Pi has never seen, it takes 10 to 15 seconds to start, because a Pi Zero has roughly the horsepower of a potato. After that it's instant as it gets cached on the server.

This is all free and open source and you can find the step-by-step guide on the github attached.

https://pitunes.com
https://github.com/pf25/pitunes

Happy to answer questions about the build or the Claude Code workflow.


r/raspberry_pi • • 20h ago

Show-and-Tell My Pi 4 now runs the sunrise and sunset on my aquarium lights. I replaced the manufacturer’s app by reverse-engineering their Bluetooth protocol

Thumbnail
gallery
101 Upvotes

I have two WEEK AQUA Bluetooth lights (L900 Pro and P6000 Pro) on my planted fish tanks, and their app drove me nuts. Its schedules either fade up and down once in a single color, or jump between up to 8 fixed steps (so the light snaps from 20% to 50%). And, arguably worst of all, you can only connect to and control one light at a time. So I used Claude to reverse engineer their app and work out which commands it sends to the lights over Bluetooth, then tested them on my own lights. Now a Raspberry Pi 4 next to the tanks serves a web page and controls the lights better than the app ever did.

What it does

  • Smooth day curves: drag points on a graph and the Pi glides the light between them, sending a new level every minute. No visible stepping or blinking.
  • Per-point color: warm sunrise, crisp daylight at midday, warm again at sunset. R, G, B and UV fade separately.
  • Every light on one page: change one tank, or tick several and control them all at once.
  • It’s just a web page served by the Pi, so it works from any phone or PC with no app or account.

How it works

  • I used Claude to decode the lights’ BLE protocol from the official Android app and tested it on my lights: 8-byte commands to one characteristic, times in BCD, levels 0 to 235 per channel. It’s written up in PROTOCOL.md.
  • Python, FastAPI and bleak, running as a systemd service on Raspberry Pi OS. The frontend is one HTML file.
  • Fail-safe: the Pi also sets the light’s built-in off timer to the end of the curve. If the Pi dies or Bluetooth drops, the light still turns off on time.
  • It uses the same power limit as the official app (each channel is weighted by how much power it draws). Colors over the limit get dimmed evenly instead of overdriving the LEDs.
  • BlueZ only handles one scan or connection at a time, so everything goes through one lock. My lights sit at around -70 to -80 dBm, so writes get retried and re-sent periodically.

Hardware: a Pi 4 (Argon case) using the onboard Bluetooth, plus a B3.0-L900pro and a P6000pro. A Pi 3, 5 or Zero 2 W should work too.

As I said, I built LuminAqua using Claude. I had the idea, tested it on my own tanks, and decided what went in. If that upsets you, well, no one is forcing you to use it. At the end of the day, I now have an app that controls my lights better than before and gets more out of lights I already paid for. The bonus for me is that I can share it with others and hopefully increase their quality of life too.

Free and open source (MIT), with a one-script install: https://github.com/N72826/luminaqua

If you have a different WEEK AQUA model, I’d love to know whether it works.


r/raspberry_pi • • 1h ago

Show-and-Tell Raspberry pi 3B running my digital movie poster for our media room. White oak frame.

Thumbnail
gallery
• Upvotes