{"id":21769927,"url":"https://github.com/mideind/iceweather","last_synced_at":"2025-10-07T20:57:17.123Z","repository":{"id":48659545,"uuid":"207616908","full_name":"mideind/Iceweather","owner":"mideind","description":"Python package for obtaining Icelandic weather information and forecasts","archived":false,"fork":false,"pushed_at":"2023-10-31T11:02:58.000Z","size":66,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T18:57:54.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mideind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-10T17:04:28.000Z","updated_at":"2024-09-03T22:41:08.000Z","dependencies_parsed_at":"2023-02-08T13:00:25.735Z","dependency_job_id":null,"html_url":"https://github.com/mideind/Iceweather","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mideind%2FIceweather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mideind%2FIceweather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mideind%2FIceweather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mideind%2FIceweather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mideind","download_url":"https://codeload.github.com/mideind/Iceweather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248743773,"owners_count":21154738,"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-11-26T14:10:38.941Z","updated_at":"2025-10-07T20:57:12.052Z","avatar_url":"https://github.com/mideind.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iceweather\n\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/)\n[![Release](https://shields.io/github/v/release/mideind/iceweather?display_name=tag)]()\n[![PyPI](https://img.shields.io/pypi/v/iceweather)]()\n[![Build](https://github.com/mideind/iceweather/actions/workflows/python-package.yml/badge.svg)]()\n\n`ìceweather` is a Python 3.7+ package for obtaining Icelandic weather information and forecasts from\nthe [Icelandic Met Office](https://en.vedur.is/) (*Veðurstofan*). Uses the xmlweather API ([documentation in Icelandic](https://vedur.is/um-vi/vefurinn/xml/)).\n\n## Installation\n\n```sh\npip install iceweather\n```\n\n## Examples\n\n### Observations\n\nGet latest weather observations from the nearest weather station:\n\n```python\n\u003e\u003e\u003e r = observation_for_closest(64.133097, -21.898145)\n\u003e\u003e\u003e pprint(r)\n{'results': [{'D': 'SSV',\n              'F': '3',\n              'FG': '7',\n              'FX': '4',\n              'N': '',\n              'P': '1001',\n              'R': '0.2',\n              'RH': '75',\n              'RTE': '',\n              'SED': '',\n              'SNC': '',\n              'SND': '',\n              'T': '9.3',\n              'TD': '5.1',\n              'V': '',\n              'W': '',\n              'err': '',\n              'id': '1',\n              'link': 'http://www.vedur.is/vedur/athuganir/kort/hofudborgarsvaedid/#group=100\u0026station=1',\n              'name': 'Reykjavík',\n              'time': '2019-09-12 13:00:00',\n              'valid': '1'}]}\n```\n\nKeys are the following:\n\n| Key   |                                   |\n| ----- |-----------------------------------|\n| F     | Wind speed (m/s)                  |\n| FX    | Top wind speed (m/s)              |\n| FG    | Top wind gust (m/s)               |\n| D     | Wind direction                    |\n| T     | Air temperature (°C)              |\n| W     | Weather description               |\n| V     | Visibility (km)                   |\n| N     | Cloud cover (%)                   |\n| P     | Air pressure                      |\n| RH    | Humidity (%)                      |\n| SNC   | Snow description                  |\n| SND   | Snow depth                        |\n| SED   | Snow type                         |\n| RTE   | Road temperature (°C)             |\n| TD    | Dew limit (°C)                    |\n| R     | Cumulative precipitation (mm/h)   |\n\n```python\n\u003e\u003e\u003e observation_for_station(1) # Reykjavík\n...\n```\n\nSee stations.py for a list of all weather stations in Iceland and their unique IDs.\n\n### Forecasts\n\n```python\nforecast_for_closest(64.133097, -21.898145)\n...\nforecast_for_station(1) # Reykjavík\n```\n\n### Human-readable weather descriptions\n\nRequest a descriptive text from the weather API:\n\n```python\n# Human-readable Icelandic-language weather forecast for Iceland's Capital Region\n\u003e\u003e\u003e forecast_text(3)\n{'results': [{'content': 'Suðvestan 5-10 m/s í dag en 8-13 á morgun. Skúrir og hiti 5 til 10 stig.',\n              'creation': '2019-09-12 10:20:32',\n              'id': '3',\n              'title': 'Veðurhorfur á höfuðborgarsvæðinu',\n              'valid_from': '2019-09-12 12:00:00',\n              'valid_to': '2019-09-14 00:00:00'}]}\n```\n\n```text\nText types:\n\n    \"2\" = \"Veðurhorfur á landinu\"\n    \"3\" = \"Veðurhorfur á höfuðborgarsvæðinu\"\n    \"5\" = \"Veðurhorfur á landinu næstu daga\"\n    \"6\" = \"Veðurhorfur á landinu næstu daga\"\n    \"7\" = \"Weather outlook\"\n    \"9\" = \"Veðuryfirlit\"\n    \"10\" = \"Veðurlýsing\"\n    \"11\" = \"Íslenskar viðvaranir fyrir land\"\n    \"12\" = \"Veðurhorfur á landinu\"\n    \"14\" = \"Enskar viðvaranir fyrir land\"\n    \"27\" = \"Weather forecast for the next several days\"\n    \"30\" = \"Miðhálendið\"\n    \"31\" = \"Suðurland\"\n    \"32\" = \"Faxaflói\"\n    \"33\" = \"Breiðafjörður\"\n    \"34\" = \"Vestfirðir\"\n    \"35\" = \"Strandir og Norðurland vestra\"\n    \"36\" = \"Norðurlandi eystra\"\n    \"37\" = \"Austurland að Glettingi\"\n    \"38\" = \"Austfirðir\"\n    \"39\" = \"Suðausturland\"\n    \"42\" = \"General synopsis\n```\n\nAll functions accept the `lang` keyword parameter. Supported languages are `is` and `en` for Icelandic or English results, respectively.\n\n## Version History\n\n* 0.2.3 - `*_for_closest` functions now fall back on other close stations if first fails (2023-01-09)\n* 0.2.1 - Updated weather station data. Now requires Python 3.7+ (2022-12-14)\n* 0.2.0 - Now uses the Icelandic Met Office's XML API directly instead apis.is (2021-07-15)\n* 0.1.1 - Fall back on other close weather stations for if err in result from closest station\n* 0.1.0 - Initial release (2019-09-12)\n\n## BSD License\n\nCopyright (C) 2019-2023 Miðeind ehf.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\nlist of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this\nlist of conditions and the following disclaimer in the documentation and/or other\nmaterials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may\nbe used to endorse or promote products derived from this software without specific\nprior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\nINDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\nNOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\nWHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmideind%2Ficeweather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmideind%2Ficeweather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmideind%2Ficeweather/lists"}