<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Need help with Fitbit module returning all zeroes]]></title><description><![CDATA[<p dir="auto">I’m having an issue where the fitbit module loads up fine, however none of the data fields are populated.<br />
What I’ve tried:</p>
<ul>
<li>Set all privacy settings in my fitbit profile to “anyone”</li>
<li>Confirmed login ID and secret is correct in config.js</li>
</ul>
<p dir="auto">Possibly related:</p>
<ul>
<li>When I start “sudo python <a href="http://setupAccess.py" target="_blank" rel="noopener noreferrer nofollow ugc">setupAccess.py</a>” it hangs indefinitely at ENGINE Bus STARTED. I’m not sure if this is normal.<br />
<img src="/uploads/files/1475598298284-upload-532432ce-5035-4549-b2a5-fadcce9641ea.png" alt="0_1475598298034_upload-532432ce-5035-4549-b2a5-fadcce9641ea" class=" img-fluid img-markdown" /></li>
<li>Do I need to start MagicMirror with “sudo npm start”? I’ve been using “pm2 start mm”. When I use “sudo npm start” from the MagicMirror directory I get the following:<br />
<img src="/uploads/files/1475597793915-upload-e4af3286-f04a-46f4-a7a1-b48ba9a4c7e4.png" alt="0_1475597794489_upload-e4af3286-f04a-46f4-a7a1-b48ba9a4c7e4" class=" img-fluid img-markdown" /></li>
</ul>
<p dir="auto">pi@raspberrypi:~/MagicMirror $ sudo npm start</p>
<blockquote>
<p dir="auto">magicmirror@2.0.0 start /home/pi/MagicMirror<br />
electron js/electron.js</p>
</blockquote>
<p dir="auto">npm ERR! Linux 4.4.21-v7+<br />
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “start”<br />
npm ERR! node v6.7.0<br />
npm ERR! npm  v3.10.3<br />
npm ERR! code ELIFECYCLE<br />
npm ERR! magicmirror@2.0.0 start: <code>electron js/electron.js</code><br />
npm ERR! Exit status 1<br />
npm ERR!<br />
npm ERR! Failed at the magicmirror@2.0.0 start script ‘electron js/electron.js’.<br />
npm ERR! Make sure you have the latest version of node.js and npm installed.<br />
npm ERR! If you do, this is most likely a problem with the magicmirror package,<br />
npm ERR! not with npm itself.<br />
npm ERR! Tell the author that this fails on your system:<br />
npm ERR!     electron js/electron.js<br />
npm ERR! You can get information on how to open an issue for this project with:<br />
npm ERR!     npm bugs magicmirror<br />
npm ERR! Or if that isn’t available, you can get their info via:<br />
npm ERR!     npm owner ls magicmirror<br />
npm ERR! There is likely additional logging output above.</p>
<p dir="auto">npm ERR! Please include the following file with any support request:<br />
npm ERR!     /home/pi/MagicMirror/npm-debug.log</p>
<p dir="auto">pi@raspberrypi:~/MagicMirror/modules/MMM-fitbit/python $ sudo python <a href="http://setupAccess.py" target="_blank" rel="noopener noreferrer nofollow ugc">setupAccess.py</a><br />
Get credentials from credentials.ini? (Y/N)<br />
Y<br />
{“message”: “credentials.ini exists”, “type”: “status”}<br />
{“message”: “Reading from credentials.ini”, “type”: “status”}<br />
{“message”: “Read of credentials.ini successful.”, “type”: “status”}<br />
[04/Oct/2016:09:23:41] ENGINE Listening for SIGHUP.<br />
[04/Oct/2016:09:23:41] ENGINE Listening for SIGTERM.<br />
[04/Oct/2016:09:23:41] ENGINE Listening for SIGUSR1.<br />
[04/Oct/2016:09:23:41] ENGINE Bus STARTING<br />
CherryPy Checker:<br />
The Application mounted at ‘’ has an empty config.</p>
<p dir="auto">[04/Oct/2016:09:23:41] ENGINE Started monitor thread ‘Autoreloader’.<br />
[04/Oct/2016:09:23:41] ENGINE Started monitor thread ‘_TimeoutMonitor’.<br />
[04/Oct/2016:09:23:42] ENGINE Serving on <a href="http://127.0.0.1:8080" target="_blank" rel="noopener noreferrer nofollow ugc">http://127.0.0.1:8080</a><br />
[04/Oct/2016:09:23:42] ENGINE Bus STARTED</p>
]]></description><link>https://forum.magicmirror.builders/topic/757/need-help-with-fitbit-module-returning-all-zeroes</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 17:05:53 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/757.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Oct 2016 16:28:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need help with Fitbit module returning all zeroes on Mon, 05 Dec 2016 21:30:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/darrene" aria-label="Profile: darrene">@<bdi>darrene</bdi></a> Funny, but I had to change the config to remove the square brackets and replace them with curly brackets around the config parameters to get the config.js file to be accepted:</p>
<pre><code>{
    module: 'MMM-fitbit',
    position: 'top_center',
    **config: {**
        credentials: {
            client_id: &lt;client_id&gt;,
            client_secret: &lt;client_secret&gt;,
        },
        resources: [
            'steps',
            'floors',
            'caloriesOut',
            'distance',
            'activeMinutes',
            'sleep',
            'heart'
        ],
        update_interval: 60
    **}**
},
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/8967</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/8967</guid><dc:creator><![CDATA[frog]]></dc:creator><pubDate>Mon, 05 Dec 2016 21:30:17 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with Fitbit module returning all zeroes on Sat, 15 Oct 2016 20:31:07 GMT]]></title><description><![CDATA[<p dir="auto">Glad to read you solved it! :)</p>
]]></description><link>https://forum.magicmirror.builders/post/6376</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/6376</guid><dc:creator><![CDATA[darrene]]></dc:creator><pubDate>Sat, 15 Oct 2016 20:31:07 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with Fitbit module returning all zeroes on Sun, 09 Oct 2016 18:59:49 GMT]]></title><description><![CDATA[<p dir="auto">Final update: I had a single capital letter in my client secret that was causing this issue. I swapped it to lower case and the module is finally working!</p>
]]></description><link>https://forum.magicmirror.builders/post/6061</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/6061</guid><dc:creator><![CDATA[vdubs]]></dc:creator><pubDate>Sun, 09 Oct 2016 18:59:49 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with Fitbit module returning all zeroes on Sun, 09 Oct 2016 18:14:56 GMT]]></title><description><![CDATA[<p dir="auto">Update: I figured out my issue was related to SSH. I’ve been setting up the MagicMirror entirely through SSH. When starting “sudo python <a href="http://setupAccess.py" target="_blank" rel="noopener noreferrer nofollow ugc">setupAccess.py</a>” it was hanging indefinitely at “ENGINE Bus STARTED.” I tried this same thing without SSH and it booted up the fitbit webpage to log in and grant access.</p>
<p dir="auto">I’m having another issue now where after granted access I’m getting:</p>
<p dir="auto">ERROR: Missing access token parameter.<br />
Please check that you are using the correct client_secret</p>
<p dir="auto">You can close this window</p>
<p dir="auto">File “<a href="http://setupAccess.py" target="_blank" rel="noopener noreferrer nofollow ugc">setupAccess.py</a>”, line 53, in index<br />
self.oauth.fetch_access_token(code, self.redirect_uri)</p>
<p dir="auto">File “/home/pi/MagicMirror/modules/MMM-fitbit/python/fitbit/api.py”, line 151, in fetch_access_token<br />
code=code)</p>
<p dir="auto">File “/usr/local/lib/python2.7/dist-packages/requests_oauthlib/oauth2_session.py”, line 244, in fetch_token<br />
self._client.parse_request_body_response(r.text, scope=self.scope)</p>
<p dir="auto">File “/usr/local/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py”, line 409, in parse_request_body_response<br />
self.token = parse_token_response(body, scope=scope)</p>
<p dir="auto">File “/usr/local/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/parameters.py”, line 376, in parse_token_response<br />
validate_token_parameters(params)</p>
<p dir="auto">File “/usr/local/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/parameters.py”, line 386, in validate_token_parameters<br />
raise MissingTokenError(description=“Missing access token parameter.”)</p>
]]></description><link>https://forum.magicmirror.builders/post/6057</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/6057</guid><dc:creator><![CDATA[vdubs]]></dc:creator><pubDate>Sun, 09 Oct 2016 18:14:56 GMT</pubDate></item></channel></rss>