Read the statement by Michael Teeuw here.
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>
-
Well the token.ini file should be altered to include the correct credentials. That’s why you are getting the error. Fix that and you may get somewhat further. I manually entered the info to get mine to (partially) work.
-
Where could I get the access and refresh tokens from?
-
@frog I’ve got the same Issue with the Image of “2016-11-25-raspbian-jessie”.
I’m logged in on the BigScreen (not with SSH) and typing via Terminal:pi@raspberrypi:~/MagicMirror/modules/MMM-fitbit $ npm install python-shell /home/pi/MagicMirror/modules └── python-shell@0.4.0 npm WARN enoent ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/package.json' npm WARN enoent ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/node_modules/node_helper/package.json' npm WARN modules No description npm WARN modules No repository field. npm WARN modules No README data npm WARN modules No license field.
I also tried this, without success:
pi@raspberrypi:~/MagicMirror $ npm install python-shell magicmirror@2.0.0 /home/pi/MagicMirror ├── UNMET PEER DEPENDENCY grunt@1.0.1 └── python-shell@0.4.0 npm WARN grunt-yamllint@0.2.0 requires a peer of grunt@~0.4.0 but none was installed.
Anybody an Idea, what I need to do?
-
@olliewarren411 Hi, would you be able to explain what you changed in the CSS to get fitbit to display vertically please? I want to try this out.
-
Hi everyone,
This Module so cool. Is there anyway to show more than one user?
-
@codyli2002hk You could probably put two instances of the module up on your mirror. Just copy & paste the entire module configuration. Change the position tag, clientID & clientSecret and call it good.
-
Hi, this module works and displays great except for the fact that the only field that is displaying values is steps. Flights, calories, etc. all show 0 values but have the images and progress bars. When I ran setupAccess.py, I made sure all the boxes were checked so that every field was being shared. After doubting whether I actually did this, I went to my Fitbit profile and confirmed that the data is being shared with the app.
As another form of double checking my Fitbit sync, I have my Fitbit profile also linked to my Alexa and when I asked Alexa, it correctly said each of the fields that are currently zeros on the mirror display.
Has anyone else had this issue and if so how did you fix it? -
@tismepaulo same issue for me as well
-
Is anybody able to tell me how I would go about changing my distance from miles to kilometers? My mirror is set to metric however I believe this module has its own settings?