Garmin 310XT sync w/ Linux

Thanks to pyusbGarmin-Forerunner-610-Extractor and GcpUploader, I am finally able to sync my Garmin 310XT watch with Garmin connect on my Linux box.

Garmin-Forerunner-610-Extractor downloads all the activity files from the watch, then calls callback scripts under $XDG_CONFIG_HOME(usually ~/.config)/garmin-extractor/scripts. In this case, it calls a script that uses gcpuploader to upload to Garmin Connect.

Don’t be fooled by the name, Garmin-Forerunner-610-Extractor actually supports a lot of Garmin devices that use ANT+:

  • Garmin Forerunner 60
  • Garmin Forerunner 405CX
  • Garmin Forerunner 310XT
  • Garmin Forerunner 610
  • Garmin Forerunner 910XT
  • Garmin FR70
  • Garmin Swim

Here is what I did (on Archlinux, other distro should be similar):

sudo pacman -S python2-pip #install pip for python2
sudo pip2 install pyusb --pre #need version newer than 1.0a2
sudo pip2 install GcpUploader #install GcpUploader

git clone [email protected]:Tigge/Garmin-Forerunner-610-Extractor.git
cd Garmin-Forerunner-610-Extractor

# since we run as root, so the config needs to be under /root
sudo cp scripts/40-upload_to_garmin_connect.py /root/.config/garmin-extractor/scripts
sudo chmod a+x /root/.config/garmin-extractor/scripts/40-upload_to_garmin_connect.py

Also needs to change the path to gupload in the script:

# CHANGE ME:
gupload = "/usr/bin/gupload.py"

Add garmin connect credentials in /root/.guploadrc

[Credentials]
username=yourgarminuser
password=yourgarminpass

Finally, run garmin.py to sync!

sudo python2 garmin.py

Bonus: I also find trapiriik.com can sync between Garmin connect, Runkeeper, Strava, endomondo activities. One button push, sync all of them. Or for $2 a year, it can auto sync between accounts. Pretty good deal 🙂

 

2012 看图说话(2) – RunKeeper

2012是跑步年,总计跑步632.4mi,最多的一个月跑了121mi(10月),跑了三个半马,还第一次跑了全马。体重减了10多磅,感觉回到了来美之前的状态。爬了几座山,最高的属美国本土第一高峰Mt Whitney了,22mi/6000ft的爬升,最长的是Inca Trail,4天的backpacking很好玩。开始滑雪,2月份第一次去,到之后3/4月连续每周去Tahoe滑雪,到这个雪季开始可以走黑道。
Runkeeper 2012
runkeeper_2012

2013年,希望可以一直跑步,不受伤,争取全马能够破4。2013年,想爬一座雪山,Rainier可能没什么缘分,那就Shasta吧。2013年,希望可以把黑道滑好,这样下一个雪季就可以去更多高山了。2013年,可能去趟西藏,可能去趟印度,其他的,就再看啦。