{"id":18795128,"url":"https://github.com/daisuke-t-jp/overpass_weather","last_synced_at":"2025-12-30T01:30:15.069Z","repository":{"id":143702856,"uuid":"244906900","full_name":"daisuke-t-jp/overpass_weather","owner":"daisuke-t-jp","description":"Get OpenMapWeather data with OSM Overpass API.","archived":false,"fork":false,"pushed_at":"2020-03-10T13:34:32.000Z","size":565,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T16:42:18.842Z","etag":null,"topics":["openweathermap-api","osm","overpass-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daisuke-t-jp.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":"2020-03-04T13:25:44.000Z","updated_at":"2020-03-11T01:12:36.000Z","dependencies_parsed_at":"2023-04-22T13:04:23.449Z","dependency_job_id":null,"html_url":"https://github.com/daisuke-t-jp/overpass_weather","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/daisuke-t-jp%2Foverpass_weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2Foverpass_weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2Foverpass_weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisuke-t-jp%2Foverpass_weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daisuke-t-jp","download_url":"https://codeload.github.com/daisuke-t-jp/overpass_weather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239719586,"owners_count":19685967,"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":["openweathermap-api","osm","overpass-api"],"created_at":"2024-11-07T21:32:40.286Z","updated_at":"2025-12-30T01:30:15.032Z","avatar_url":"https://github.com/daisuke-t-jp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# overpass_weather\n\n## Overview\n\n[overpass_weather.py](overpass_weahter.py) is get weather with POI data.\n\nThis module run at step.\n\n1. Get OSM nodes from [Overpass API](https://wiki.openstreetmap.org/wiki/Overpass_API) or Overpass local file.\n1. Get weather with node from [OpenWeatherMap API](https://openweathermap.org/current) (You must need API key)\n\n\n## Python dependency\n \nUsing Python 3.x.\n\nInstall packages.\n\n```sh\n$ pip3 install overpy\n$ pip3 install attrdict\n```\n\n\n## Usage\n\nThere are two ways to get Overpass API data.\n\n### Using Overpass API\n\n```py\n    # overpass_weahter.weathers_with_overpass_api(query, openweathermap_api_key, openweathermap_api_interval_seconds)\n    weathers = overpass_weahter.weathers_with_overpass_api(\"\"\"\n                                            [out:json];\n                                            node[\"building\"=\"cathedral\"];\n                                            out body;\n                                            \"\"\",\n                                            OPENWEATHERMAP_API_KEY,\n                                            0.1)\n\n    for weather in weathers:\n        # ...\n```\n\n### Using Overpass data(local file)\n\n```py\n    # overpass_weahter.weathers_with_overpass_file(overpass_file_path, openweathermap_api_key, openweathermap_api_interval_seconds)\n    weathers = overpass_weahter.weathers_with_overpass_file('overpass_building_cathedral.json',\n                                            OPENWEATHERMAP_API_KEY,\n                                            0.1)\n\n    for weather in weathers:\n        # ...\n```\n\n\n## Example\n\nSee [test](test).\n\n```sh\n$ cd test/\n$ python3 test.py\n\n2020-03-09 23:54:38,076 DEBUG test.py:40 - test_overpass_api() : start test_overpass_api() - - - - - - - - - -\n2020-03-09 23:56:06,709 DEBUG test.py:27 - test_dump_weather() : osm_id[100090862] name[Dom St. Blasien] lat[47.7600646] lon[8.1300061] temp[280.04] pressure[1017] humidity[71]\n2020-03-09 23:56:06,709 DEBUG test.py:27 - test_dump_weather() : osm_id[474375860] name[Собор Успения Пресвятой Богородицы] lat[50.9799235] lon[39.3167911] temp[286.99] pressure[1019] humidity[66]\n2020-03-09 23:56:06,709 DEBUG test.py:27 - test_dump_weather() : osm_id[592838468] name[N/A] lat[4.8092301] lon[-74.3537103] temp[289.15] pressure[1030] humidity[67]\n\n...\n\n2020-03-08 18:01:15,056 DEBUG test.py:92 - test_overpass_file() : start test_overpass_file() - - - - - - - - - -\n2020-03-09 23:57:14,733 DEBUG test.py:27 - test_dump_weather() : osm_id[100090862] name[Dom St. Blasien] lat[47.7600646] lon[8.1300061] temp[280.04] pressure[1017] humidity[71]\n2020-03-09 23:57:14,733 DEBUG test.py:27 - test_dump_weather() : osm_id[262567942] name[Catedral Primada de Bogotá] lat[4.5978998] lon[-74.0751863] temp[289.15] pressure[1030] humidity[67]\n2020-03-09 23:57:14,733 DEBUG test.py:27 - test_dump_weather() : osm_id[474375860] name[Собор Успения Пресвятой Богородицы] lat[50.9799235] lon[39.3167911] temp[286.99] pressure[1019] humidity[66]\n\n...\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaisuke-t-jp%2Foverpass_weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaisuke-t-jp%2Foverpass_weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaisuke-t-jp%2Foverpass_weather/lists"}