Read the statement by Michael Teeuw here.
Fitbit
-
Has anyone managed to get this installed on a Raspberry Pi Zero W using Jessie Lite?
When running setupAccess.py I can’t get anywhere as it doesn’t open a browser window so I can’t authenticate.
Any help appreciated.
-
@pyrosmiley I had the same issue and I could change it by setting new rights for the tokens.ini file. Set the rights for write to all (before this only for root access) and the new token can be written. Update works now, let’ see how long …
-
Hello all,
Newbie here. I know I am late trying to put together a MagicMirror, but I just discovered this! Anyway, I am trying to put this Fitbit module on mine, and I when I run “sudo python setupAccess.py”, I get a “python: can’t open file ‘setupAccess.py’: [Errno 2] No such file or directory” error.
I am not sure where I have gone wrong here, as I have followed the instructions thus far found here:
https://github.com/SVendittelli/MMM-fitbit/blob/master/README.md
Any ideas?
Thanks.
-
I fixed it. Newbie mistake, I was in the wrong directory when I tried to excute the command. Having problems now trying to get my steps to show, so I have pouring over all of the info here in the forum…thanks to all who have posted here
-
I got it to work! Great module!
-
Hi! I too am new to MagicMirror (and programming in general) and am trying to install the Fitbit module. Maybe as you have done it so recently you could help me please?
When I enter:
sudo pip install -r python/fitbit/requirements.txt
I get the following error message:
Could not open requirements file: [Errno 2] No such file or directory: ‘python/fitbit/requirements.txt’
Any idea what I am doing wrong or what I need to do?
Thanks!
-
-
@achilles Thanks for getting back to me. Yes that step worked and now I have figured out I was in the wrong directory when running sudo pip install -r python/fitbit/requirements.txt. I was trying to do that step out of sequence before following the preceding steps in the Setup instructions.
I am facing another issue now though: I’ve added the example config to my config but when I try to run the MagicMirror it throws an error
“Please create a config file…If you get this message while your config is already created, you config file probably contains an error…”I saw there was issues with the brackets after “config” in line 4 of the example config file and people have suggested replacing the [ with { and again on line 19 ] with } but it still doesn’t work.
Now I see some people are saying there are issues with the fitbit API (https://github.com/SVendittelli/MMM-fitbit/issues/15) but those comments are from January so I’d be interested to hear about how you got yours working so recently and if you can see where I might be going wrong.
Thanks a lot!
-
Every time I have got that error, it has been because I have something wrong with the syntax: Curly braces incorrect, double quotes where there should be single quotes, comma missing, etc. Does every open bracket or curly brace have a corresponding closing bracket or curly brace?
-
@cambor - Easiest thing to do is to copy the example
config.js.samplefile toconfig.jsand modify it incrementally. After each modification to the file, you can reload the mirror and make sure you haven’t introduced an error.If you like, you can post the MMM-fitbit section of your
config.jshere and we’ll see if we spot anything. Be sure to use the markdown features of the forum to aid in troubleshooting. -
Has anyone’s Fitbit module stopped working recently? For some reason, mine is not displaying anything anymore–just 0s. This started about a week ago…
-
@achilles - That happened to me about three weeks ago. I had to get back on the mirror and run the
setupAccess.pyscript to authorize with fitbit.com again. After that it started working again. You’ll probably find an indication of what’s up in the pm2 logs.Fitbit is weird in that they insist that you use their website to authenticate. You can’t get an API key for you app. Your app must incorporate a means to go to their website to use their interface and then return.
-
@bhepler - At the risk of sounding stupid, you have to go back and run through the commands again and get to setupAcess.py to get Fitbit to work again?
-
@achilles - Almost. You just have to run the
setupAccess.pyagain. So get onto your Pi directly, open up a terminal window, stop your MagicMirror process, and run thesudo python setupAccess.pyor whatever the command is. It will open up a browser window with the FitBit login page. Log in with your credentials, wait for the confirmation screen and then close the browser.Restart your MagicMirror process and it should start pulling from the FitBit service.
-
@bhepler Thanks! That helped. I guess this means I can look forward to doing this every month or so?
-
@achilles - I don’t actually know. Mine was up for months with no issue. It may be that a prolonged period without the module refreshing the tokens is the determining factor. It may even be something on Fitbit’s end expired all of the tokens.
-
This module looks great, unfortunately the installation is giving me the most difficulties from any module so far, I’m completely new to anything coding so I’m learning as I go. My first problem was trying to install the python-shell dependency. I get this message in my terminal:
pi@matt:~ $ npm install python-shell
npm WARN saveError ENOENT: no such file or directory, open ‘/home/pi/package.json’
npm WARN enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.- python-shell@1.0.4
updated 1 package in 2.932s
What am I doing wrong here?
- python-shell@1.0.4
-
See issue from mmille40 (above).
I am running ‘npm install python-shell’ from within the MagicMirror/modules/MMM-fitbit folder and appear to be having the exact same issue [although the location of the file that cannot be found is reported differently to mmille40’s location] and am unable to discover the reason why. Does anyone have any ideas?
npm WARN saveError 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/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.- python-shell@1.0.4
updated 1 package and audited 2 packages in 3.126s
found 0 vulnerabilities
- python-shell@1.0.4
-
@dh1201 this says u are in the MODULES folder, not MMM-Fitbit
-
Should it be the modules directory then?
Set up states:
As with all modules, use git clone in the modules directory to download the module
Goto fitbit to register a new app (sign in with your fitbit account)
Give your app a catchy name and description
Your personal website, organisation, and organisation website can be whatever you like
Check browser and personal for OAuth settings
Callback URL MUST BE http://127.0.0.1:8080/
Give your app read & write permissions (read-only untested)
Note your:
“OAuth 2.0 Client ID” — (client_id)
“Client (Consumer) Secret” — (client_secret)
(You can access these again later via manage my apps at the same link as above)
Navigate to MMM-fitbit in the modules directory
Install dependancies using the listed commands
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login