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 🙂

 

利用Zindus同步Thunderbird和Gmail的Contacts

现代互联网中最头疼的问题就是同步和整合了。Palm的jon rubinstein前两天在CES上也这么说了[1]。最好的方式,就是有一个巨头提供所有你想要的服务,诸如Google之类也在这么做了。然而,互联网的另一个问题在于,它并不是那么安全。前一阵子,我就看到不少关于google账号被禁用的案例。这让我深深觉得,依托一个单一的服务提供商是一件很危险的事情。

至少,本机备份一份吧。

Thunderbird可以通过pop的方式把Gmail的邮件全部下载到本机,而1的一个Addon – Zindus提供了两者contacts的同步。

Zindus的功能很简单,就是提供一个两者的同步,可以自动同步。试用下来感觉不错,对中文支持也没问题。需要注意的是,由于两者地址格式不同,同步会有一点问题,官网上也有提到,设置里有选项。另外,Thunderbird的phone里不能出现两个相同项,譬如只能有一个mobile项和一个home项,如果gmail的某一个contact里有多个mobile项这时只会同步第一项。但总体而言,Zindus基本满足我的需求。

Mozilla Addons的链接猛点这里。主页猛点这里