My Band Reads My Heart Rate Wrong in Winter, So I Vibe-Coded a Cardio App for My Magene Strap
- No.
- 284
- Date
- Read
- 5 min
- Words
- 1,030
Since I started following Huberman's training plan this month, the number of cardio sessions I do has gone up noticeably.
Or rather, before this I did no cardio at all except cycling.
Now that I'm doing three days of cardio a week, I've noticed my need to monitor cardio has gone up.
For strength training I log every set and weight in Xunji. It's a very good, very professional app. But it doesn't touch cardio.
My band is a Huawei Band 11 Pro. In winter, tracking cardio with a band has one problem: sometimes my heart rate is already 130 and the band still shows around 90. That's frustrating. A few minutes later the reading goes back to normal, but those few minutes of "cold start" are genuinely unpleasant.
When it comes to heart rate monitors, a chest strap is the most stable option.
As it happens, I own one: a Magene H613. Magene makes cycling gear. My bike computer and my old cadence sensor are both Magene, but the Magene strap seems to connect only to the Magene app.
And the Magene app only cares about cycling.
Strange, isn't it? Why should a heart rate strap only monitor cycling? Shouldn't it support every kind of cardio?
Exactly. From the strap's point of view, it can measure heart rate at any time. The problem is there's no handy app to connect the strap and log different activities.
So I vibe-coded an app just for heart rate straps, one that connects to straps from these cycling brands and logs running, incline walking, and other cardio besides cycling.
At first I built a strength training mode too, and deleted it the next day. I never wear a chest strap for strength, and for lifting you just need weight and sets. Heart rate isn't that important, and Xunji already does that well. No need to gild the lily.
So in the end it became an app focused only on cardio.
Once I decided on cardio only, I put all my effort into how it feels during a session. I really care about how things feel to use. Most of the time I think a watch is the best way to record exercise. But to get better data I started using a chest strap, which made my phone the stand-in for a watch.
So making the phone experience good became very important.
Cardio isn't like strength training. Between strength sets you rest a minute or two, and you have plenty of time to look down at your phone. But on a treadmill, an incline walk, or a spin bike, you're moving the whole time. The phone usually sits on a mount in front of the machine, or the screen is locked while you listen to a podcast or watch something on Bilibili.
So I made a dark, big-number mode for the in-workout screen. The numbers are big enough that a glance tells you your heart rate and which zone you're in (Z1 to Z5, each a different color).
If you're incline walking or on the treadmill, big buttons at the bottom of the screen let you adjust incline and speed directly. No more finishing the workout and reconstructing it from memory, and no backing out to dig through menus mid-session.
If you want to scroll your phone or answer a WeChat message mid-workout, the live heart rate and zone stay on the Dynamic Island and lock screen after you switch apps. Set a target zone (mine is to stay put in Z2 and burn fat) and the phone alerts you when your heart rate drops too low or climbs too high. You barely have to stare at the screen.
After a workout, what I care about isn't how many calories I burned. It's two more practical questions: was this hard enough, and is my cardio actually getting stronger?
So on the workout detail page, besides the zone-colored heart rate curve, I put the machine settings as a step chart right next to the heart rate curve. For example, when I raise the incline from 10% to 14%, you can see at a glance how the heart rate climbs with it.
I also added a few metrics I actually look at:
- 1-minute heart rate recovery: after you long-press to end a workout, it measures for 60 seconds to see how far your heart rate falls. That says more about recovery than peak heart rate alone.
- Heart rate drift within a session: at the same incline and speed, compare the first half and second half of a steady walk or run to see whether your aerobic base is holding.
- Long-term trends: stack weekly Z1–Z5 training time, then estimate long-term fitness and recent fatigue. After at least eight weeks, you can look back and see what you've built.
Anyone who has used a chest strap has probably hit two small annoyances. One: when the electrodes are still dry just after you put it on, the first couple of minutes can throw absurdly high false spikes. Two: the strap sleeps when you're not wearing it, so the app scans for ages and finds nothing. I fixed both under the hood.
The weird spikes in the first few minutes are filtered out automatically. Once the device info is remembered, the next time you put the strap on it connects by itself, no re-pairing.
Right now the app runs entirely on-device. No accounts, no ads, no flashy social feed. Data stays on the phone and also syncs to Apple Health, with export to TCX and CSV (I occasionally import it into Intervals.icu).
It started as a small project to fix my band's winter inaccuracy and get my Magene strap out of the drawer. Somewhere along the way it became the tool I can't go to the gym without.
If you also train cardio with a standard Bluetooth strap from Magene, Polar, or Garmin, or you're fed up with your band's cold-start drift in winter, tell me in the comments how you track cardio and what feature you'd want most.
After another couple of rounds of polish, I plan to run a TestFlight beta. Anyone interested is welcome to try it.