Open
Conversation
added 9 commits
January 30, 2021 21:27
Seems Strava means "15 minutes from the last activiy", rather than dividing an hour into 15 minute pieces, and limiting each. So just do the 15 minute wait each time a timeout is required.
This file contains hidden or 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
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.
I have the misfortune to own a Suunto watch, and recent horrific changes to their website / app made me need to drop Suunto and move to Strava. Unfortunately that involves uploading around 2000 activities, which with Strava's rate limits is going to take a few weeks. To this end I wanted to put the uploads into a daily cron job, and just leave it to do its thing. To do that, I needed to fully automate dealing with the OAuth tokens, which I have now done.
The changes in this pull request result in the details gathered by
strava_local_client.pybeing stored in a file, which from then on is read by, and updated by,uploader.py. It just needs to be run once a day, and it will continue uploading where it left off.I'm not sure this is something you want? Changes are in a few commits, but each is simple. I could merge them into one commit if that helps. Total code changes are pretty small though.
Thanks, and thanks for writing
strava-uploader- it has been really useful to me!g