---
title: "Watts → Volume"
description: "Pedal harder, the music gets louder."
url: "https://www.life.rip/side-projects/watts-to-volume"
file: "side-projects/watts-to-volume.py"
meta: "Python · Bluetooth · prototype"
---

# 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** |

![Mid-ride in demo mode: live watts, the volume they map to, and the power curve](https://www.life.rip/side-projects/watts-to-volume.jpg)

- 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

![Settings change live with the arrow keys; space pauses the volume where it is](https://www.life.rip/side-projects/watts-to-volume-settings.jpg)
