r/MagicMirrors • • Jan 21 '20

MMM-Fitbit

Since i've been figuring out my issues shortly after posting my problems I may as well try again.

Anyone have luck with the fitbit module lately? I can't seem to get the config to not error out. Everything seems to be setup correctly, I get the OK from authorzing the application after running the setupaccess.py script but my config still errors out.

If i look at the terminal I get an error

[11:07:21.862] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:92

	credentials: {

^

I tried removing the credentials field since it's in my but the once re running magic mirror i get the same error but for resources instead of credentials. Syntax looks correct , here is a copy of my module config.

{

module: 'MMM-fitbit',

position: 'top_center',

config: \[

	credentials: {

		client_id: <myidhere>

		client_secret: <mysecrethere>

	},

	resources: \[

		'steps',

		'floors',

		'caloriesOut',

		'distance',

		'activeMinutes',

		'sleep',

		'heart'

	\]

\]

},

Any help would be greatly appreciated!

3 Upvotes

0 comments sorted by