{"id":18143217,"url":"https://github.com/mooflu/fitdb","last_synced_at":"2026-04-29T00:34:52.010Z","repository":{"id":260151651,"uuid":"877024193","full_name":"mooflu/fitdb","owner":"mooflu","description":"Command line tool to import Garmin fit data into sqlite db and query by location and date range","archived":false,"fork":false,"pushed_at":"2024-10-29T19:39:01.000Z","size":3172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T19:33:55.529Z","etag":null,"topics":["fit","garmin","sqlite","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mooflu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-10-23T00:36:59.000Z","updated_at":"2024-10-29T19:39:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"5583551e-d7c3-4c82-81ad-676f4e7c45d3","html_url":"https://github.com/mooflu/fitdb","commit_stats":null,"previous_names":["mooflu/fitdb"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mooflu/fitdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooflu%2Ffitdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooflu%2Ffitdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooflu%2Ffitdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooflu%2Ffitdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mooflu","download_url":"https://codeload.github.com/mooflu/fitdb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooflu%2Ffitdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32405901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fit","garmin","sqlite","sqlite3"],"created_at":"2024-11-01T19:06:09.028Z","updated_at":"2026-04-29T00:34:51.995Z","avatar_url":"https://github.com/mooflu.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Notes to self\n\n- use [gcexport.py](https://github.com/pe-st/garmin-connect-export) to grab FIT files from Garmin site.\n```\npython3 gcexport.py --username \u003cusername\u003e -f original -u -c all\nif some of the original files are gpx, grab them as tcx\npython3 gcexport.py --username \u003cusername\u003e -f tcx -u -c all\n```\n- use [gpsbabel](https://github.com/GPSBabel/gpsbabel) to convert non FIT to FIT\n```\nfor x in *.tcx; do ../../gpsbabel/gpsbabel -i gtrnctr -f $x -o garmin_fit -F ${x:r}.fit ; done\n```\n- build fitdb\n- import data\n```\n./build/src/fitdb -i ../fit_data\n```\n- query by location and date range\n```\n./build/src/fitdb --nec 49.789256859574444 -122.98610951567522 --swc 49.7830224018896 -122.9937909886709 -f 2011-01-01 -t 2015-01-01\nquery:\nselect distinct(a.garminActivity) from activity a, location l on a.id=l.activityId\nwhere minlat\u003e593934591.9781978 and maxLat\u003c594008971.9555998 and minLng\u003e-1467373083.076114 and maxLng\u003c-1467281439.5336096 and startTime\u003e=662716800 and startTime\u003c=788947200\norder by a.garminActivity desc\nlimit 100;\n\nResults:\nhttps://connect.garmin.com/modern/activity/\u003c...\u003e\n...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooflu%2Ffitdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmooflu%2Ffitdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooflu%2Ffitdb/lists"}