It has been reported that the script does not work anymore:
Traceback (most recent call last):
File "./sync.py", line 124, in <module>
File "./sync.py", line 59, in main
File "./sync.py", line 116, in sync
cookie = garmin.login(garmin_username, garmin_password)
File "/home/jhartman/scripts/withings-garmin-v2/garmin.py", line 132, in login
cookies = self._get_cookies(email=username, password=password)
File "/home/jhartman/scripts/withings-garmin-v2/garmin.py", line 100, in _get_cookies
data["lt"] = re.search("name=\"lt\"\s+value=\"([^\"]+)\"", preResp.text).groups(1)
AttributeError: 'NoneType' object has no attribute 'groups'
I’ve managed to fix it. See latest commit in https://github.com/jaroslawhartman/withings-garmin-v2
Since a while I’m owning great Withings Scale which has a capability to store measurements in a cloud. Because I’m using Garmin GPSes (and Garmin Connect), I’d love to synchronize the measurements to the Garmin Connect site.
Lucky, I found a great script garmin-withings.
Unfortunately, after latest changes in the Garmin Connect (implementation of SSO on march 2014) the script stopped to work. I’ve compiled changes proposed by https://github.com/cpfair/tapiriik and it seems that the script with my updates works again (well, at least until further changes in Garmin Connect…)
You can find the script on https://github.com/jaroslawhartman/withings-garmin-v2
Garmin Connect can display a lot of other parameters, not only weight and body fat level:
It would be great to calculate all these figures and post them to Garmin Connect, right? 🙂