Skip to content
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
wants to merge 79 commits into from

Commits on Oct 16, 2015

  1. Add JSON export format.

    JSON format does not download any file, but saves all the metadata received about activities in a .json file.
    yohcop committed Oct 16, 2015
    Configuration menu
    Copy the full SHA
    7b0fcc7 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2016

  1. Fix elevation, get additional data like cadence, heart rate, elevatio…

    …ns, formatting changes for input to Google Spreadsheets.
    moderation committed Feb 21, 2016
    Configuration menu
    Copy the full SHA
    a147b09 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2016

  1. Huge refactor after Garmin deprecated old APIs and modified login and…

    … authentication requirements.
    moderation committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    1493604 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2016

  1. Configuration menu
    Copy the full SHA
    ceec54b View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2016

  1. Merge pull request #1 from cmccarty/master

    Fixed keyError when parsing totalFound results
    moderation authored Sep 8, 2016
    Configuration menu
    Copy the full SHA
    20d4171 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2016

  1. GPX broken again.

    moderation committed Oct 19, 2016
    Configuration menu
    Copy the full SHA
    9d2a62b View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2016

  1. Persist activity JSON.

    moderation committed Nov 30, 2016
    Configuration menu
    Copy the full SHA
    c21bbb7 View commit details
    Browse the repository at this point in the history
  2. Re-enable export to GPX.

    moderation committed Nov 30, 2016
    Configuration menu
    Copy the full SHA
    f1d3a34 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2017

  1. Configuration menu
    Copy the full SHA
    64c0ff1 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2017

  1. Fix download URLs to point to modern proxy so TCX/GPX download works.

    Use HTTPS for download
    julienr committed Feb 11, 2017
    Configuration menu
    Copy the full SHA
    737a5b9 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2017

  1. Merge pull request #2 from julienr/fix_download_urls

    Fix download URLs to point to modern proxy so TCX/GPX download works.
    pe-st authored Jun 12, 2017
    Configuration menu
    Copy the full SHA
    bb97890 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2017

  1. Configuration menu
    Copy the full SHA
    404165f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    089f140 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1dcbe0a View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2017

  1. Configuration menu
    Copy the full SHA
    23e2aaa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5112258 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2018

  1. Use limit_maximum instead of magic number

    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
    pe-st committed Mar 6, 2018
    Configuration menu
    Copy the full SHA
    33bb855 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #6 from pe-st/feature/limit_maximum

    Use `limit_maximum` instead of magic number
    moderation authored Mar 6, 2018
    Configuration menu
    Copy the full SHA
    5ede66c View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2018

  1. Start using a different endpoint for the list

    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.
    pe-st committed Mar 7, 2018
    Configuration menu
    Copy the full SHA
    d357e74 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2018

  1. Configuration menu
    Copy the full SHA
    884ec4e View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2018

  1. Convert duration, distance ans speed columns

    Also explain limit_maximum
    pe-st committed Mar 9, 2018
    Configuration menu
    Copy the full SHA
    5381a9a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bc2f3b6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a28a2c0 View commit details
    Browse the repository at this point in the history
  4. Improve timestamps

    pe-st committed Mar 9, 2018
    Configuration menu
    Copy the full SHA
    0c79f7f View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2018

  1. Configuration menu
    Copy the full SHA
    73bb28d View commit details
    Browse the repository at this point in the history
  2. Update README.md

    pe-st committed Mar 10, 2018
    Configuration menu
    Copy the full SHA
    5c5c0e1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    edfdd01 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    37a8332 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6ca1f02 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c9e4442 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2018

  1. Write empty GPX file when there's no GPS data

    No GPS data is indicated by HTTP status 204 (no content)
    
    (reapplying commit 404165f to current state)
    pe-st committed Mar 11, 2018
    Configuration menu
    Copy the full SHA
    10afedd View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2018

  1. Merge pull request #8 from pe-st/feature/gpx-http-204

    Write empty GPX file when there's no GPS data
    moderation authored Mar 21, 2018
    Configuration menu
    Copy the full SHA
    71dc1dd View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2018

  1. Configuration menu
    Copy the full SHA
    c50a5b0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89f9a37 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2617e5b View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2018

  1. Add JSON export format.

    This an adaptation of commit 7b0fcc7 to the refactored code
    pe-st committed Mar 29, 2018
    Configuration menu
    Copy the full SHA
    ad4c31e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2e37d18 View commit details
    Browse the repository at this point in the history
  3. Retrieve device info

    pe-st committed Mar 29, 2018
    Configuration menu
    Copy the full SHA
    234c229 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f59908d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    058c313 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2018

  1. Configuration menu
    Copy the full SHA
    a61dee1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    07888be View commit details
    Browse the repository at this point in the history
  3. Retrieve device info

    Cherry-Pick of commits 234c229 and a61dee1
    pe-st committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    30ae465 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6fc9b00 View commit details
    Browse the repository at this point in the history
  5. Restore more, use different timestamp format

     - restored order for a dozen or so columns
     - timestamp format is almost RFC1123 as used by Garmin
    pe-st committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    ee44a09 View commit details
    Browse the repository at this point in the history
  6. Restore remaining columns

    pe-st committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    2522e1f View commit details
    Browse the repository at this point in the history
  7. Round endTimeStamp to seconds

    Add activity detail example file corresponding to the other examples
    pe-st committed Mar 30, 2018
    Configuration menu
    Copy the full SHA
    1f998e4 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2018

  1. Recreate old endTime

    pe-st committed Mar 31, 2018
    Configuration menu
    Copy the full SHA
    e04411a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    68a8fd3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d08b8a0 View commit details
    Browse the repository at this point in the history
  4. Truncate decimal degrees to 6 decimal places

    6 decimal places corresponds to a precision of 4 to 11 cm, way enough
    pe-st committed Mar 31, 2018
    Configuration menu
    Copy the full SHA
    ca5ed7d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    28aab69 View commit details
    Browse the repository at this point in the history
  6. Fix rounding of duration

    pe-st committed Mar 31, 2018
    Configuration menu
    Copy the full SHA
    c74eacc View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2018

  1. Configuration menu
    Copy the full SHA
    7dde755 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    99b05bd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ed0b814 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    40bd7c4 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2018

  1. Configuration menu
    Copy the full SHA
    2ae4182 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    964c06e View commit details
    Browse the repository at this point in the history
  3. Remove superfluous last comma in CSV lines

    Cleanup also other stuff like unneeded quote escaping for columns
    that will never see a quote, etc.
    pe-st committed Apr 2, 2018
    Configuration menu
    Copy the full SHA
    70ccd76 View commit details
    Browse the repository at this point in the history
  4. Use integers for heart rate

    no point in using a float with one decimal place
    pe-st committed Apr 2, 2018
    Configuration menu
    Copy the full SHA
    93c80db View commit details
    Browse the repository at this point in the history
  5. Use calories from detail JSON

    pe-st committed Apr 2, 2018
    Configuration menu
    Copy the full SHA
    f6161a0 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2018

  1. Use an almost RFC1123 timestamp format

    This format is almost the same that Garmin used
    in the activity-search-service
    pe-st committed Apr 3, 2018
    Configuration menu
    Copy the full SHA
    3d448e7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69c0a2b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    637ea52 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2018

  1. Configuration menu
    Copy the full SHA
    3ebd77b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    363f619 View commit details
    Browse the repository at this point in the history
  3. Remove superfluous last comma in CSV lines

    Cleanup also other stuff like unneeded quote escaping for columns
    that will never see a quote, etc.
    pe-st committed Apr 4, 2018
    Configuration menu
    Copy the full SHA
    87aadb9 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2018

  1. Use integers for HR, calories from detail

    no point in using a float with one decimal place for heart rate
    pe-st committed Apr 5, 2018
    Configuration menu
    Copy the full SHA
    0b8052d View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2018

  1. Change the login to Garmin Connect

    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
    pe-st committed Apr 6, 2018
    Configuration menu
    Copy the full SHA
    af7a522 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6f249eb View commit details
    Browse the repository at this point in the history
  3. Update README.md

    pe-st committed Apr 6, 2018
    Configuration menu
    Copy the full SHA
    5f81ebc View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2018

  1. Remove unneeded checks for 'SummaryDTO'

    It's already checked before
    pe-st committed Apr 7, 2018
    Configuration menu
    Copy the full SHA
    0334d14 View commit details
    Browse the repository at this point in the history
  2. Use temperatures from detail

    The detail contains also average and max temperature
    pe-st committed Apr 7, 2018
    Configuration menu
    Copy the full SHA
    76742af View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2018

  1. Pretty-print activity and event types

    The 'pretty' names come from a dictionary retrieved by separate
    REST calls
    pe-st committed Apr 8, 2018
    Configuration menu
    Copy the full SHA
    9561714 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7d00e4b View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2018

  1. Configuration menu
    Copy the full SHA
    eabf3bd View commit details
    Browse the repository at this point in the history
  2. Remove unneeded checks for 'SummaryDTO'

    It's already checked before
    pe-st committed Apr 11, 2018
    Configuration menu
    Copy the full SHA
    0551bdf View commit details
    Browse the repository at this point in the history
  3. Pretty-print activity and event types

    The 'pretty' names come from a dictionary retrieved by separate
    REST calls
    pe-st committed Apr 11, 2018
    Configuration menu
    Copy the full SHA
    a3abd70 View commit details
    Browse the repository at this point in the history