mkuthan / garmin-workouts Goto Github PK
View Code? Open in Web Editor NEWCommand line tool for managing Garmin workouts.
License: Apache License 2.0
Command line tool for managing Garmin workouts.
License: Apache License 2.0
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```
I've got this connection error when using the tool as usual:
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?
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 !
What does the yaml look like for a swimming workout, or is that not supported?
I have not chcked the code..
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'
Trying to export all workouts from garmin connect I get the next error:
requests.exceptions.HTTPError: 402 Client Error: Payment Required for url: https://connect.garmin.com/proxy/workout-service/workout/FIT/xxxxxxxx
Authentication worked fine and list also works fine
Hi there, any plan for scheduling existing workouts?
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
(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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.