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

getData.py fails with invalid tokens every few days #18

Open
pyrosmiley opened this issue Oct 12, 2017 · 2 comments
Open

getData.py fails with invalid tokens every few days #18

pyrosmiley opened this issue Oct 12, 2017 · 2 comments

Comments

@pyrosmiley
Copy link

Hi, I'm not sure if this is an issue with the fitbit API (I've been having some trouble with it on something else I'm working on also!) but the API call to get data is is coming back unsuccessful, saying that the refresh token is invalid?

Re-authorizing via setupAccess.py will fix the issue, and it'll run just fine for a couple of days, but then it fails out again -- it's almost as if the module isn't storing a refresh token at some point.

@dherl0623
Copy link

Hey, is this still an issue for you? I had the same problem, so what I ended up doing was run a script every night at 2AM that stops Magic Mirror, gets the new credentials, and then restarts Magic Mirror. I can post that script for you if you'd like?

@pyrosmiley
Copy link
Author

@dherl0623 Wow I really appreciate it! That's very kind of you, and you may still want to for anyone else having issues. I actually ended up doing something similar, but I never set the script to auto-run. Since then, my fitbit unfortunately broke so I'm not really using it anymore.

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

2 participants