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

FitBit data not populating... #350

Closed
distortd6 opened this Issue Jul 19, 2016 · 19 comments

Comments

Projects
None yet
8 participants
@distortd6

distortd6 commented Jul 19, 2016

image
Attached is the error I get when Fitbit data doesn't populate on initial "npm start dev". After inputting CLIENTID and CLIENTSECRET, I start the mirror, alt+tab to browser, head to http://localhost:4000/fitbit and click on Allow which brings me to this error. Any ideas guys? I've been stumped for the past hour!

@evancohen

This comment has been minimized.

Owner

evancohen commented Jul 19, 2016

@distortd6 it would help to know if you are on master or dev. I don't have a fitbit, so I've never actually done much testing of this code path. You might be able to get an auth token from grant and then create the token JSON file that is typically generated for this.

@evancohen evancohen added the Type: bug label Jul 20, 2016

@distortd6

This comment has been minimized.

distortd6 commented Jul 21, 2016

I am on master, but will try dev as suggested in gitter. This error is somewhat expected and does indeed create the fb-token.json in smart-mirror dir. The real issue is that no fitbit data populates.

@justbill2020

This comment has been minimized.

Collaborator

justbill2020 commented Nov 8, 2016

Hello all, I don't have a Fitbit so cannot independently test... is this issue resolved? @distortd6 I'm trying to close out any pending issues which have been resolved or at least bump them to get a status...

@justbill2020

This comment has been minimized.

Collaborator

justbill2020 commented Nov 8, 2016

@jonathanng92 you reported this issue as well in #387 has this been resolved for you?

@jonathanng92

This comment has been minimized.

jonathanng92 commented Nov 8, 2016

No, it hasn't worked out. But I've been busy with other things so I haven't been able to dedicate time to solving it.

Get Outlook for Androidhttps://aka.ms/ghei36

On Tue, Nov 8, 2016 at 8:59 AM -0800, "Bill Martin" <notifications@github.commailto:notifications@github.com> wrote:

@jonathanng92https://github.com/jonathanng92 you reported this issue as well in #387#387 has this been resolved for you?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/350#issuecomment-259193292, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AUXOCq0SStdg2_4oswn48t4qxx38b3BAks5q8KmQgaJpZM4JPvR0.

@justbill2020

This comment has been minimized.

Collaborator

justbill2020 commented Dec 2, 2016

i just got a fitbit to use for testing... not sure how long before i will have time to look at this though...

@flyerguy

This comment has been minimized.

flyerguy commented Dec 22, 2016

Some additional info here. I'm getting this message when running npm start dev after registering my fitbit app on the website.
angular.js:14195 TypeError: Fitbit is not a constructor at Object.FitbitService (fitbit.js:53) at Object.invoke (angular.js:4767) at Object.enforcedReturnValue [as $get] (angular.js:4605) at Object.invoke (angular.js:4767) at angular.js:4565 at getService (angular.js:4712) at injectionArgs (angular.js:4737) at Object.invoke (angular.js:4759) at $controllerInit (angular.js:10588) at nodeLinkFn (angular.js:9465)(anonymous function) @ angular.js:14195

@evancohen

This comment has been minimized.

Owner

evancohen commented Dec 22, 2016

Yeah... this is a long standing bug that I haven't been able to fix because I don't have a Fitbit (thus the help wanted tag).

@flyerguy

This comment has been minimized.

flyerguy commented Dec 22, 2016

Evan,
Wish I could help out. I have a fitbit but not the programming knowledge. Love the rest of Smart-Mirror so far.

@evancohen

This comment has been minimized.

Owner

evancohen commented Dec 22, 2016

Maybe after the changes Bill and I are making over the holidays he can take a look at it

@kurtdb

This comment has been minimized.

Collaborator

kurtdb commented Dec 23, 2016

Does @justbill2020 have a fitbit? Otherwise I can change my login info and you can use that data. :)

@justbill2020

This comment has been minimized.

Collaborator

justbill2020 commented Dec 23, 2016

i'll take a look at it... i might need creds... my mother-in-law gave me one to use for this purpose... I've done 0 with it thus far...

@DannyLuu

This comment has been minimized.

Collaborator

DannyLuu commented Jan 22, 2017

With the help of Evan, I was able to get the Fitbit integration up and running.

I am still working on the new UI. The optimization of the calls has been done.

@evancohen

This comment has been minimized.

Owner

evancohen commented Jan 27, 2017

@DannyLuu how we doing on this?

@DannyLuu

This comment has been minimized.

Collaborator

DannyLuu commented Jan 28, 2017

I'm chipping away at it slowly. Hopefully I'll be done this weekend.

@DannyLuu

This comment has been minimized.

Collaborator

DannyLuu commented Mar 9, 2017

@evancohen I am closing this issue as it has been resolved.

@DannyLuu DannyLuu closed this Mar 9, 2017

@wafflebot wafflebot bot removed the status: in progress label Mar 9, 2017

@NeutronKen

This comment has been minimized.

NeutronKen commented Jun 20, 2017

So, are there any instructions on how to set up the API and such to use it on the mirror?

@DannyLuu

This comment has been minimized.

Collaborator

DannyLuu commented Jun 21, 2017

Hey Kiltedken,

I haven't had a chance to write the documentation on it but it closely follows the ones here:
https://github.com/evancohen/smart-mirror/blob/e38eb5670ababc0a6950ffe8fa4441c203324f36/Fitbit-README.md

If you have any questions please feel free to hit me up on Discord!

@NeutronKen

This comment has been minimized.

NeutronKen commented Jun 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment