jaroslawhartman / withings-sync

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

Sync sleep #2

Open stv0g opened 4 years ago

stv0g commented 4 years ago

From: https://github.com/jaroslawhartman/withings-garmin-v2/issues/12 (reported by @swedejesus)

I have no idea - tried to google it buy couldn't find any info. Is it possible to sync Withings sleep to Garmin sleep tracking?

lenaxia commented 3 years ago

Hi, any news on this? The other issue was closed without comment and it doesn't look like sleep sync is working

stynoo commented 3 years ago

It looks doable as the Withings sleep data is accessible via API (https://developer.withings.com/oauth2/#tag/sleep) I however don't have access to a Withings device that is capable to track sleep so you'll have to experiment with it on your own.

The next hurdle will be importing that data into the Garmin ecosystem. A quick search doesn't really yield any additional info, but I noticed that Garmin has an option to import Fitbit body or activity data (.xls, .xlsx or .csv format). Fitbit exported data contains sleep (Your sleep schedule, minutes asleep and awake, number of times you woke up, amount of time spent in bed, time spent in each sleep stage).