MMM-fitbit icon indicating copy to clipboard operation
MMM-fitbit copied to clipboard

Issue with getData.py

Open evothelegacy opened this issue 7 years ago • 0 comments

Having some issues getting data to show from fitbit. I have the Client ID & Secret in the credentials.ini, and have run the setupaccess.py from the PI itself. but running this command to verify its pulling data is failing. any help or input would be appreciated.

sudo python getData.py

output:

pi@raspberrypi:~/MagicMirror/modules/MMM-fitbit/python $ sudo python getData.py
{"message": "credentials.ini exists", "type": "status"}
{"message": "Reading from credentials.ini", "type": "status"}
{"message": "Read of credentials.ini successful.", "type": "status"}
{"message": "credentials.ini exists", "type": "status"}
{"message": "Reading from credentials.ini", "type": "status"}
{"message": "Read of credentials.ini successful.", "type": "status"}
{"message": "tokens.ini exists", "type": "status"}
{"message": "Reading from tokens.ini", "type": "status"}
{"message": "Read of tokens.ini successful.", "type": "status"}
{"message": "Making API call", "type": "status"}
{"message": {"401": {"errors": [{"message": "Invalid authorization header format. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process.", "errorType": "invalid_client"}], "success": false}}, "type": "error"}
{"message": "API call failed", "type": "status"}
{"message": "Error when making API call that I couldn't handle", "type": "status"}
``'

-Aaron

evothelegacy avatar Sep 28 '17 02:09 evothelegacy