{"id":18757100,"url":"https://github.com/foursixnine/ishkur","last_synced_at":"2025-11-30T15:30:12.469Z","repository":{"id":141230768,"uuid":"211185975","full_name":"foursixnine/ishkur","owner":"foursixnine","description":"An app just to visualize generated power","archived":false,"fork":false,"pushed_at":"2019-10-06T22:26:26.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-12T03:02:14.032Z","etag":null,"topics":["dataviz","strava","strava-api","strava-oauth"],"latest_commit_sha":null,"homepage":"https://Ishkur.foursixnine.io","language":"Go","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/foursixnine.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":"2019-09-26T21:41:07.000Z","updated_at":"2024-06-19T07:43:03.099Z","dependencies_parsed_at":"2024-06-19T07:43:02.667Z","dependency_job_id":"2f7d1467-81ca-43c2-be07-c524b8868fad","html_url":"https://github.com/foursixnine/ishkur","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foursixnine%2Fishkur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foursixnine%2Fishkur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foursixnine%2Fishkur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foursixnine%2Fishkur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foursixnine","download_url":"https://codeload.github.com/foursixnine/ishkur/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239644484,"owners_count":19673665,"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","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":["dataviz","strava","strava-api","strava-oauth"],"created_at":"2024-11-07T17:39:29.153Z","updated_at":"2025-11-30T15:30:12.150Z","avatar_url":"https://github.com/foursixnine.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Another data visualisation app for strava\n\nJust because I'm curious and I want to... I've decided to show how the KJ that I've generated, can be transformed into power, while I know it might not be\nentirely perfect, the idea would be a nice approximation\n\nSee for better details on how the authentication is done http://developers.strava.com/docs/authentication/\n\nFor now, pick and axe solution:\n\n```\nsource production.env\nexport APP_SCOPES=\"activity:read_all,profile:read_all,activity:write,read_all,read\"\n#this returns an URL, go there, extract code and put it as AC\ncurl -X GET \"http://www.strava.com/oauth/authorize?client_id=$CID\u0026response_type=code\u0026redirect_uri=http://localhost/exchange_token\u0026approval_prompt=force\u0026scope=$APP_SCOPES\"\nexport AC=\"RESULT OF REDIRECTION's URL\"\n\n#this returns json, get the token from here\ncurl -X POST https://www.strava.com/oauth/token  -F client_id=$CID -F client_secret=$CS  -F code=$AC  -F grant_type=authorization_code\necho export STRAVA_TOKEN=\"TOKEN_GIVEN\" \u003e production.env\nsource production.env \ncurl  -D /dev/stderr -X GET  -H \"Authorization: Bearer $STRAVA_TOKEN\"  'https://www.strava.com/api/v3/athlete/activities'  | tee activities.json | jq \" map(. + {kwh: ( (.kilojoules // 0) / 3.6)} ) \"\n```\n\n## What to represent?\n\n* Ideally I want to show how many light bulbs (90w or some fancy LED) can be powered in an hour\n\n### further reading\n\n* https://m.wikihow.com/Calculate-Kilowatts-Used-by-Light-Bulbs\n* https://insights.regencylighting.com/kw-vs-kwh-how-much-energy-is-my-lighting-using\n* http://energyusecalculator.com/electricity_cfllightbulb.htm\n* https://www.arcadiapower.com/energy-101/energy-bills/how-to-visualize-one-kwh/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoursixnine%2Fishkur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoursixnine%2Fishkur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoursixnine%2Fishkur/lists"}