Skip to content

Issue with Fitbit Error 400 #12

@tombull89

Description

@tombull89

Hi there, I'm in the process of setting up a test FitBit > Grafana, however, I've fallen at the final hurdle.

I've set up a "Authorization Code Flow" flow type, added all the details to the python script, but when I run it I get the following message.

python .\fitbit.py
Got devices from Fitbit
Got sleep sessions from Fitbit
Got steps from Fitbit
Got distance from Fitbit
HTTP request failed: 400 Client Error: Bad Request for url: https://api.fitbit.com/1/user/-/activities/floors/date/today/1d.json

If I run the CURL command from the tutorial it shows the results okay, it's just whenever I try to run the python script it fails. I'm not good with python or scripting so I'd appriciated any help.

Thanks,
Tom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions