Git Product home page Git Product logo

garmin-uploader's People

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

garmin-uploader's Issues

Strava

Did you test Strava? You can attach wahoo to Strava and Strava to Garmin to get the same result.

Login correct, activity upload error: access denied

This is the sequence of upload that fails:

2017-03-23 18:40:32,177 [INFO] Try to login on GarminConnect...
2017-03-23 18:40:35,963 [INFO] Logged in as JMSanjuan
2017-03-23 18:40:36,276 [WARNING] Upload failure: Failed to upload 2017-03-22_08-26-28_4_158.fit
2017-03-23 18:40:36,276 [INFO] All done.

I added a debug message than shows res.text of the upload method that fails

response-text.txt

This shows an access denied error, but login seems correct.

¿Any idea?.

Thanks in advance.

Upload limit?

I tried uploading a TCX file to Garmin Connect using the import feature on the Garmin website. It failed because of a 25MB file size limit. Therefore I was looking for an app that overcomes the limit.

I'm not near a computer but does this uploader have a file size limit? If not, does the 25MB limit on the website apply to this app?

Thanks

Activity name update failed: Activity name not set: The requested endpoint is retired

Hi dlottton,
First of all thanks for work on this, great idea!
I have a problem adding Activity names and Activity types, looks like something has changed at Garmin. I'll also do some digging around.

$ python2 garmin_uploader/cli.py -u [email protected] -p xxxxxxxx -v 1 test_import.csv
2017-02-02 20:22:25,255 [DEBUG] File '/home/chrism/PycharmProjects/sportstracker/test_import.csv' has extension '.csv'
2017-02-02 20:22:25,255 [WARNING] File '/home/chrism/PycharmProjects/sportstracker/test_import.csv' extension '.csv' is not valid. Skipping file...
2017-02-02 20:22:25,255 [INFO] List file '/home/chrism/PycharmProjects/sportstracker/test_import.csv' will be processed...
2017-02-02 20:22:25,255 [DEBUG] File 'cordula_5869ff93f175723b87cfbec8.gpx' has extension '.gpx'
2017-02-02 20:22:25,255 [DEBUG] File 'cordula_5869ff93f175723b87cfbec8.gpx' extension '.gpx' is valid.
2017-02-02 20:22:25,255 [DEBUG] Using credentials from command line.
2017-02-02 20:22:25,255 [INFO] Try to login on GarminConnect...
2017-02-02 20:22:25,255 [DEBUG] Username: [email protected]
2017-02-02 20:22:25,255 [DEBUG] Password: *********
2017-02-02 20:22:25,764 [DEBUG] Found login ticket e1s1
2017-02-02 20:22:26,277 [DEBUG] Found service ticket ST-0563263-N2gAGmDkJTqz0hiFWJfd-cas
2017-02-02 20:22:27,664 [INFO] Logged in as cordula167
2017-02-02 20:22:27,664 [DEBUG] Login Successful.
2017-02-02 20:22:28,639 [INFO] Uploaded activity 1554911241 : Mit Gaby
2017-02-02 20:22:28,824 [WARNING] Activity name update failed: Activity name not set: The requested endpoint is retired
2017-02-02 20:22:28,825 [DEBUG] Fecthing activity types
2017-02-02 20:22:30,346 [DEBUG] Fetched 109 activity types
2017-02-02 20:22:30,604 [WARNING] Activity type update failed: Activity type not set: The requested endpoint is retired
2017-02-02 20:22:30,605 [INFO] All done.

test_import.csv contents....
filename,name,type
cordula_5869ff93f175723b87cfbec8.gpx,"Mit Gaby",running

[Question] Spoof Garmin device

Hello - thank you for this project. I use it to upload from Apple Watch to Garmin!

I just wanted to check if there is a way to set the Device info to spoof a Garmin device while uploading. Something like how the Peloton to Garmin project does.

Upload data when using login with google verification

Hi,

first of all thanks for this helpful tool. I tried it with a temp account that i want to use for testing until my complete project works as it should. Everything seems to work so far, so i'm really thankful for this.

However my main account uses login via google sign on. This does not work with your current implementation. Can you point me in the right direction on how to achieve login via google? I mean not with an account registered with a google mail, but logon using google instead of creating an account.

Thanks!

Failure: Missing Garmin auth cookie

Hi there,

i also use the amazing garmin-uploader in the current version.
unfortunately i also get the message
2019-04-26 17:29:00,880 [CRITICAL] Login Failure: Missing Garmin auth cookie
if i try to login to garmin but i get still the error

would be great to get some feedback
cheers Ludwig

Authentication Failures again

Howdy,

Seems Garmin has yet again tweaked some things and I have several users (including myself) running into auth failures.
philosowaffle/peloton-to-garmin#109

assert self.user.authenticate(), "Failed to authenticate garmin user."
AssertionError: Failed to authenticate garmin user.

Thank you in advance for any help!

Does it Require requests==2.12.4

Thanks for updating this to work with the latest garmin authentication. It seems to have fixed the issues I've been having logging in.

However, you have a requirement of requests == 2.12.4, but on my system (Fedora 25) they currently distribute requests == 2.10.0, and I'd prefer not to mix up locally installed and distribution versions. So, do you know if there is any special reason for the later version, or is it just your current recommendation? Note, I've tried it with the distributed version (2.10.0) and it seems to work okay.

Logins are failing

2018-04-05 17:34:50,766 [INFO] Try to login on GarminConnect...
2018-04-05 17:34:52,470 [CRITICAL] Login Failure: 503 Server Error: Service Unavailable for url: https://connect.garmin.com/legacy/session

https://connect.garmin.com/legacy is down with the same error as well -- "No server is available to handle this request."

No idea if this is a temporary issue at Garmin or a deliberate shutdown of "legacy" services, but it has been down all day, and the normal website UI is working properly, so ...

Login Failure: Missing session auth cookie again

Hi,
thank you very much for this nice script. it's really great to be able to upload from Linux using it. Thanks!!

Unfortunately it does not work for me as I get the error:

Login Failure: Missing session auth cookie again

Enabling debug gives me this extra info:

2019-03-24 16:04:42,503 [DEBUG] Using credentials from '/home/carcam/.guploadrc'.
2019-03-24 16:04:42,503 [INFO] Try to login on GarminConnect...
2019-03-24 16:04:42,503 [DEBUG] Username: [email protected]
2019-03-24 16:04:42,503 [DEBUG] Password: *************
2019-03-24 16:04:44,351 [DEBUG] Found service ticket ST-07865406-GDRjTXmBOX90VxuIW3uw-cas
2019-03-24 16:04:45,604 [CRITICAL] Login Failure: Missing session auth cookie
Error: Invalid credentials

Maybe you can provide a fix or some hint about what's happening. I've seen you changed session variable name a month ago, but I am in latest 1.0.6 which is supposed to reflect that change...

BesT!!

Authentication issues with direct uploading TCX files

Hi there-

I'm using the Peloton-to-garmin project to convert Peloton workouts to TCX files with direct uploading to Garmin. We've been experiencing issues with authentication to Garmin - wondering if others are too. I'm receiving this error (and I've triple checked credentials):

2021-01-10 11:31:24,590 [INFO] Try to login on GarminConnect...
2021-01-10 11:31:26,945 [CRITICAL] Login Failure: Login check failed.
Error: Invalid credentials

Encode error on login sequence

After the latest release, when I try to upload a file, always shows the same error: 'ascii' codec can't encode character u'\xe9' in position 3: ordinal not in range(128)

gupload -v1 2018-04-01_13-03-44_4_5.fit
2018-04-16 12:35:32,898 [DEBUG] File '/home/jsanjuan/.config/antfs-cli/3906488152/activities/2018-04-01_13-03-44_4_5.fit' has extension '.fit'
2018-04-16 12:35:32,899 [DEBUG] File '/home/jsanjuan/.config/antfs-cli/3906488152/activities/2018-04-01_13-03-44_4_5.fit' extension '.fit' is valid.
2018-04-16 12:35:32,899 [DEBUG] Using credentials from '/home/jsanjuan/.guploadrc'.
2018-04-16 12:35:32,900 [INFO] Try to login on GarminConnect...
2018-04-16 12:35:32,900 [DEBUG] Username: [email protected]
2018-04-16 12:35:32,900 [DEBUG] Password: ********
2018-04-16 12:35:34,264 [DEBUG] Found service ticket ST-21114659-zFFaFlykPfES9zDLSoVo-cas
2018-04-16 12:35:35,477 [CRITICAL] Login Failure: 'ascii' codec can't encode character u'\xe9' in position 3: ordinal not in range(128)
Error: Invalid credentials

The installed version is the latest avaliable by pip.

¿Do you have any idea of what the problem is?.

Thanks in advance.

Upload failure

When I upload activities (fit file), sometimes I receive a warning "[WARNING] Upload failure: Failed to upload".
When I go to Garmin Connect the workout is there.

Failure: Missing Garmin auth cookie - again

Hi,
when I try upload my workout, I get this error:
2019-04-26 17:29:00,880 [CRITICAL] Login Failure: Missing Garmin auth cookie

I use current version.

Please can you check it?

Garmin Two-Step Verification

Thank you so much for building this program! I recently bought a Garmin device that requires two-step verification (Garmin Bounce watch). Adding two-step unfortunately broke this uploader. Any idea if you'd be able to implement a prompt for entering a 2FA code (Garmin only supports email and SMS, no TOTP)? Garmin does have a "remember device" option, so maybe you'd only have to enter the code one time. Thanks!

Upload failure: Failed to upload

Hi there,

Still no luck on my side as I am getting this error. Log below

gupload.exe -v 1 -a 'Run' "sample.tcx"
2017-02-15 17:43:34,061 [DEBUG] File 'sample.tcx' has extension '.tcx'
2017-02-15 17:43:34,061 [DEBUG] File 'sample.tcx' extension '.tcx' is valid.
2017-02-15 17:43:34,062 [DEBUG] Using credentials from 'gupload.ini'.
2017-02-15 17:43:34,062 [INFO] Try to login on GarminConnect...
2017-02-15 17:43:34,063 [DEBUG] Username: myemail
2017-02-15 17:43:34,063 [DEBUG] Password: *****
2017-02-15 17:43:35,865 [DEBUG] Found login ticket XXX
2017-02-15 17:43:36,515 [DEBUG] Found service ticket XXXX
2017-02-15 17:43:38,431 [INFO] Logged in as myusername
2017-02-15 17:43:38,433 [DEBUG] Login Successful.
2017-02-15 17:43:39,006 [WARNING] Upload failure: Failed to upload 'Run'
2017-02-15 17:43:39,006 [INFO] All done.

Change activity type failure

Thank you for continuing development on this tool. I've had fun with what you can change on the spot, and it makes it easier for me to upload to GC from linux, which I prefer to use over other operating systems.

I have tried to set the activity type to anything besides running, but Garmin Connect shows the activity type still as running. I have a forerunner 225 which does not have multi-sport mode, so maybe this is part of the issue.

Today I went for a bike ride and entered this command (with my actual username and password):
gupload -u USERNAME -p PASSWORD -t "cycling" 783J5446.FIT
The file uploaded correctly but did not change activity type

Along with other messages I received this error message:
2017-08-03 21:52:20,747 [WARNING] Activity type update failed: Activity type not set: <?xml version="1.0" encoding="UTF-8" ?>

Let me know if you want to see the full output.

In case it's useful, I tested this on Linux Mint 17.3 (forked from Ubuntu 14.04.5 LTS)

Authentication Fails

Hello, thank you for this great tool! Sometime in the past day I believe Garmin has made a change that caused the current Authentication logic to fail.

This was first noticed on this issue: philosowaffle/peloton-to-garmin#62

I cloned garmin-uploader locally and kicked off the tests and confirmed the tests are also failing on the authentication step.

Failed to Authenticate Garmin User

I am using the Peloton to Garmin python library and it was working perfectly fine. I had it polling every 3 mins for new exercises. It did about 5 times and this error started appearing. I can log in with my Garmin Connect both on my phone and desktop web browser so I know the credentials are right. I keep getting
"Failed to upload to Garmin. With error: Failed to authenticate garmin user."

Any help would be appreciated.

Workouts not uploading

Looks like there is an issue with the Peloton API as other apps are getting a JSON error when calling the Peloton API. Worksouts are not being uploaded to Garmin due to the same issue.

Nix computers can't find gupload in the command line

Love the tool. It worked fine on my windows computer, but I'm having an issue when installing to both my Mac and raspbian OS's. After I execute pip install garmin-uploader --user it looks like all the required dependencies are there, but gupload can't be found in the command line. I'm relatively new to linux, am I missing something here? Do I need to add something to $PATH or chmod permissions on some file?

Login Issues Again

Today I am getting login failures, after months of no issues. When I go to connect I get the following

2017-05-12 20:59:57,799 [INFO] Try to login on GarminConnect...
2017-05-12 20:59:58,865 [CRITICAL] Login Failure: No login ticket
Traceback (most recent call last):
File "/usr/bin/gupload", line 9, in
load_entry_point('garmin-uploader==1.0.2', 'console_scripts', 'gupload')()
File "/usr/lib/python2.7/site-packages/garmin_uploader/cli.py", line 64, in main
workflow.run()
File "/usr/lib/python2.7/site-packages/garmin_uploader/workflow.py", line 227, in run
raise Exception('Invalid credentials')
Exception: Invalid credentials

I can login on a browser with no issues.

Do you know if Garmin has changed something again?

[CRITICAL] Login Failure: Missing Garmin auth cookie

Yesterday the upload begun to fail with: "[CRITICAL] Login Failure: Missing jsession auth cookie", the unitary test shows: "[CRITICAL] Login Failure: Missing Garmin auth cookie".

It's about a new change in the Garmin API?.

Thanks in advance.

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.