MMM-fitbit
MMM-fitbit copied to clipboard
Config
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
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).
Hi, Thanx for the hint! I'll check it out and let you know. Regards Wominator
Hi again jaxx0r, unfortunatly ist didn't work out. Same issue. Thanks for the hint though. Regards Wominator
Wominator can you paste your entire config.js? I can skim through and compare to mine.
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
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)
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
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.
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
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 .