{"id":19860361,"url":"https://github.com/mwksolution/strava-viewer","last_synced_at":"2026-06-08T01:01:39.750Z","repository":{"id":207629339,"uuid":"496325253","full_name":"MWKSolution/strava-viewer","owner":"MWKSolution","description":"Strava-Viewer  for viewing simple summaries of your Strava activities using Dash framework and Strava API.","archived":false,"fork":false,"pushed_at":"2023-01-02T21:35:07.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T00:12:14.744Z","etag":null,"topics":["dash","herokuapp","oauth2","render","strava-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MWKSolution.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-25T17:17:31.000Z","updated_at":"2023-01-02T21:51:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"1512fbe8-c077-40c7-b976-54b3141d8276","html_url":"https://github.com/MWKSolution/strava-viewer","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"546a291fae5de9f8745778a39624f424ca8b63d0"},"previous_names":["mwksolution/strava-viewer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MWKSolution/strava-viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWKSolution%2Fstrava-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWKSolution%2Fstrava-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWKSolution%2Fstrava-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWKSolution%2Fstrava-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MWKSolution","download_url":"https://codeload.github.com/MWKSolution/strava-viewer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MWKSolution%2Fstrava-viewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34043822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dash","herokuapp","oauth2","render","strava-api"],"created_at":"2024-11-12T15:05:12.254Z","updated_at":"2026-06-08T01:01:39.728Z","avatar_url":"https://github.com/MWKSolution.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Strava-Viewer  \n**...for viewing simple summaries of your Strava activities using  [Dash](https://dash.plotly.com) framework and [Strava API](https://developers.strava.com)**  \n*Working example could be seen at* **[Render](https://strava-viewr.onrender.com/)**\n\n---\n\nBefore you start your application...  \n1. You have to:\n    - have Strava account and some activities on it\n    - set up your API app in [Strava](https://developers.strava.com/docs/getting-started/#account)\n    - and then get **client_id** and **client_secret**\n2. Then use browser and following links to get **access** and **refresh** tokens:  \n   Manually in browser *(put appropriate data when in CAPITALS)*:\n   - https://www.strava.com/oauth/authorize?client_id=YOUR_CLIENT_ID\u0026redirect_uri=http://localhost\u0026response_type=code\u0026scope=activity:read_all  \n   This will open Strava authorization page. Click authorize. This will in turn open page:\n   - http://localhost/?state=\u0026code=SOMECODE\u0026scope=read,activity:read_all  \n   Get **somecode** and put it in POST request:\n   POST request:\n   - https://www.strava.com/oauth/token?client_id=YOUR_CLIENT_ID\u0026client_secret=YOUR_CLIENT_SECRET\u0026code=SOMECODE_FROM_PREVIOUS_STEP\u0026grant_type=authorization_code\n4. from *response* get: **refresh_token** and **access_token**\n\nPut your **client_id**, **client_secret** and obtained in previous steps **access_token** and **refresh_token** in ***token.yaml*** file. It should look like this:\n```{\nclient_id: 'xxxxx'\nclient_secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'\nrefresh_token: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'\naccess_token: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'\ngrant_type: 'refresh_token'\nf: 'json'\n```\nNow you can get your activities from Strava.  \n[getLoggedInAthleteActivities](https://developers.strava.com/docs/reference/#api-Activities-getLoggedInAthleteActivities)\n\n**access_token** could be used directly by it expires so **refresh_token** is used to get new access token.  \n[Refreshing Expired Access Tokens](https://developers.strava.com/docs/authentication/#refreshingexpiredaccesstokens)\n\n---\n\n### Strava-Viewer app\n\nSome simple summaries of activities data are presented using  **[Dash](https://dash.plotly.com)** framework.  \nWhen first used, app has empty dashboard. Click **Refresh data** or **Reload all data**, this will create **activities.json** file or will connect to redis database.  \nYou should have ***redis.yaml*** file with valid data to connect to redis database:   \n```\nhost: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'\nport: xxxxx\nusername: 'xxxxxxxx'\npassword: 'xxxxxxxx'\n```\nAfter adding new activities to Strava clicking **Refresh data**, this will update **activities.json** file or redis database and than barchart.\n\n---\n\n### Deployment\nSince Heroku is no longer offering free dynos deployment was moved to Render.  \nBut files necessary for Heroku deployment haven't been removed (*Procfile, runtime.txt*).  \n!!! All necessary files for deployment are included but don't forget to remove ***token.yaml*** and ***redis.yaml*** from ***.gitignore***!!!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwksolution%2Fstrava-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwksolution%2Fstrava-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwksolution%2Fstrava-viewer/lists"}