{"id":14985321,"url":"https://github.com/mawinkler/pyastroweatherio","last_synced_at":"2025-04-10T23:51:38.092Z","repository":{"id":43074286,"uuid":"334082010","full_name":"mawinkler/pyastroweatherio","owner":"mawinkler","description":"Wrapper for the 7timer and met.no API designed to work with Home Assistant","archived":false,"fork":false,"pushed_at":"2024-04-22T11:01:43.000Z","size":161,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-22T12:02:19.270Z","etag":null,"topics":["7timer","astronomy","forecast","homeassistant","homeassistant-integration","uptonight"],"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/mawinkler.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}},"created_at":"2021-01-29T08:25:54.000Z","updated_at":"2024-04-23T21:01:11.080Z","dependencies_parsed_at":"2024-02-08T20:23:36.736Z","dependency_job_id":"0e5cf92b-182c-43d0-9c0c-2808391444d9","html_url":"https://github.com/mawinkler/pyastroweatherio","commit_stats":{"total_commits":39,"total_committers":2,"mean_commits":19.5,"dds":0.3589743589743589,"last_synced_commit":"34a93ee5fe2e0bfe1acef0feb1895f5bf735fd5f"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawinkler%2Fpyastroweatherio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawinkler%2Fpyastroweatherio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawinkler%2Fpyastroweatherio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mawinkler%2Fpyastroweatherio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mawinkler","download_url":"https://codeload.github.com/mawinkler/pyastroweatherio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317706,"owners_count":21083528,"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":["7timer","astronomy","forecast","homeassistant","homeassistant-integration","uptonight"],"created_at":"2024-09-24T14:10:42.408Z","updated_at":"2025-04-10T23:51:38.087Z","avatar_url":"https://github.com/mawinkler.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyAstroWeatherIO\n\nWrapper for the ***MET Norway Weather***, ***7Timer***, and ***Open-Meteo*** RESTful APIs. Designed to work with Home Assistant and the custom [AstroWeather](https://github.com/mawinkler/astroweather) integration.\n\nIn addition to the weather data, some calculations for the astronomical twilight and Moon setting, rising and phase are implemented. They indicate the darkness you can expect the upcoming night.\n\nA new addition is an experimental mode that attempts to approximate the calculation of the lifted index, seeing atmospheric transparency, and ground fog density.\n\n## Functions\n\nThe module exposes the following function:\n\n```python\nastroweather = AstroWeather(\n    session,\n    latitude,\n    longitude,\n    elevation,\n    timezone_info,\n    cloudcover_weight,\n    cloudcover_high_weakening,\n    cloudcover_medium_weakening,\n    cloudcover_low_weakening,\n    fog_weight,\n    seeing_weight,\n    transparency_weight,\n    calm_weight,\n    uptonight_path,\n    experimental_features,\n    forecast_model=\"icon_seamless\",\n)\n\nastroweather.get_location_data\n\nastroweather.get_hourly_forecast\n```\n\nThis will return a handle to the AstroWeather class and open the connection.\n\n## Setup\n\n```sh\npip3 install .\n```\n\n## Build\n\n```sh\npython3 -m venv venv \u0026\u0026 source venv/bin/activate\npip install -r requirements.txt\n\npython3 setup.py sdist\ntwine upload dist/*\n```\n\n## Test\n\n```sh\npython -m unittest -v tests/client.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmawinkler%2Fpyastroweatherio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmawinkler%2Fpyastroweatherio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmawinkler%2Fpyastroweatherio/lists"}