Read the statement by Michael Teeuw here.
Fitbit
-
@cambor - Easiest thing to do is to copy the example
config.js.sample
file toconfig.js
and 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.js
here 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.py
script 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.py
again. So get onto your Pi directly, open up a terminal window, stop your MagicMirror process, and run thesudo python setupAccess.py
or 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