Giter Club home page Giter Club logo

Comments (5)

darkzbaron avatar darkzbaron commented on June 5, 2024

Same here!

from garmin-workouts.

mkuthan avatar mkuthan commented on June 5, 2024

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.

darkzbaron avatar darkzbaron commented on June 5, 2024

Sure will do when I have time and will push a PR. Thank you dev!

from garmin-workouts.

adrianchapela avatar adrianchapela commented on June 5, 2024

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:

image

from garmin-workouts.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.