Saturday, March 03, 2018

Converting Strava segments to FIT files

Strava Premium users who own a Garmin can sync their favourite Strava segments with their Garmin device automatically. But that’s not an option available to free users. Apparently this site used to be able to generate the FIT files used by Garmins but Strava made some fairly radical changes to their API that broke that site (and many others).

So I’ve added a FIT file export to my Segment Explorer. Due to rather inclement weather I’ve not been able to test this out on the road yet, but downloading the FIT file and shoving it in my Garmin\NewFiles folder displays it in my Segments list so it seems to work. If you authorize my app then your PR time will also be included in the file.

Update – You can now add a goal to the generated FIT file if you generate the file from the segment details page

19 comments:

bemme51 said...

Hi, I used gniza's tool quite a while. I tested yesterday an exported segment which I download here. So far I'm not sure which datat is included in the fit-file generated here. The "gniza"-fit-files contained the effort I picked before downloading (usually the segment leader time). so far it seems that there are some ponters for the different leader types: https://github.com/BenniG82/edge-segments/wiki/Segments-FIT-File-Structure

I didn't had enough time to compare between the segemnts, I'll follow up on that ( I still kept a few old "gniza" files)

ANd - thanks for your work :-)

Doogal said...

If you connect your Strava account to my page, it will include your PR data. It should also include the KOM and QOM data, although I'm just taking an average time for the KOM/QOM points along the segment as I'm not sure if I'm able to get the actual times from Strava (I will investigate further)

Unknown said...

I have a edge 510 plus. And used your site. The segments show up in my device but I can't get it to popup on my display. Am I doeing something wrong?
I have selected Garmin segments in the device. Should I select strava segments instead?

Unknown said...

Sorry that must be 520plus

Doogal said...

I don't have access to a 520 plus so unfortunately can't test it. It works OK on my 810 and I've had feedback from people using the FIT files on Forerunner 935, Edge 1000 and Edge 510. I'd have thought the 510 is pretty similar to to the 520 so I'd have thought it should work. You'll want to be set to Garmin segments, if you set it to Strava segments it will try to sync your starred segments from Strava which will only work if you've got a Premium account (and if you've got a Premium acount that's probably the best approach anyway).

Is it a problem with all the segments or just a specific one? Might be something related to what's in one of the segments. Also is there anything in the Garmin\Debugging folder on the device?

Unknown said...

Come posso fare a collegare il mio accaunt trava alla tua pagina??? Grazie

Unknown said...

Thank you! I had some segments that weren't getting transferred to my Fenix 5X and I was able to transfer them with your site.

jardelaf said...

For a long time I was looking for some website or app that could download the strava segments and consequently could share them in garmin and use them because the gniza site no longer works (unfortunately).
But from looking, I found this post and I followed the steps and downloaded a segment. I'll test it and hope it all goes well.
I'm from Brazil!

ogi said...

Thank you very much :) We need this kind of tools like gniza. Strava is insufficient in some respects. Do you think to improve your tool? For example are we able to merge our different achivements such as PR, last ride or any ride in a specific date?
Thanks,
Ugur

Doogal said...

Your PR should be in there if you've authorised my Strava app. There's only a certain number of different types of achievement that can be added to a FIT file, Overall (I guess best of KOM/QOM), PersonalBest (not sure how that is different to Pr), Connections, Group, Challenger, Kom, Qom, Pr, Goal, Rival, ClubLeader. I could potentially fill any of them if they are useful. I guess they could also be reused for other things but I think that could be confusing. I'm thinking goal could be pretty useful and I can hopefully just pick it up from Strava, so you can set it to whatever you like?

Doogal said...

Although looking at it more closely the Strava API doesn't give me access to a user's goal on a segment, but I could probably add an option for adding a custom goal when generating the FIT file?

ogi said...

if you can add custom goal, i would appreciate. Thanks:)

Doogal said...

I've added it to my To Do list, hopefully I'll get to look at it soon

ogi said...

Thanks :)

Anonymous said...

Just want to say i really appreciate the work you've done setting up this website, it has worked great with my Garmin 510 for sometime now!

Can i ask if you know if it works with a Element bolt/roam device (as i am thinking of purchasing)? I.e. can i put the generated fit (or gpx) file onto the bolt and have it show up as a segment whilst out riding?
Many thanks

Doogal said...

I'm afraid I've not had any reports of people using these files on an Element Bolt/Roam. As far as I can tell it generates FIT files for workouts and uses GPX for routes so it understands the formats but I can't find any information about what it uses for segments

If you do buy one I'd certainly be interested to know if works (I was leaning towards buying a new Garmin to replace my ageing 810 but maybe I should buy a Wahoo instead for testing purposes!)

Doogal said...

You can now add a goal to the FIT file from the segment details page

ogi said...

That's great. i will try and let you know. Thanks:)

ogi said...

I tried with Edge 1030. It seems it works. it will be very useful for me. Thanks:)