Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config #15

Open
Wominator opened this issue Jun 24, 2017 · 10 comments
Open

Config #15

Wominator opened this issue Jun 24, 2017 · 10 comments

Comments

@Wominator
Copy link

Hi!
When I copy the Config to the Config.js and replace the client_id an client_secret with my values, MagicMirror isn't able to start. I tried several variations of the Config with no success.
Any idea why?
Thanks in advance for a hint!

Greetings
wominator

@jaxx0r
Copy link

jaxx0r commented Aug 26, 2017

Hi,
had the same issue. Solved it by replacing "[" and "]" with "{" and "}" for the config value item (line 4 and 19 of the sample config).

@Wominator
Copy link
Author

Hi,
Thanx for the hint! I'll check it out and let you know.
Regards
Wominator

@Wominator
Copy link
Author

Hi again jaxx0r,
unfortunatly ist didn't work out. Same issue.
Thanks for the hint though.
Regards
Wominator

@evothelegacy
Copy link

Wominator can you paste your entire config.js? I can skim through and compare to mine.

@Wominator
Copy link
Author

Wominator commented Oct 3, 2017

Hi evothelegacy,
thanks for your offer!
I played around with the config and "npm run config:check" and now it's working. Yet another issue with some semicolon and quotation marks. One thing left: how can I display the distance in kilometers, not in miles? Any idea?

Thanks in advance
womi

@graaahn
Copy link

graaahn commented Oct 8, 2017

So, to change from miles to kilometers I of course needed to change from mi to km in MMM-fitbit.js (just the abriviation). To get right unit I needed to go in to the folder pyton then fitbit, then open the file api.py. In this file you will find:

US = 'en_US'

Change this to:

US = 'km'

(note, change your goal in MMM-fitbit.js if you dont want it to be 5 km)

@Wominator
Copy link
Author

Wominator commented Oct 9, 2017 via email

@checkit
Copy link

checkit commented Jan 13, 2018

A little late to the party on this module. I am stumped. My config is exactly as shown per the instructions, but like most of you, the mirror throws a config.js error at start. I've tried what @jaxx0r suggested and it didn't work. Followed errors per npm run config:check and am still not having success. Thanks all for any suggestions. I am sure it is something I am just overlooking.

@Wominator
Copy link
Author

Hi checkit!
Stop waisting time, Fitbit has changed the API, so you have to renew the token every 24 h. The module isn't able to do it. It'll work for 24 h and then it won't update. You can do it manually, but not a real pleasent solution.
Regards
Womi

@checkit
Copy link

checkit commented Jan 13, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants