How to move from Garmin Connect to Strava

Garmin Connect was a nice service when it launched, but then Garmin decided to focus on other things than listening to customers. Lucky for us, Strava launched (see the Strava blog, and maybe also why it’s good – in Norwegian), and is now a free and much better service for both cyclists and others. Here’s how to move all your activities to Strava – if you are able to fiddle a little with Ruby and Perl.

Why should you switch?

See Garmin’s reasons for switching from Garmin Training Center to Garmin Connect, and then remember that Strava is better than Garmin Connect. And that Strava listens to their users (remember the «transition» to Bing maps?), constantly develop new features like the segment explorer, cropping of logs, etc – and has a very nice Strava app (Garmin has one too, but it’s not as good, and not as free).

Getting activities from Garmin Connect

If Garmin Connect is the only place you have stored your activities, I recommend disconnect.rb, a very nice Ruby script that asks for your username and password, then downloads all TCX files automatically. Here’s what it looks like in action:

After this (and some waiting) you will have lots of .tcx files:

Nice.

If you want to tidy up a little, you can use this script to rename the files to «YYYY-MM-DD-HHMMSS-Sport.tcx» and put them in directories named «YYYY/MM».

Getting activities from Garmin Training Center

If you have (also?) used Garmin Training Center, you can also export from there. I recommend exporting entire years: just select the «2011» folder in GTC, right-click and export. This gives you one gigantic(?) TCX file, that you need to split. I recommend the Perl script at GPSVisualizer (or the web form if you have a lot of free time, but then it’s probably easier to export individual activities from GTC). If you name the Perl script «split.pl», the command to split the big «2011.tcx» file would be:

./split.pl 2011.tcx split/

After this the «split» directory will contain individual .tcx files for all activities in 2011.

Upload to Strava

Very, very easy: Send an email to upload@strava.com with all the TCX files – that’s it.

Comments or tips?

Please add it below, thanks!

Dette innlegget ble publisert i tips og merket med , , , , , , , , , , , , , . Bokmerk permalenken.

27 kommentarer til How to move from Garmin Connect to Strava

  1. ryge sier:

    Can you say anything about how Strava is compared to Endomondo?

  2. Good job infusing a bit of Rapha-style into your terminal window. Chapeau!

  3. Axcel sier:

    I have a problem. I need to export GC activities, but I don’t know Ruby and Gems.
    I download and install Ruby for Windows and I try to use Disconnect.rb but probably he requires custom gems.
    What can i do to install required gems and use Ruby script?

  4. I just wanted to give you a quick thanks for all of this. Worked out well for me when I mistakenly uploaded «empty» data for the past year, and lost a large number of rides (60+) on Strava due to that.

  5. StressedFish sier:

    Huge thanks for this article.

    I have got to the final stage and have sent a few activities to Strava.

    However I have a mixture of runs and rides, which the rename script has identified correctly, however when I upload to Strava they all upload as rides.

    Do you know if it is possible to get Strava to recognise the Activity type?

    Thanks

  6. Dave sier:

    Thankyou!

    I’m new to ruby. After installing the default ruby1.8 packages through Ubuntu (synaptic), I ran:
    gem install json
    gem install mechanize
    gem install choice
    gem install highline

    All is working perfectly.

  7. Tilbaketråkk: Backup af Garmin Connect | mahler | io

  8. Erwin sier:

    http://www.sideburn.org/garmin/

    «This will pull all tcx files from your garmin connect account and zip them up for download. Use at you own risk, this is not a secure site!! Then again it’s just a garmin account…. If you’re really hesitant about using your password on this site, I suggest changing your garmin password temporarily for use on this application then changing it back once you have downloaded your rides.»

  9. Fredrik sier:

    What does «%w{rubygems json fileutils mechanize choice highline/import}.map{|x| require x}»

    Exactly mean?

    I have downloaded the gems json, fileutils, mechanize choice and both highline and import. They are in the same folder as disconnect.rb.
    Is there anything I need to do with .map?

    Can someone help me?

  10. adam sier:

    fantastic; i’ve got everything in strava now. thank you,

  11. Nick Brown sier:

    It’s a real shame the tcx files exported from Garmin Connect do not contain the names and descriptions that you can give Activities on that site. It appears the tcx file could contain these as the format has space for activity names and Notes attribute. And still to be determined if Strava would import the activity name and the Notes section from the file even if they were there.

    • Blodsmak sier:

      Yes, Garmin should include the details on export. I’m not sure if Strava would import the additional data, but that should be easy for test if someone bothers (not me, as I’m done with the moving).

  12. Hoover sier:

    On Windows, OpenSSL has no access to the OS certificate store.. There (apparently) is a way to fix that, but for the purpose of this basic task, a workaround may be used. In ‘disconnect.rb’, change

    agent = Mechanize.new

    to

    agent = Mechanize.new do |a|
    a.verify_mode = OpenSSL::SSL::VERIFY_NONE
    end

    and it runs without verifying the garmin site’s certificate..

  13. Kevin sier:

    Thanks for the script and tutorial it works fantastically

  14. Don Macrae sier:

    It looks like you can no longer send a bulk upload to Strava with an email. That link no longer works, and I can find no reference on the strava website to such a feature. It appears that they think their bulk upload feature does the trick, but it’s limited to 25 files, so painful to upload a lot of history.

Legg inn en kommentar