Skip to content

Declipsonator/strava-quote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strava Quotes

Info

Sets the description of all of your activities within five days (or until your last one with a description) to a generated llama3.1 quote. Sometimes some beautiful things come out 😄

strava activity with description: Life is not a series of beginnings and endings, but an endless stream of moments in which we find ourselves being who we are.

Installation:

Step 1:

Follow the first section of this tutorial.

Step 2:

Download Ollama.
Run ollama run llama3.1
Run ollama serve

Step 3:

Uncomment this code:

url = client.authorization_url(client_id=MY_STRAVA_CLIENT_ID, redirect_uri='http://127.0.0.1:5000/authorization',
                               scope=['read_all', 'profile:read_all', 'activity:read_all', 'profile:write',
                                      'activity:write'])
print(url)

CODE = 'xxxxxxxxxxxxxxxxxxxxxxxxx'

access_token = client.exchange_code_for_token(client_id=xxxxx,
                                               client_secret="xxxxxxxxxxxxxxx", code=CODE)
with open('./access_token.pickle', 'wb') as f:
    pickle.dump(access_token, f)

Then run the program once, open the url and authorize. After that, put in your id and secret and the code is in the tutorial.

Step 4:

Comment out the code and you're good. I use crontab to run the program every hour.

Credits

Independently developed by Jackson Hickey. Licensed under the GNU General Public License v3.0.

About

AI quotes on your strava activities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages