{"id":19477383,"url":"https://github.com/serknight/strava-collage","last_synced_at":"2025-09-06T03:44:16.811Z","repository":{"id":39678905,"uuid":"122664333","full_name":"SerKnight/strava-collage","owner":"SerKnight","description":"A simple app to start exploring the Strava API. A fun way to showcases your recent activities photos in an interactive collage that shows how fun it is to #GamifyYourExercise","archived":false,"fork":false,"pushed_at":"2023-01-19T00:47:53.000Z","size":9316,"stargazers_count":1,"open_issues_count":16,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T16:32:57.663Z","etag":null,"topics":["strava"],"latest_commit_sha":null,"homepage":"https://strava-collage.herokuapp.com/","language":"Ruby","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/SerKnight.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}},"created_at":"2018-02-23T19:32:59.000Z","updated_at":"2018-05-16T07:45:04.000Z","dependencies_parsed_at":"2023-02-10T19:16:08.263Z","dependency_job_id":null,"html_url":"https://github.com/SerKnight/strava-collage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SerKnight/strava-collage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SerKnight%2Fstrava-collage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SerKnight%2Fstrava-collage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SerKnight%2Fstrava-collage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SerKnight%2Fstrava-collage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SerKnight","download_url":"https://codeload.github.com/SerKnight/strava-collage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SerKnight%2Fstrava-collage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273854524,"owners_count":25180009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"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":["strava"],"created_at":"2024-11-10T19:44:46.121Z","updated_at":"2025-09-06T03:44:16.785Z","avatar_url":"https://github.com/SerKnight.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Strava Collage - https://github.com/SerKnight/strava-collage\n\nA simple app to start exploring the Strava API. A fun way to showcases your recent activities photos in an interactive collage that shows how fun it is to #GamifyYourExercise\n\n--------\n\nTODO:\n\n* Move api call into background worker, and create progress loader\n* Build out database storage to persist a user's data to allow for additional features\n* Create more of a DRY api / client connection. I researched 2 main ruby API wrappers but wanted to connect directly to api to learn how calls were structured.\n* Increase query to loop all every activity \u0026 its photos ( currently just the first 30 as per api's pagination ), can more easily improve this once main query is processed Async.\n* Implement html2Canvas for a 'screenshot' so user can save Collage.. Initial attempt lead down the rabbit hole for displaying images in the screenshot || go database route \u0026 add 'Share my Canvas' btn that would enable people to post on Facebook, etc.. \n* add controller / helper specs for api calls, \u0026 basic authentication flow via selenium\n\n\n---- API Discovery \u0026 Improvement Notes\n\n* Figure out why activity photos API call only returns the thumbnail size ie * format_image(url) ( https://www.strava.com/api/v3/activities/#{activity_id}/photos )\n```\n{\n\t...,\n\t\"urls\"=\u003e{\"0\"=\u003e\"https://dgtzuqphqg23d.cloudfront.net/tXmy2F2o3X7WKlu_G2yn-rw5e3DLrjhBFnfdqW55AoQ-64x48.jpg\"},\n\t\"sizes\"=\u003e{\"0\"=\u003e[64, 48]},\n\t...\n}\n```\n* Also the format_image(url) method is a bit hacky and doesn't scale to work with every image.. Can remove the motivational animal photos in lui of broken images once ^ issue is fixed\n\n* Include documentation on Distance Unit size \u0026 data storage\n\t- looked through a few libraries for clue of integer to distance storage..\n\t- ended up taking a few ratios from float -\u003e miles via my personal data.\n\t- averages to about 1/1610, so using that ratio do display mileage for each card\n```\n\t42704.8\t/ 26.53\t=\u003e 1609.679\n\t19388.7\t/ 12.04 =\u003e 1610.357143\n\t10266.8\t/ 6.38 =\u003e 1609.21\n\t9232.8\t/ 5.73 =\u003e 1611.3\n```\n\n**I did end up finding that distance is defined as being stored in Meters for a lot of the other Objects in the API, hence ( 1609.34 in one mile haha..)**\n\n* Include documentation on moving_time Unit size \u0026 Data storage\n\n**Also found elapsed_time integer\tis 'The \u003cobject\u003e Lap's elapsed time, in seconds**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserknight%2Fstrava-collage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserknight%2Fstrava-collage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserknight%2Fstrava-collage/lists"}