Is there an way to read the default bike out of the profile?
I quit using the Karoo several years ago because I couldn't use ActivityFix to set the strava gear_id using sensor names. Now, as a look at the Karoo again, I see that the profile specifies a default bike but you can't pick that up in the fit file or from the json after the ride ends. Why is this not available or am I missing something?
I'm willing to write an extension to make this work but this seems like a crazy omission to me
-
Hi John,
you're not missing anything – I ran into the same wall while building my extension (WaxLog). As of karoo-ext 1.1.9, an extension's RideProfile only has id, name, pages, indoor, defaultActivityType and routingPreference – no bike. The Bikes event gives you the Karoo bikes (id, name, odometer), but nothing links a profile to its default bike.
Two workarounds I know of:
• Map profiles to bikes inside the extension – the user links each ride profile to a bike once. That's what WaxLog does; the catch is one profile per bike.
• Compare each bike's odometer before and after a ride – the one that grew should be the bike that was ridden. I haven't verified yet when exactly the Karoo updates the odometer, so treat that one as an idea, not a recipe.An official field for the profile's default bike would make all of this much simpler.
-
Adding a few data points from looking at Karoo 3 internals (unofficial, interoperability work):
- The default bike really is stored in the ride profile on the device: the profile has a
settings.defaultBikeIdfield pointing to a bike document. So the data exists, it just isn't exposed, neither in karoo-ext'sRideProfile(as Zalvato says) nor in the ride outputs. - The FIT file doesn't carry it. A Karoo 3 FIT has
file_id,sport(cycling/generic only),device_info,event,record,lap,session,activityand Hammerhead developer fields, but nobike_profilemessage and no bike field. - The partner API activity has no bike either. The undocumented API behind the dashboard does have a
bikeIdfield on activities, but it needs a dashboard session token, so it's nothing to build a tool on.
Since the field already exists internally, a feature request could be quite specific: expose the profile's default bike in
RideProfile(so it can be matched against theBikesevent), and the ride's bike in the FIT/activity data. - The default bike really is stored in the ride profile on the device: the profile has a
-
The bike should be included in the API available data. It’s crazy that it isn’t.
How I got around it is that when the ride is over, I have a screen that comes up showing a menu choice for the bike. When the bike selection is made, it’s remembered and preselected for each subsequent ride with that profile. Access to login through Strava is handled through CloudFlare with a QR code style login which keeps the extension connected to Strava for future rides.
I’m in the finishing stages of this. Just need to clean up some privacy issues but then I’d be looking for beta testers. There’s a limit on both Strava and CloudFlare for connections and I have to hit certain numbers to get to unlimited access.
I switched back to Garmin over this issue because I use ActivityFix to set the bike equipment in Strava then ProBikeGarage reads the Strava rides and assigns mileage to bikes where PBG picks up maintenance flags for various components on that bike. This fixes that and it seems to work.
My remaining complaints with the Karoo were the messy sensor stack and it’s limitations of which assigning sensors to profiles, while a messy hack, does work. The other issue for me was the worst in class battery life of 10 hours. Hopefully when a K4 comes around that gets addressed. Until then, for long or multiday rides, I go back to my Edge 1050.
All that said, with the ability to easily sideload apps/extensions, many of the software issues can be addressed. Karoo’s backend software is light years ahead of Garmin’s with Garmin Connect.
Please sign in to leave a comment.
Comments
3 comments