MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Rmtcts
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Fitbit

      Where could I get the access and refresh tokens from?

      posted in Troubleshooting
      R
      Rmtcts
    • RE: Fitbit

      I’m having a bit of trouble getting this to work with my Magic Mirror. The display is there but it has 0 in all of the categories. I have followed the steps and I get up to running setupAccess.py which takes me to a webpage where I allow access to all of the checkboxes, but it then just redirects to the magic mirror screen with 0s in all of the categories. if I run getData.py it says

      {"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": "Access token invalid: <your access token>. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process.", "errorType": "invalid_token"}], "success": false}}, "type": "error"}
      {"message": "Invalid token, reauthorise fitbit API", "type": "status"}
      

      and the tokens.ini file says:

      [Tokens]
      acc_tok = <your access token>
      ref_tok = <your refresh token>
      
      posted in Troubleshooting
      R
      Rmtcts
    • 1 / 1