Withings Sync

174 views
Skip to first unread message

Ray O'Halloran

unread,
Jan 7, 2020, 6:17:27 AM1/7/20
to golden-cheetah-users
I have just connected my Withings account with GC and got confirmation that the connection is authorised and ok. When I try to import my weight and bodyfat measurements however they are not pulling through. I am following the process detailed below:

1. Select Share/ Get Body Measurements
2. Select Withings as import source
3. Select From date of last downloaded measurement to today
4. Press Download

the progress bar goes blue to the end and stays that way however, my data does not update. 

Can you please help in terms of things I can try to fix this?

Thanks

Ale Martinez (Please don't email or cc me)

unread,
Jan 8, 2020, 9:00:14 PM1/8/20
to golden-cheetah-users
Have you tried other date ranges, s.t. all?

Ray O'Halloran

unread,
Jan 9, 2020, 4:38:30 AM1/9/20
to golden-cheetah-users
Hi Ale,

Yes, I have tried all options to no avail. Any additional advice?

Thanks

Ale Martinez (Please don't email or cc me)

unread,
Jan 9, 2020, 6:12:59 AM1/9/20
to golden-cheetah-users
According to your description it seems to be working, how are you checking is is not updating your data?

Ray O'Halloran

unread,
Jan 9, 2020, 12:20:07 PM1/9/20
to golden-cheetah-users
Hi Ale,

I am checking using both the Althlete Weight metric in a chart and also in the measurements tab under user preferences. 

Neither are showing updated figures.

Thanks

Ale Martinez (Please don't email or cc me)

unread,
Jan 9, 2020, 2:25:34 PM1/9/20
to golden-cheetah-users
It's weird, just checked using from the date of first recorded activity to today with delete existing checked and it downloaded all the existing records in my Test account.

Are you using v3.5 RC2X? Any message in goldencheetah.log?

Ale Martinez (Please don't email or cc me)

unread,
Jan 9, 2020, 7:12:06 PM1/9/20
to golden-cheetah-users
(continue) I noticed Withings protocol debug is enabled in v3.5 RC2X builds, so if you start GC from the command line the interchange will be logged at the console.

Also updated the wiki entry to reflect current status, just in case it may help: https://github.com/GoldenCheetah/GoldenCheetah/wiki/UG_Special-Topics_Weight-settings

Ray O'Halloran

unread,
Jan 10, 2020, 4:41:27 AM1/10/20
to golden-cheetah-users
Hi Ale,

I am using RC2X on a macbook with Catalina OS. I am not great with IT and dont know where to find the GC log?

I used the discard all existing measurements option and this has cleared all data points, which suggests that GC is somehow getting a blank file?

Thank you,
Ray

Ale Martinez (Please don't email or cc me)

unread,
Jan 10, 2020, 7:33:19 AM1/10/20
to golden-cheetah-users
El viernes, 10 de enero de 2020, 6:41:27 (UTC-3), Ray O'Halloran escribió:
Hi Ale,

I am using RC2X on a macbook with Catalina OS. I am not great with IT and dont know where to find the GC log?

goldencheetah.log is parallel to your Athlete's folder, see Goldencheetah > About > Version

I used the discard all existing measurements option and this has cleared all data points, which suggests that GC is somehow getting a blank file?

Try running GC from a terminal window, s.t.

$  /Applications/GoldenCheetah.app/Contents/MacOS/GoldenCheetah

to see what get printed when you download from Withings 

Ray O'Halloran

unread,
Jan 10, 2020, 8:32:50 AM1/10/20
to golden-cheetah-users
Hi Ale,

I ran it from the Terminal and got the following output:

[Cloud/WithingsDownload.cpp:82 getBodyMeasures] OAuth 2.0 API

[Cloud/WithingsDownload.cpp:104 getBodyMeasures] url https://account.withings.com/oauth2/token grant_type=refresh_token&client_id=eaa338e1f64bcdb8579d21550df661c84d1d28e2053c5d0ede4600c1ebc8b6cd&client_secret=281e8d4c251f02bc7e3967f772aefb1d61b22d311d3e6064f693cb100442c132&refresh_token=a0af3f02479bb1c12d3c8805ccf1bd62d1507d87

[Cloud/WithingsDownload.cpp:109 getBodyMeasures] response: {"access_token":"ecabbf0628776e1c28f4151f7aec1c165d34d099","expires_in":10800,"token_type":"Bearer","scope":"user.info,user.metrics","refresh_token":"a0af3f02479bb1c12d3c8805ccf1bd62d1507d87","userid":16041023}

[Cloud/WithingsDownload.cpp:144 getBodyMeasures] URL: https://wbsapi.withings.net/measure?action=getmeas&access_token=ecabbf0628776e1c28f4151f7aec1c165d34d099&startdate=1545761760&enddate=1578700740

[Cloud/WithingsDownload.cpp:161 getBodyMeasures] response: {"status":0,"body":{"updatetime":1578663039,"timezone":"Europe\/Dublin","measuregrps":[{"grpid":1355444326,"attrib":2,"date":1548888689,"created":1548888689,"category":1,"deviceid":null,"measures":[{"value":1770,"type":4,"unit":-3,"algo":0,"fw":0,"fm":131}],"comment":null}]}}


I still have no values.


Thanks

Ale Martinez (Please don't email or cc me)

unread,
Jan 10, 2020, 9:18:08 AM1/10/20
to golden-cheetah-users
El viernes, 10 de enero de 2020, 10:32:50 (UTC-3), Ray O'Halloran escribió:
Hi Ale,

I ran it from the Terminal and got the following output:

 
Here starts the authorization part

[Cloud/WithingsDownload.cpp:82 getBodyMeasures] OAuth 2.0 API

[Cloud/WithingsDownload.cpp:104 getBodyMeasures] url https://account.withings.com/oauth2/token grant_type=refresh_token&client_id=eaa338e1f64bcdb8579d21550df661c84d1d28e2053c5d0ede4600c1ebc8b6cd&client_secret=281e8d4c251f02bc7e3967f772aefb1d61b22d311d3e6064f693cb100442c132&refresh_token=a0af3f02479bb1c12d3c8805ccf1bd62d1507d87

[Cloud/WithingsDownload.cpp:109 getBodyMeasures] response: {"access_token":"ecabbf0628776e1c28f4151f7aec1c165d34d099","expires_in":10800,"token_type":"Bearer","scope":"user.info,user.metrics","refresh_token":"a0af3f02479bb1c12d3c8805ccf1bd62d1507d87","userid":16041023}


It ends Ok and GC sends the request from December 25, 2018 to January 10, 2020
And the response is just one record with date  January 30, 2019
 

[Cloud/WithingsDownload.cpp:161 getBodyMeasures] response: {"status":0,"body":{"updatetime":1578663039,"timezone":"Europe\/Dublin","measuregrps":[{"grpid":1355444326,"attrib":2,"date":1548888689,"created":1548888689,"category":1,"deviceid":null,"measures":[{"value":1770,"type":4,"unit":-3,"algo":0,"fw":0,"fm":131}],"comment":null}]}}


Which only has Heigth (the type=4) with value 1.77m
 

I still have no values.


Because the response has no weight field and that field is mandatory for GC to add a Body Measures record.

If you login to withings website (https://healthmate.withings.com/12729660/timeline) and click Weight, what do you see?

Ray O'Halloran

unread,
Jan 10, 2020, 6:49:25 PM1/10/20
to golden-cheetah-users
I see the below graph in Withings:
Screenshot 2020-01-10 at 23.48.09.png

Ale Martinez (Please don't email or cc me)

unread,
Jan 11, 2020, 6:36:15 AM1/11/20
to golden-cheetah-users
It’s weird the only entry they are sending is a manual one, I want to now if other manual entries are sent after you add them.
If all that readings were uploaded automatically from a scale, can you add a couple of new weight entries manually, using their web or app, and test again?
I cannot test this by myself since I don’t own a scale.

Alexander Voos

unread,
Jan 31, 2020, 5:25:57 AM1/31/20
to golden-cheetah-users
In the latest GC version for MAC the auto import of tithings data does not work.
There is one menu missing in the authorization process where you can choose the auto import. 
Is it that I did something wrong or is this missing in GC?
Best Regards
Alex

Ale Martinez (Please don't email or cc me)

unread,
Jan 31, 2020, 6:40:24 AM1/31/20
to golden-cheetah-users
El viernes, 31 de enero de 2020, 7:25:57 (UTC-3), Alexander Voos escribió:
In the latest GC version for MAC the auto import of tithings data does not work.
There is one menu missing in the authorization process where you can choose the auto import. 
Is it that I did something wrong or is this missing in GC?

Auto import is an unimplemented feature for Measures and then it cannot be enabled in config.

Ale Martinez (Please don't email or cc me)

unread,
Jan 31, 2020, 6:49:51 AM1/31/20
to golden-cheetah-users
El viernes, 31 de enero de 2020, 8:40:24 (UTC-3), Ale Martinez (Please don't email or cc me) escribió:
El viernes, 31 de enero de 2020, 7:25:57 (UTC-3), Alexander Voos escribió:
In the latest GC version for MAC the auto import of tithings data does not work.
There is one menu missing in the authorization process where you can choose the auto import. 
Is it that I did something wrong or is this missing in GC?

Auto import is an unimplemented feature for Measures and then it cannot be enabled in confIg

Reply all
Reply to author
Forward
0 new messages