mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-02-28 20:06:19 +00:00
Some checks failed
Bump Version / Bump Version Workflow (push) Has been cancelled
docker-build / platform-excludes (push) Has been cancelled
docker-build / build (push) Has been cancelled
docker-build / merge (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled
Adapt uvicorn log level to allowed levels. Ensure that EOSdash is started after EOS configuration is available. Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
3.2 KiB
3.2 KiB
Weather Forecast Configuration
:::{table} weather :widths: 10 20 10 5 5 30 :align: left
| Name | Environment Variable | Type | Read-Only | Default | Description |
|---|---|---|---|---|---|
| provider | EOS_WEATHER__PROVIDER |
Optional[str] |
rw |
None |
Weather provider id of provider to be used. |
| provider_settings | EOS_WEATHER__PROVIDER_SETTINGS |
WeatherCommonProviderSettings |
rw |
required |
Provider settings |
| providers | list[str] |
ro |
N/A |
Available weather provider ids. | |
| ::: |
Example Input
{
"weather": {
"provider": "WeatherImport",
"provider_settings": {
"WeatherImport": null
}
}
}
Example Output
{
"weather": {
"provider": "WeatherImport",
"provider_settings": {
"WeatherImport": null
},
"providers": [
"BrightSky",
"ClearOutside",
"WeatherImport"
]
}
}
Common settings for weather data import from file or JSON string
:::{table} weather::provider_settings::WeatherImport :widths: 10 10 5 5 30 :align: left
| Name | Type | Read-Only | Default | Description |
|---|---|---|---|---|
| import_file_path | Union[str, pathlib.Path, NoneType] |
rw |
None |
Path to the file to import weather data from. |
| import_json | Optional[str] |
rw |
None |
JSON string, dictionary of weather forecast value lists. |
| ::: |
Example Input/Output
{
"weather": {
"provider_settings": {
"WeatherImport": {
"import_file_path": null,
"import_json": "{\"weather_temp_air\": [18.3, 17.8, 16.9]}"
}
}
}
}
Weather Forecast Provider Configuration
:::{table} weather::provider_settings :widths: 10 10 5 5 30 :align: left
| Name | Type | Read-Only | Default | Description |
|---|---|---|---|---|
| WeatherImport | Optional[akkudoktoreos.prediction.weatherimport.WeatherImportCommonSettings] |
rw |
None |
WeatherImport settings |
| ::: |
Example Input/Output
{
"weather": {
"provider_settings": {
"WeatherImport": null
}
}
}