Coder Social home page Coder Social logo

garmin-workouts's People

Contributors

darkzbaron avatar dependabot[bot] avatar github-actions[bot] avatar j-fuentes avatar jorgeboucas avatar mkuthan avatar naglis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

garmin-workouts's Issues

unable to login: Too Many Requests for url

Hello

I'm not able to login to garmin.
Too Many Requests for url: https://sso.garmin.com/sso/signin

login via firefox works very well.

btw, nice project!

INFO:garminworkouts.garmin.garminclient:Authenticate user [email protected]'
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File ".../src/garmin-workouts/garminworkouts/__main__.py", line 110, in <module>
    main()
  File ".../src/garmin-workouts/garminworkouts/__main__.py", line 106, in main
    args.func(args)
  File ".../src/garmin-workouts/garminworkouts/__main__.py", line 50, in command_list
    with _garmin_client(args) as connection:
  File ".../src/garmin-workouts/garminworkouts/garmin/garminclient.py", line 29, in __enter__
    self._connect()
  File ".../src/garmin-workouts/garminworkouts/garmin/garminclient.py", line 103, in _connect
    self._authenticate()
  File ".../src/garmin-workouts/garminworkouts/garmin/garminclient.py", line 129, in _authenticate
    auth_response.raise_for_status()
  File ".../.local/share/virtualenvs/garmin-workouts-VBtzPHpF/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://sso.garmin.com/sso/signin?service=https%3A%2F%2Fconnect.garmin.com%2Fmodern```

HTTPError - Garmin api problem?

I've got this connection error when using the tool as usual:

requests.exceptions.HTTPError: 402 Client Error: Payment Required for url: https://connect.garmin.com/modern/proxy/workout-service/workouts?start=0&limit=100

Traceback (most recent call last):
File "C:/Users/Fabian/Documents/Git/garmin_workouts/garminworkouts/run_script_dbg.py", line 117, in
command_import(args)
File "C:/Users/Fabian/Documents/Git/garmin_workouts/garminworkouts/run_script_dbg.py", line 21, in command_import
existing_workouts_by_name = {Workout.extract_workout_name(w): w for w in connection.list_workouts()}
File "C:/Users/Fabian/Documents/Git/garmin_workouts/garminworkouts/run_script_dbg.py", line 21, in
existing_workouts_by_name = {Workout.extract_workout_name(w): w for w in connection.list_workouts()}
File "C:\Users\Fabian\Documents\Git\garmin_workouts\garminworkouts\garmin\garminclient.py", line 44, in list_workouts
response.raise_for_status()
File "C:\Users\Fabian\Documents\Git\garmin_workouts\py_env\lib\site-packages\requests\models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)

Is it possible that the Garmin api has changed? Has anyone encountered this problem already?

Add support for Strenght workout

At first I was confused what the FTP was, then I realized it's for cycling.

Would be awesome to use some of the code you already have to be able to declare strength workouts !

AttributeError: 'Namespace' object has no attribute 'func'

When running the command line with Python 3.11.6 on my Mac.

(venv) garmin-workouts % python3 -m garminworkouts
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "***/garminworkouts/__main__.py", line 140, in <module>
    main()
  File "***/garminworkouts/__main__.py", line 136, in main
    args.func(args)
    ^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'func'

Scheduling

Hi there, any plan for scheduling existing workouts?

HTTPError: 403 Client Error: Forbidden for url: https://connect.garmin.com/proxy/workout-service/workouts?start=0&limit=100

Hello,
When i'm trying to use your work to send workouts on my garmin account, i'm getting this error :
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://connect.garmin.com/proxy/workout-service/workouts?start=0&limit=100
I suppose that this is garmin website which is denying me the access,
Do I need an API key for their Workouts API or the issue may be caused by something else ?
(I'm using a Python 3.11.6 virtual environment with the last releases of the requirements)
Thx for your help

auth failing

(venv) laptop:~/garmin-workouts% python -m garminworkouts -u USERNAME -p PASSWORD import --ftp FTP SST.short.xlsx
INFO:garminworkouts.garmin.garminclient:Authenticate user 'USERNAME'
Traceback (most recent call last):
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/Users/jboucas/garmin-workouts/garminworkouts/__main__.py", line 112, in <module>
    main()
  File "/Users/jboucas/garmin-workouts/garminworkouts/__main__.py", line 108, in main
    args.func(args)
  File "/Users/jboucas/garmin-workouts/garminworkouts/__main__.py", line 22, in command_import
    with _garmin_client(args) as connection:
  File "/Users/jboucas/garmin-workouts/garminworkouts/garmin/garminclient.py", line 29, in __enter__
    self._connect()
  File "/Users/jboucas/garmin-workouts/garminworkouts/garmin/garminclient.py", line 103, in _connect
    self._authenticate()
  File "/Users/jboucas/garmin-workouts/garminworkouts/garmin/garminclient.py", line 128, in _authenticate
    auth_response.raise_for_status()
  File "/Users/jboucas/garmin-workouts/venv/lib/python3.8/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://sso.garmin.com/sso/signin?service=https%3A%2F%2Fconnect.garmin.com%2Fmodern

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.