Comments (5)
Same here!
from garmin-workouts.
Garmin introduced multi factor authentication and existing user/password exchange is not enough:
https://support.garmin.com/en-US/?faq=uGHS8ZqOIhA0usBzBMdJu7
There is a python libarary https://github.com/matin/garth which supports MFA.
Another python wrapper for GC has been already migrated to garth: cyberjunky/python-garminconnect#141
Feel free to make a contribution to this garmin-workouts, you're welcome. It's a great opportunity to improve your Python skills, don't forget about unit tests :)
I would add another command just for storing authenticated session because it must be interactive. When session is saved, garmin-workout will work as for now.
python -m garminworkouts list
You're not logged in, call: python -m garminlogin
python -m garminlogin
Username: <input>
Password: <input>
One-time code: <input>
Success, now you can use garminworkout.
python -m garminworkouts list
188952654 VO2MAX 5x4 FTP 214, TSS 80, NP 205, IF 0.96
188952362 TEMPO 3x15 FTP 214, TSS 68, NP 172, IF 0.81
188952359 SS 3x12 FTP 214, TSS 65, NP 178, IF 0.83
from garmin-workouts.
Sure will do when I have time and will push a PR. Thank you dev!
from garmin-workouts.
Garmin introduced multi factor authentication and existing user/password exchange is not enough: https://support.garmin.com/en-US/?faq=uGHS8ZqOIhA0usBzBMdJu7
There is a python libarary https://github.com/matin/garth which supports MFA. Another python wrapper for GC has been already migrated to garth: cyberjunky/python-garminconnect#141
Feel free to make a contribution to this garmin-workouts, you're welcome. It's a great opportunity to improve your Python skills, don't forget about unit tests :)
I would add another command just for storing authenticated session because it must be interactive. When session is saved, garmin-workout will work as for now.
python -m garminworkouts list You're not logged in, call: python -m garminlogin
python -m garminlogin Username: <input> Password: <input> One-time code: <input> Success, now you can use garminworkout.
python -m garminworkouts list 188952654 VO2MAX 5x4 FTP 214, TSS 80, NP 205, IF 0.96 188952362 TEMPO 3x15 FTP 214, TSS 68, NP 172, IF 0.81 188952359 SS 3x12 FTP 214, TSS 65, NP 178, IF 0.83
MFA is the root cause of the problem? See my MFA configuration:
from garmin-workouts.
Related Issues (9)
- unable to login: Too Many Requests for url HOT 2
- HTTPError - Garmin api problem? HOT 1
- Add support for Strenght workout HOT 1
- auth failing HOT 5
- Works nicely - but how do I add swimming workouts? HOT 1
- HTTPError: 403 Client Error: Forbidden for url: https://connect.garmin.com/proxy/workout-service/workouts?start=0&limit=100 HOT 2
- AttributeError: 'Namespace' object has no attribute 'func'
- Scheduling HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garmin-workouts.