Read the statement by Michael Teeuw here.
MMM-Fitbit2 Install Process
-
@sdetweil I ran the command, python --version. Returned Python 3.9.2.
Does that suffice, or is there something I can run to check python is properly installed?
-
@En-TACT The script runs python3 not python
-
@sdetweil I got a bit further than before after entering my authorization credentials … the Chrome browser eventually opened, logon Fitbit site, and selected all options. However, after I clicked accept, received this browser error message:
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.Traceback (most recent call last):
File “/home/pi/.local/lib/python3.9/site-packages/cherrypy/_cprequest.py”, line 638, in respond
self._do_respond(path_info)
File “/home/pi/.local/lib/python3.9/site-packages/cherrypy/_cprequest.py”, line 697, in _do_respond
response.body = self.handler()
File “/home/pi/.local/lib/python3.9/site-packages/cherrypy/lib/encoding.py”, line 223, in call
self.body = self.oldhandler(*args, **kwargs)
File “/home/pi/.local/lib/python3.9/site-packages/cherrypy/_cpdispatch.py”, line 54, in call
return self.callable(*self.args, **self.kwargs)
File “/home/pi/MagicMirror/modules/MMM-Fitbit2/python/setup_access.py”, line 58, in index
self.oauth.fetch_access_token(code, self.redirect_uri)
File “/home/pi/.local/lib/python3.9/site-packages/fitbit/api.py”, line 142, in fetch_access_token
return self.session.fetch_token(
File “/usr/lib/python3/dist-packages/requests_oauthlib/oauth2_session.py”, line 244, in fetch_token
self._client.parse_request_body_response(r.text, scope=self.scope)
File “/usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py”, line 421, in parse_request_body_response
self.token = parse_token_response(body, scope=scope)
File “/usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/parameters.py”, line 431, in parse_token_response
validate_token_parameters(params)
File “/usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/parameters.py”, line 438, in validate_token_parameters
raise_from_error(params.get(‘error’), params)
File “/usr/lib/python3/dist-packages/oauthlib/oauth2/rfc6749/errors.py”, line 405, in raise_from_error
raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.InvalidClientError: (invalid_client) -
@En-TACT I do not know this part of the app process. sorry… the author will have to help here
-
@En-TACT Check that you have the correct client ID, client secret, and the redirect URI.
-
@Vizulize this module is working on my mirror, thank you!