{"id":16179630,"url":"https://github.com/thomasheller/owmtool","last_synced_at":"2025-04-07T11:45:04.339Z","repository":{"id":72940512,"uuid":"220093389","full_name":"thomasheller/owmtool","owner":"thomasheller","description":"☔","archived":false,"fork":false,"pushed_at":"2019-11-06T21:28:56.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T14:40:06.474Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomasheller.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":"2019-11-06T21:27:03.000Z","updated_at":"2019-11-06T21:31:00.000Z","dependencies_parsed_at":"2023-06-26T02:01:35.968Z","dependency_job_id":null,"html_url":"https://github.com/thomasheller/owmtool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheller%2Fowmtool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheller%2Fowmtool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheller%2Fowmtool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasheller%2Fowmtool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasheller","download_url":"https://codeload.github.com/thomasheller/owmtool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648923,"owners_count":20972942,"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":[],"created_at":"2024-10-10T05:43:39.263Z","updated_at":"2025-04-07T11:45:04.320Z","avatar_url":"https://github.com/thomasheller.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# owmtool\n\n## Build\n\n- Install Go - try gimme: https://github.com/travis-ci/gimme\n- Clone repo to `~/go/src/github.com/thomasheller/owmtool`\n- `cd ~/go/src/github.com/thomasheller/owmtool \u0026\u0026 go build`\n\n## Usage\n\n```bash\n$ cat positions.json\n{\n  \"positions\": [\n    { \"lat\": 52.524702, \"lon\": 13.367882 },\n    { \"lat\": 50.036789, \"lon\": 8.561119 },\n    { \"lat\": 46.961532, \"lon\": 7.503579 }\n  ]\n}\n$ OPENWEATHERMAP_API_KEY=... ./owmtool \u003c positions.json\n2019/11/06 22:25:25 http://api.openweathermap.org/data/2.5/weather?lat=52.524702\u0026lon=13.367882\u0026units=metric\u0026lang=de\u0026appid=...\n2019/11/06 22:25:26 http://api.openweathermap.org/data/2.5/weather?lat=50.036789\u0026lon=8.561119\u0026units=metric\u0026lang=de\u0026appid=...\n2019/11/06 22:25:27 http://api.openweathermap.org/data/2.5/weather?lat=46.961532\u0026lon=7.503579\u0026units=metric\u0026lang=de\u0026appid=...\n{\n    \"results\": [\n        {\n            \"input\": {\n                \"lat\": 52.524702,\n                \"lon\": 13.367882\n            },\n            \"output\": {\n                \"lat\": 52.52,\n                \"lon\": 13.37\n            },\n            \"distance_meters\": 542.1200806736914,\n            \"location_name\": \"Tiergarten\"\n        },\n        {\n            \"input\": {\n                \"lat\": 50.036789,\n                \"lon\": 8.561119\n            },\n            \"output\": {\n                \"lat\": 50.04,\n                \"lon\": 8.56\n            },\n            \"distance_meters\": 365.8812841677877,\n            \"location_name\": \"Frankfurt Main Flughafen\"\n        },\n        {\n            \"input\": {\n                \"lat\": 46.961532,\n                \"lon\": 7.503579\n            },\n            \"output\": {\n                \"lat\": 46.96,\n                \"lon\": 7.5\n            },\n            \"distance_meters\": 320.61242379105903,\n            \"location_name\": \"Ostermundigen\"\n        }\n    ],\n    \"stats\": {\n        \"avg_distance_meters\": 409.5379295441794,\n        \"max_distance_meters\": 542.1200806736914,\n        \"min_distance_meters\": 320.61242379105903\n    },\n    \"errors\": []\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasheller%2Fowmtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasheller%2Fowmtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasheller%2Fowmtool/lists"}