Currently stress, heart rate and sleep are having bindings.
The most complete way to get the data is via export (see this article for other methods to extract personal data, though that are NOT supported in nostalgia).
-
Open the [Samsung Health] app and click on the Settings Icon. Then click on the Cog icon. Scroll all the way down and hit "Download personal data" and again "Download". Fill in your account details and the security code.
-
To transfer this data to your PC you can package it first as a .ZIP file. This assumes you have
AndroZip
installed. -
Open it, and go to SD card. Click
Android
, thenData
, then look forcom.sec.android.app.shealth
, thenfiles
, thenDownload
-
Long press folder that was created at the previous step and select Create Zip.
-
After it has been created, long press the zip file and click
Send To
. Then send it as an email to yourself. -
On your PC download the zip file.
-
Open a Python interpreter:
from nostalgia.sources.samsung import Samsung
Samsung.ingest()
This will load all the Samsung data from your download folder into the nostalgia source folder.
To verify you have the data available:
from nostalgia.sources.samsung.heartrate import SamsungHeartrate
heartrate = SamsungHeartrate.load()
heartrate
heart_rate_max ... value
(2019-11-25 12:44:00, 2019-11-25 12:44:59] 70 ... 70
(2019-11-25 12:45:00, 2019-11-25 12:45:59] 92 ... 90
(2019-11-25 12:46:00, 2019-11-25 12:46:59] 104 ... 98