Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting heartrate data in Python

I am working on a project, where I need to get real time heart rate data in Python to continuously monitor it. I am not sure if fitbit provide any function to get live data.

Also I found some function to get heart-rate data but I am getting an errror.

 

I am using following function to extract data:

 

today = str(datetime.datetime.now().strftime("%Y-%m-%d"))

fit_statsHR = auth2_client.heart(date=today)

 

Error:

fitbit.exceptions.HTTPNotFound: The API you are requesting could not be found.

 

Please help me to solve this issue.

 

Best Answer
0 Votes
3 REPLIES 3

Hi @SunsetRunner 

 

Would you please provide me the client ID for your application?   Based on the error, it sounds like the API call your Python library is generating has bad syntax.   I can verify that in our logs.

 

Thanks!

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Here is my Client Id. 

22BL5W

 

Please message me the correct way to call the function to get heart rate data.

 

 

Best Answer
0 Votes

@SunsetRunner I wasn't able to pull up anything in our logs within the last 7 days using your client id. Unfortunately, our logs can only go back this far. Could you try your request again and let us know when you do? Then we can make another attempt to see what is occurring through the logs.

 

Also, can you provide me with the following information:

  • The endpoint you are executing
  • The status code and error message you are receiving

Hope to hear from you soon!

Best Answer
0 Votes