10-27-2022 06:09 - edited 10-27-2022 18:29
10-27-2022 06:09 - edited 10-27-2022 18:29
Hello.
I want to import my HRV data from fitbit charge5 device.
https://dev.fitbit.com/build/reference/web-api/heartrate-variability/get-hrv-summary-by-date/
I can check the api address that can get HRV from the above address, and I want to get it according to the address form.
This will result in
{'hrv': []}
An empty list is output like this.
(Encodied_ID is personal information, so it was not posted on the question site. It is implemented in the code.)
If I look up the fitbit manual, it says that Charge5 provides sleep time HRV data, is this a feature that is not yet supported?
If I'm going to post a question to the fitbit developer community about this, where should I put it?
Thanks for posting the answer.
*My execution environment is Colaboratory.
10-27-2022 06:11
10-27-2022 06:11
My code is
import requests
# Get HRV Summary by Date
hrv_1d = requests.get("https://api.fitbit.com/1/user/"+ENCODED_ID+"/hrv/date/yyyy-mm-dd.json", headers=header).json()
hrv_1d
The part was filled in with the desired day.(ex. this year oct 15th)
Best Answer10-31-2022 13:07
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
10-31-2022 13:07
Hi @J22222
Posting the code as you did is perfectly fine. Thank you!
There are several conditions required for the device to collect HRV data.
Best,
Gordon
Best Answer11-02-2022 22:27
11-02-2022 22:27
Is Health Metrics a service that requires a premium subscription to use? Or can I use it for free if I am a charge5 user?
Best Answer11-04-2022 10:44
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
11-04-2022 10:44
Hi @J22222
From what I can tell, looking at the data in the Health Metrics tile does not require a premium membership.
Gordon
Best Answer