watts-to-volume.py
Watts → Volume
Pedal harder, the music gets louder. A terminal app that turns my indoor trainer's power into the volume of the Sonos speaker in the pain cave.
| stack | status |
|---|---|
| Python · Bluetooth · Textual | prototype |

- Reads live power from a Van Rysel D500 over Bluetooth (FTMS, with Cycling Power as a fallback)
- Rides alongside MyWhoosh by reusing the trainer connection it already has open on the Mac
- 100–400 W maps to volume 15–60, smoothed over three seconds so one sprint doesn't wake the street
- A Claude Code-style terminal UI: change every setting mid-ride with the arrow keys
- Dry-run and demo modes, so it can be tested without the bike or the neighbours
- Quitting puts the volume back where it was
