{"id":23291877,"url":"https://github.com/jeeftor/weatherflow-openapi-python","last_synced_at":"2025-04-06T18:23:58.299Z","repository":{"id":214399015,"uuid":"736429876","full_name":"jeeftor/Weatherflow-OpenApi-Python","owner":"jeeftor","description":"Python client generated form OpenAPI Spec","archived":false,"fork":false,"pushed_at":"2023-12-27T22:16:32.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T00:22:31.726Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeeftor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-27T22:14:26.000Z","updated_at":"2023-12-27T22:14:40.000Z","dependencies_parsed_at":"2023-12-28T00:14:03.739Z","dependency_job_id":"1a00714d-c82a-4ab4-ae1f-310f1964a01a","html_url":"https://github.com/jeeftor/Weatherflow-OpenApi-Python","commit_stats":null,"previous_names":["jeeftor/weatherflow-openapi-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2FWeatherflow-OpenApi-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2FWeatherflow-OpenApi-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2FWeatherflow-OpenApi-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeeftor%2FWeatherflow-OpenApi-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeeftor","download_url":"https://codeload.github.com/jeeftor/Weatherflow-OpenApi-Python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247527820,"owners_count":20953313,"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-12-20T05:28:05.523Z","updated_at":"2025-04-06T18:23:58.276Z","avatar_url":"https://github.com/jeeftor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# weatherflow-openapi\nNo description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n\nThis Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:\n\n- API version: 1.0.0\n- Package version: 1.0.0\n- Build package: org.openapitools.codegen.languages.PythonClientCodegen\n\n## Requirements.\n\nPython 3.7+\n\n## Installation \u0026 Usage\n### pip install\n\nIf the python package is hosted on a repository, you can install directly using:\n\n```sh\npip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git\n```\n(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)\n\nThen import the package:\n```python\nimport weatherflow_openapi\n```\n\n### Setuptools\n\nInstall via [Setuptools](http://pypi.python.org/pypi/setuptools).\n\n```sh\npython setup.py install --user\n```\n(or `sudo python setup.py install` to install the package for all users)\n\nThen import the package:\n```python\nimport weatherflow_openapi\n```\n\n### Tests\n\nExecute `pytest` to run the tests.\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```python\n\nimport time\nimport weatherflow_openapi\nfrom weatherflow_openapi.rest import ApiException\nfrom pprint import pprint\n\n# Defining the host is optional and defaults to http://swd.weatherflow.com/swd/rest\n# See configuration.py for a list of all supported configuration parameters.\nconfiguration = weatherflow_openapi.Configuration(\n    host = \"http://swd.weatherflow.com/swd/rest\"\n)\n\n# The client must configure the authentication and authorization parameters\n# in accordance with the API server security policy.\n# Examples for each auth method are provided below, use the example that\n# satisfies your auth use case.\n\n# Configure API key authorization: swdApiKey\nconfiguration.api_key['swdApiKey'] = os.environ[\"API_KEY\"]\n\n# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed\n# configuration.api_key_prefix['swdApiKey'] = 'Bearer'\n\nconfiguration.access_token = os.environ[\"ACCESS_TOKEN\"]\n\n\n# Enter a context with an instance of the API client\nasync with weatherflow_openapi.ApiClient(configuration) as api_client:\n    # Create an instance of the API class\n    api_instance = weatherflow_openapi.ForecastApi(api_client)\n    station_id = 56 # int | The station_id to use in the current conditions response object.\n    units_temp = 'units_temp_example' # str | default = c (optional)\n    units_wind = 'units_wind_example' # str | default = mps (optional)\n    units_pressure = 'units_pressure_example' # str | default = mb (optional)\n    units_precip = 'units_precip_example' # str | default = mm (optional)\n    units_distance = 'units_distance_example' # str | default = km (optional)\n\n    try:\n        # Get Better Forecast Data\n        api_response = await api_instance.get_better_forecast(station_id, units_temp=units_temp, units_wind=units_wind, units_pressure=units_pressure, units_precip=units_precip, units_distance=units_distance)\n        print(\"The response of ForecastApi-\u003eget_better_forecast:\\n\")\n        pprint(api_response)\n    except ApiException as e:\n        print(\"Exception when calling ForecastApi-\u003eget_better_forecast: %s\\n\" % e)\n\n```\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *http://swd.weatherflow.com/swd/rest*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*ForecastApi* | [**get_better_forecast**](docs/ForecastApi.md#get_better_forecast) | **GET** /better_forecast | Get Better Forecast Data\n*ObservationsApi* | [**get_observations_by_device_id**](docs/ObservationsApi.md#get_observations_by_device_id) | **GET** /observations/device/{device_id} | Get Observations for a Single Device\n*ObservationsApi* | [**get_station_observation**](docs/ObservationsApi.md#get_station_observation) | **GET** /observations/station/{station_id} | Get the latest Station observation\n*StationsApi* | [**get_station_by_id**](docs/StationsApi.md#get_station_by_id) | **GET** /stations/{station_id} | Find a Station by station_id\n*StationsApi* | [**get_stations**](docs/StationsApi.md#get_stations) | **GET** /stations | Find all Stations for a user\n\n\n## Documentation For Models\n\n - [BetterForecast](docs/BetterForecast.md)\n - [BetterForecastCurrentConditions](docs/BetterForecastCurrentConditions.md)\n - [BetterForecastDailyForecast](docs/BetterForecastDailyForecast.md)\n - [BetterForecastForecast](docs/BetterForecastForecast.md)\n - [BetterForecastHourlyForecast](docs/BetterForecastHourlyForecast.md)\n - [BetterForecastUnits](docs/BetterForecastUnits.md)\n - [Device](docs/Device.md)\n - [DeviceMeta](docs/DeviceMeta.md)\n - [ObservationSet](docs/ObservationSet.md)\n - [Station](docs/Station.md)\n - [StationItem](docs/StationItem.md)\n - [StationMeta](docs/StationMeta.md)\n - [StationObservation](docs/StationObservation.md)\n - [StationObservationValues](docs/StationObservationValues.md)\n - [StationSet](docs/StationSet.md)\n - [StationUnits](docs/StationUnits.md)\n - [Status](docs/Status.md)\n\n\n\u003ca id=\"documentation-for-authorization\"\u003e\u003c/a\u003e\n## Documentation For Authorization\n\n\nAuthentication schemes defined for the API:\n\u003ca id=\"swdImplicit\"\u003e\u003c/a\u003e\n### swdImplicit\n\n- **Type**: OAuth\n- **Flow**: implicit\n- **Authorization URL**: https://smartweather.weatherflow.com/authorize.html\n- **Scopes**: \n - **user**: Grants read/write access to all user data.\n\n\u003ca id=\"swdApiKey\"\u003e\u003c/a\u003e\n### swdApiKey\n\n- **Type**: API key\n- **API key parameter name**: token\n- **Location**: URL query string\n\n\n## Author\n\njforare@weatherflow.com\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeeftor%2Fweatherflow-openapi-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeeftor%2Fweatherflow-openapi-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeeftor%2Fweatherflow-openapi-python/lists"}