← Projects2 min read
Bike Wattage Calculator
I don't own a power meter, so I built a web app that estimates my cycling power from a GPS file or a Strava ride.
What it is
A web app that estimates how many watts I put out on a bike ride. You can try the front end at ryanjames1729.github.io/bike-wattage-calculator.
The problem
Wattage is one of the best ways to measure effort on a bike, and the hardware to measure it costs hundreds of dollars. I don’t have a power meter. There are websites that will do the math for you by hand, but I wanted it to just happen when I finished a ride.
What it does
Drop in a GPS file or link a Strava activity, enter your weight and bike specs, and you get back:
- Average and max power in watts
- Total elevation gain and distance
- A power-over-time graph of the ride
How it’s built
- Front end: hosted on GitHub Pages.
- Back end: serverless functions on Vercel.
- Database: a free Supabase SQL table that stores ride data.
- Automation: a Strava webhook that fires as soon as a ride syncs from my GPS watch.
The goal is zero touch. I finish a ride, it uploads, and the app works out the power numbers and writes them into the Strava activity description.
What was hard
The front end came together fast. The back end did not. At one point I was debugging Supabase, Vercel and the Strava API all at once, and no clever prompt was going to tell me which one was failing. I had to read status codes and pull logs before I could give Claude anything useful to work with.
Claude wrote the code and I played architect. It can write great code. It can’t debug a system it can’t see.
Read more
What this taught me about teaching computer science is in I Asked Claude to Solve a Cycling Problem. Here’s What I Actually Learned.