{"id":23600233,"url":"https://github.com/dgomes/pyipma","last_synced_at":"2025-04-05T06:02:32.077Z","repository":{"id":41812231,"uuid":"134479079","full_name":"dgomes/pyipma","owner":"dgomes","description":"Python library to retrieve information from Instituto Português do Mar e Atmosfera","archived":false,"fork":false,"pushed_at":"2025-02-10T21:17:12.000Z","size":193,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T05:08:15.807Z","etag":null,"topics":["hacktoberfest","meteo","portugal","python-library"],"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/dgomes.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":"2018-05-22T21:42:02.000Z","updated_at":"2025-03-17T15:11:40.000Z","dependencies_parsed_at":"2024-06-20T00:02:17.443Z","dependency_job_id":"6e472d92-92a0-4e54-a962-3c02b7a9946b","html_url":"https://github.com/dgomes/pyipma","commit_stats":{"total_commits":108,"total_committers":7,"mean_commits":"15.428571428571429","dds":0.5648148148148149,"last_synced_commit":"70eab242aaed36ac9877dc78d4e786ea0b153900"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgomes%2Fpyipma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgomes%2Fpyipma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgomes%2Fpyipma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgomes%2Fpyipma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgomes","download_url":"https://codeload.github.com/dgomes/pyipma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294514,"owners_count":20915340,"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":["hacktoberfest","meteo","portugal","python-library"],"created_at":"2024-12-27T11:49:12.461Z","updated_at":"2025-04-05T06:02:32.046Z","avatar_url":"https://github.com/dgomes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI version](https://badge.fury.io/py/pyipma.svg)](https://badge.fury.io/py/pyipma)\n\n# pyipma\nPython library to retrieve information from [Instituto Português do Mar e Atmosfera](http://www.ipma.pt)\n\n## Requirements\n- aiohttp\n- geopy\n\n## Example\n\n```python\nimport asyncio\nimport aiohttp\n\nfrom pyipma.api import IPMA_API\nfrom pyipma.location import Location\n\nasync def main():\n    async with aiohttp.ClientSession() as session:\n        api = IPMA_API(session)\n\n        location = await Location.get(api,  40.6517, -8.6573, sea_stations=True)\n        print(\"Forecast for {}\".format(location.name))\n        print(\"Nearest station is {}\".format(location.station))\n        print(\"Nearest sea station is {}\".format(location.sea_station_name))\n\n        obs = await location.observation(api)\n        print(\"Current weather is {}\".format(obs))\n\n        forecasts = await location.forecast(api)\n        print(\"Forecast for tomorrow {}\".format(forecasts[0]))\n        \n        sea_forecast = await location.sea_forecast(api)\n        print(\"Sea forecast for today {}\".format(sea_forecast))\n\nasyncio.get_event_loop().run_until_complete(main())\n```\n\n## Changelog\n\n* 3.0.9 - Adjust forecast window for 24 hours periods\n* 3.0.8 - Adds Weather Warnings\n* 3.0.7 - Adds UV Index (@tokenize74)\n* 3.0.6 - Bug Fixes\n* 3.0.3 - Adds RCM (Fire Risk)\n* 3.0.2 - Changes to fully support Home Assistant integration\n* 3.0.0 - Backend fully rewritten, but keeping backward compatibility at interface level\n* 2.1.5 - Better logging and code formated with black\n* 2.1.0 - Sea Forecast\n* 2.0.5 - Look for previous observations when no temperature/humidity available\n* 2.0.4 - Ignore Observation stations with temperature/humidity -99\n* 2.0.3 - Searches next closest station when offline\n* 2.0.2 - Adds Station Lat/Lon\n* 2.0.1 - fixes\n* 2.0.0 - Major refactor\n* 1.2.1 - Fix pip\n* 1.2.0 - Wind direction corrected \n* 1.1.6 - Interpret -99 and unavailable\n* 1.1.5 - Cache values\n* 1.1.4 - New API\n* ...\n\n## Credits\nValues are obtained from [IPMA](http://api.ipma.pt)\n\n\n## Contributors\n@abmantis\n@joaocps\n\n## Copyright\n\n(C) 2018,2019,2020 Diogo Gomes \u003cdiogogomes@gmail.com\u003e \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgomes%2Fpyipma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgomes%2Fpyipma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgomes%2Fpyipma/lists"}