MMM-fitbit icon indicating copy to clipboard operation
MMM-fitbit copied to clipboard

Config

Open Wominator opened this issue 7 years ago • 10 comments

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

Wominator avatar Jun 24 '17 14:06 Wominator

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).

jaxx0r avatar Aug 26 '17 12:08 jaxx0r

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

Wominator avatar Aug 26 '17 15:08 Wominator

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

Wominator avatar Aug 28 '17 18:08 Wominator

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

evothelegacy avatar Sep 28 '17 02:09 evothelegacy

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

Wominator avatar Oct 03 '17 08:10 Wominator

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)

graaahn avatar Oct 08 '17 22:10 graaahn

Hi graaahn! Thanx for the tip! It seems to work. I also changed "mi" to "km" in the fitbit.js, so that it is shown correctly on the mirror. Runs perfectly!

Regards Womi

Am Mo., 9. Okt. 2017, 00:17 schrieb graaahn [email protected]:

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)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SVendittelli/MMM-fitbit/issues/15#issuecomment-335042756, or mute the thread https://github.com/notifications/unsubscribe-auth/Aajz-gTtGrnvkJWREG12wE9nVvg--21fks5sqUndgaJpZM4OEVj9 .

--

Von meinem Telefon gesendet

Wominator avatar Oct 09 '17 18:10 Wominator

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.

checkit avatar Jan 13 '18 17:01 checkit

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

Wominator avatar Jan 13 '18 17:01 Wominator

Thanks so much for the heads up! I was reading about that just a little while ago while looking through more documentation.

  • Garth Lyerly

On Sat, Jan 13, 2018 at 12:33 PM, Wom Wominator [email protected] wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SVendittelli/MMM-fitbit/issues/15#issuecomment-357452137, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWguR9kcJFNekVL_bUOVDqACf-k6iq2ks5tKOj8gaJpZM4OEVj9 .

checkit avatar Jan 13 '18 18:01 checkit