-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport changes from moderation and pe-st to kjkjava #42
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSON format does not download any file, but saves all the metadata received about activities in a .json file.
…ns, formatting changes for input to Google Spreadsheets.
… authentication requirements.
Fixed keyError when parsing totalFound results
Use HTTPS for download
Fix download URLs to point to modern proxy so TCX/GPX download works.
Reduce maximum to 19, as everything bigger gets a 500 status: Making activity request ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http://connect.garmin.com/proxy/activity-search-service-1.2/json/activities?start=0&limit=1 Finished activity request ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Garmin Connect activity: [NNNNNNNNNN] (activity name) Tue, 6 Mar 2018 10:23, 00:57:44, 11.20 Kilometers https://connect.garmin.com/modern/proxy/download-service/export/gpx/activity/NNNNNNNNNN?full=true Downloading file... Done. GPX data saved. Making activity request ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http://connect.garmin.com/proxy/activity-search-service-1.2/json/activities?start=1&limit=20 Traceback (most recent call last): File "./gcexport.py", line 284, in <module> result = http_req(url_gc_search + urlencode(search_params)) File "./gcexport.py", line 82, in http_req ... File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 500: Internal Server Error
Use `limit_maximum` instead of magic number
The old endpoint ('activity-search-service-1.2') doesn't seem to work anymore for more than 20 activities, but is still useful for the result summary (total numbers of activities) The new endpoint ('activitylist-service') has an almost completely different JSON output, which hasn't been adapted yet.
Also explain limit_maximum
Cleanup also other stuff like unneeded quote escaping for columns that will never see a quote, etc.
no point in using a float with one decimal place
This format is almost the same that Garmin used in the activity-search-service
Cleanup also other stuff like unneeded quote escaping for columns that will never see a quote, etc.
no point in using a float with one decimal place for heart rate
The ticket is now extracted from the login response. The cookies are not needed anymore, as well as the voodoo calls to modern and legacy session. For the post_auth call I chose just an URL that worked when analyzing the HTTP traffic in the browser, maybe there are better ones (with less payload)? Issue moderation/garmin-connect-export#10
It's already checked before
The detail contains also average and max temperature
The 'pretty' names come from a dictionary retrieved by separate REST calls
It's already checked before
The 'pretty' names come from a dictionary retrieved by separate REST calls
pe-st
added a commit
to pe-st/garmin-connect-export
that referenced
this pull request
Sep 8, 2018
- endTimeMillis column - raw duration columns - xxxSpeedPaceRaw columns csv_header_running.properties template now corresponds to my old open PR kjkjava/garmin-connect-export#42
I got a PR (pe-st/garmin-connect-export#53) in my own fork to detach my fork, and I think after more than 30 months without a reaction to this PR here this might be the right thing to do. |
I have now detached my repo at https://github.com/pe-st/garmin-connect-export, see issue pe-st/garmin-connect-export#53 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello Kyle
This PR contains all the required changes to make your script work again after the recent changes to the Garmin Connect site, as well as other refactorings from the
moderation
and my (pe-st
) fork.I tried to keep your CSV format as unchanged as possible (same columns, same formatting)
Regards, Peter