Skip to content

Conversation

@emtoonst
Copy link

No description provided.

moderation and others added 30 commits February 21, 2016 13:07
…ns, formatting changes for input to Google Spreadsheets.
Fixed keyError when parsing totalFound results
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
No GPS data is indicated by HTTP status 204 (no content)

(reapplying commit 404165f to current state)
Write empty GPX file when there's no GPS data
…urning 400). Worked out how to download the device type and version for the ride.

Signed-off-by: Michael Payne <[email protected]>
Signed-off-by: Michael Payne <[email protected]>
…al number of rides. Linting via `black`.

Signed-off-by: Michael Payne <[email protected]>
Signed-off-by: Michael Payne <[email protected]>
has to be decoded or not.

Closes #14
Decide whether decoding should happen or not
moderation and others added 11 commits August 31, 2018 13:00
…ith-dots

Adds support for display names containing dots
Signed-off-by: Michael Payne <[email protected]>
Do nothing in decoding_decider for empty GPX data
- when DEVICE_DETAIL is empty/None
- when ACTIVITY_DETAIL gets HTTP error 500
- when a['activityName'] is None
…allow for passing in of application and arguments.

Signed-off-by: Michael Payne <[email protected]>
Signed-off-by: Michael Payne <[email protected]>
@moderation moderation deleted the master branch June 24, 2020 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants