jaroslawhartman / withings-sync

Synchronisation of Withings weight
MIT License
451 stars 89 forks source link

Issues with Data Transfer from Withings to Garmin: Potential Restrictions in Code or API Categories? #134

Open CyberschmiedeGmbH opened 1 year ago

CyberschmiedeGmbH commented 1 year ago

I have imported blood pressure data into Withings via an interface, which I can normally view within Withings. However, these data are not recognized as data records during the transfer to Garmin and are therefore not transferred. In contrast, manually or original created data records for blood pressure measurement are recognized in Withings. Is it possible that there are restrictions in the code concerning the datasets to be read out? Are there categories or something similar in the Withings API? Thank you

longstone commented 1 year ago

Is your account set to the required region?

https://github.com/jaroslawhartman/withings-sync/issues/106#issuecomment-1454395955

CyberschmiedeGmbH commented 1 year ago

Yes, the region is set to the USA. I can also upload other blood pressure data by "withings-sync" to Garmin without any problems. The synchronization process works, but not all data from Withings are properly selected/chosen. The blood pressure data that was integrated into Withings via interface are not recognized or selected by "withings-Sync".

longstone commented 4 months ago

category | integer1 for real measures, 2 for user objectives. https://developer.withings.com/api-reference/#tag/measure/operation/measure-getmeas

Categorie programatically set to 1.

"category": 1,

https://github.com/jaroslawhartman/withings-sync/blob/master/withings_sync/withings2.py#L246

Could be implemented with a feature flag.