Commit Graph

63 Commits

Author SHA1 Message Date
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
Stanislav Khrapov
4ee0cda314
cosmetic code cleanup
Co-authored-by: Stanislav Khrapov <stanislav.khrapov@dbschenker.com>
2020-03-08 20:05:56 +01:00
Stanislav Khrapov
8cd27fcb19
Refactor main script logic into an incremental_backup library function
The overall intent is to make it easier for third-party clients to implement incremental backups as simple function calls to the garminexport library, rather than executing the garminbackup.py script.

Co-authored-by: Stanislav Khrapov <stanislav.khrapov@dbschenker.com>
2020-03-08 17:19:19 +01: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
Christian Wygoda
cf1b265b75 Relax dependencies on minor level 2019-04-25 01:15:37 +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
Christian Wygoda
4934ab3fe3 Relax dependency version to use compatible releases 2019-04-23 21:27:06 +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
Christian Wygoda
856adada79 Make code compatible with Python 2.6+ and Python 3 2018-06-06 22:41:03 +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
Daniel Lenski
34c7a823ad allow overriding activity type from CLI 2018-03-28 15:41:43 -07:00
Daniel Lenski
eec4dcf1de Garmin changed the endpoint for setting metadata
Cribbed from cpfair/tapiriik:

    e685dce36f
2018-03-28 15:41:43 -07: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
Daniel Lenski
31974b0bf0 allow upload of multiple activity files, and improve error handling 2017-12-21 16:11:21 -08:00
Daniel Lenski
d410a7c212 Garmin changed the upload endpoint and added some random headers
Cribbed from cpfair/tapiriik:

    51226cc012
2017-12-21 16:09:37 -08: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
Alessandro De Noia
7d412c62ae attempt to download gpx for activity without device data may give 204 response 2017-03-07 19:45:42 +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
Dan Lenski
c5feaf86c2 add upload_activity client method and upload_activity.py example 2015-08-10 12:41:33 -07: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
Dan Lenski
21e0533f91 add options to ignore errors (-E) and to export specific formats (-f), and make incremental_backup.py more intelligent about finding which activities have already been backed up in the desired formats 2015-02-20 00:32:59 -08: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