Commit Graph
71 Commits
Author SHA1 Message Date
Peter Gardfjäll 33b8354867 support customizing the 'User-Agent' value 2021-05-09 08:09:38 +02:00
Peter Gardfjäll cbe9e74704 bump dependency versions
This bumps urllib3 from 1.26.3 to 1.26.4 since 1.26.3 was flagged by dependabot.
2021-05-09 07:28:08 +02:00
Peter Gardfjäll 71bd0ed9b8 bump version: 0.2.0 -> 0.3.0 2021-02-25 11:21:54 +01:00
Peter Gardfjällandkfollesdal b62e2ac1e5 include CSRF-token in auth and drop 'modern' prefix in paths (#72)
This fix is needed to address internal changes in the Garmin API, where service
endpoints that previously worked started returning 402 responses. Appears like
dropping the `modern` prefix from the endpoint paths fixes the issue.

Also, the authentication sequence has been updated to include a CSRF (Cross-Site
Request Forgery) token to closer mimic the behavior of the login sequence on the
official web page.

Co-authored-by: kfollesdal <kristoffer.follesdal@bkk.no>
2021-02-25 11:19:51 +01:00
Peter Gardfjäll 3886c314c9 bump version: v0.1.0 -> v0.2.0 2020-11-07 08:01:50 +01:00
Peter Gardfjäll 3684ca0fb8 license badge 2020-04-11 15:15:59 +02:00
Peter Gardfjäll 88eac30e15 python version badge 2020-04-11 15:14:41 +02:00
Peter Gardfjäll 69dae3d94d PyPi badge 2020-04-11 15:13:23 +02:00
Peter Gardfjäll 73c1559ba5 setup.py: minor fix 2020-04-08 20:41:36 +02:00
Peter Gardfjäll 92024f7400 travis: use pipenv 2020-04-08 20:31:26 +02:00
Peter Gardfjäll 0c95e4f50f drop support for (now sunset) Python 2 2020-04-08 20:29:29 +02:00
Peter GardfjällandStanislav Khrapov khrapovs@gmail.com 3df00a89c9 call export_formats supported_export_formats
Co-authored-by: Stanislav Khrapov khrapovs@gmail.com
2020-04-08 20:25:16 +02:00
Peter Gardfjäll f2225bb3b3 README: update with new script names and pipenv use 2020-04-08 20:25:16 +02:00
Peter Gardfjäll 94872ae543 switch from requirements.txt to pipenv/Pipfile 2020-04-08 20:25:16 +02:00
Peter Gardfjäll e7fc7e970a setup.py: remove unused dependency on future and make requests dependency looser 2020-04-08 20:25:16 +02:00
Peter Gardfjäll d3f8819dc7 update setup.py in preparation for PyPi release 2020-04-08 20:25:08 +02:00
Peter Gardfjäll bcb02afbb3 update gitignore 2020-04-07 20:40:00 +02:00
Peter Gardfjäll a0d6163c52 move all executable scripts under garminexport.cli 2020-04-07 20:38:22 +02:00
Peter GardfjällandStanislav Khrapov khrapovs@gmail.com 54dad23e1c enable travis CI builds
Co-authored-by: Stanislav Khrapov khrapovs@gmail.com
2020-04-07 14:24:55 +02:00
Peter GardfjällandStanislav Khrapov khrapovs@gmail.com f0548d2928 add missing ignore_errors argument in call to incremental_backup
Co-authored-by: Stanislav Khrapov khrapovs@gmail.com
2020-04-07 14:15:30 +02:00
Peter Gardfjäll c00ccd3887 Simplify log statements.
Make use of format specifiers in the logging library rather than relying on
string.format(), which makes log output unnecessarily verbose.
2020-04-07 12:49:44 +02:00
Peter Gardfjäll 847cb84a94 README: format descriptions in smaller font size 2019-10-12 08:29:28 +02:00
petergardfjall 41f8701c06 README: format descriptions in smaller font size 2019-10-12 08:27:24 +02:00
petergardfjall c02e23fb3e README: add format descriptions 2019-10-12 08:24:13 +02:00
Peter Gardfjäll 900584ba67 Merge pull request #34 from cwygoda/patch/relax-dependencies
Relax dependencies on minor level
2019-04-27 08:01:53 +02:00
Peter Gardfjäll 94eb8f4e13 Merge pull request #33 from cwygoda/patch/relax-dependencies
Relax dependency version to use compatible releases
2019-04-24 20:19:01 +02:00
petergardfjall beeb052b36 garmin login endpoint has changed 2019-04-16 20:04:18 +02:00
petergardfjall c8d1958d07 requests version upgrade: 2.9.1 -> 2.21.0 2019-02-05 14:30:21 +01:00
petergardfjall 95269f10e5 README: no tabs 2019-02-05 14:30:06 +01:00
petergardfjall 2e3597a8d6 updated to change activity details endpoint (garmin retired the previous one) 2019-02-05 14:27:54 +01:00
petergardfjall 2c9ed99087 update to README and Makefile to support both Python 2 and 3 2018-09-01 08:50:54 +02:00
petergardfjall 825c4fcb8a Merge branch 'cwygoda-python_2_3' 2018-09-01 08:43:57 +02:00
petergardfjall d79232af41 Merge branch 'python_2_3' of https://github.com/cwygoda/garminexport into cwygoda-python_2_3 2018-09-01 08:39:56 +02:00
petergardfjall ed32d335ad updated get_activity code to make use of a Retryer 2018-08-30 19:58:53 +02:00
petergardfjall 01a08e14ab trying to download a .fit file for an activity without one now appears to result in a 500 response (although a 404 would seem more appropriate..) 2018-08-30 19:51:25 +02:00
petergardfjall 769d02b2a2 Fix for #21
- Activity listing endpoint no longer appears to work: switched from https://connect.garmin.com/proxy/activity-search-service-1.2/json/activities to https://connect.garmin.com/modern/proxy/activitylist-service/activities/search/activities.

- Activity details json endpoint no longer appears to work: switched from https://connect.garmin.com/modern/proxy/activity-service-1.3/json/activity_embed/<id> to https://connect.garmin.com/modern/proxy/activity-service/activity/<id>.
2018-04-02 09:25:31 +02:00
Peter Gardfjäll 186fa4ac7b Merge pull request #22 from dlenski/fix_and_improve_upload
Fix and improve upload (round 2)
2018-04-01 17:15:18 +02:00
petergardfjall d0aeabae6d add --max-retries option to support retrying failed downloads with exponential backoff 2018-02-26 21:35:41 +01:00
Peter Gardfjäll 8d62829e6d Merge pull request #17 from dlenski/fix_and_improve_upload
Fix and improve upload
2017-12-22 11:21:27 +01:00
petergardfjall aaed3f44bb adapted to new authentication procedure 2017-05-14 08:54:23 +02:00
petergardfjall ef9b875465 Merge branch 'sdonk-master' 2017-03-07 19:47:11 +01:00
petergardfjall 93d27057dc updated authentication procedure 2016-12-14 20:24:12 +01:00
petergardfjall 16c8a74790 #10: activity json summary endpoint is retired 2016-11-07 19:21:46 +01:00
petergardfjall c8bb336d42 clean auth ticket validation url of backslashes 2016-09-17 21:27:56 +02:00
petergardfjall 7bfc82af75 added a step to the login sequence (needed to grant access to certain api services) and also updated some service URLs that had been retired 2016-09-02 19:44:03 +02:00
petergardfjall 112666f0f9 used a retired version of the tcx download service 2016-08-08 20:38:03 +02:00
petergardfjall 44d58f0e93 login procedure more true to original and fix for broken .fit downloads 2016-04-14 22:00:57 +02:00
petergardfjall d6cad6736f merging changes by dlenski 2015-08-27 19:18:26 +02:00
Peter Gardfjäll e25cd38ea6 Merge pull request #4 from dlenski/pr
add upload_activity client method and upload_activity.py example
2015-08-27 19:11:29 +02:00
petergardfjall c91568d302 Merge branch 'master' of https://github.com/petergardfjall/garminexport 2015-03-30 19:40:38 +02:00
petergardfjall d231be1aad fixed authentication issue 2015-03-30 19:40:14 +02:00
petergardfjall 1a17bb2093 fixed readme typo 2015-03-06 10:46:59 +01:00
petergardfjall 7bc48d41ed updated documentation 2015-03-04 21:00:44 +01:00
petergardfjall 38ac9ca0f2 incremental backup skips activity exports that have already been tried 2015-03-04 20:55:55 +01:00
petergardfjall 012c029c83 dropped garminexport.py in favor of the incremental_backup.py script, now renamed to garminbackup.py 2015-02-21 18:10:43 +01:00
Peter Gardfjäll 71c95330ba Merge pull request #1 from dlenski/master
new options, and make incremental_backup.py more intelligent about finding activities
2015-02-21 10:53:27 +01:00
petergardfjall 48fffef657 fixed bug in incremental backup 2015-01-08 20:26:15 +01:00
petergardfjall 3cf73594fc use start timestamp for file prefix 2014-12-07 17:59:06 +01:00
petergardfjall d17df2fc6c refactoring 2014-11-12 16:12:33 +01:00
petergardfjall 4789ebe3e4 use https urls 2014-11-12 13:42:33 +01:00
petergardfjall 81d4ecf26d added script for getting one particular activity 2014-11-12 12:35:13 +01:00
petergardfjall 2c70311ff4 doc update 2014-11-11 13:48:28 +01:00
petergardfjall 130c8af95b doc update 2014-11-11 13:46:14 +01:00
petergardfjall bffd81a231 refactoring 2014-11-11 13:45:11 +01:00
petergardfjall cd5728715c save files in activities/ directory (without timestamp) 2014-11-11 12:42:05 +01:00
petergardfjall c8c45c62e7 fixed typo 2014-11-09 13:57:50 +01:00
petergardfjall aa5de9c4a7 not all activities have FIT files (e.g., manually entered ones) 2014-11-09 13:56:50 +01:00
petergardfjall 35aea411d0 also download .gpx and .fit file for each activity 2014-11-09 13:32:20 +01:00
petergardfjall a8572d7e13 aestethical documentation fixes 2014-11-08 13:41:13 +01:00
petergardfjall e030c015d2 initial commit 2014-11-08 13:35:47 +01:00
Peter Gardfjäll b187971ef4 Initial commit 2014-11-08 13:11:01 +01:00