2024-12-15 14:40:03 +01:00
|
|
|
"""Weather forecast module for weather predictions."""
|
|
|
|
|
|
|
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
|
|
from pydantic import Field
|
|
|
|
|
|
|
|
|
|
from akkudoktoreos.config.configabc import SettingsBaseModel
|
2025-01-12 05:19:37 +01:00
|
|
|
from akkudoktoreos.prediction.weatherimport import WeatherImportCommonSettings
|
2024-12-15 14:40:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class WeatherCommonSettings(SettingsBaseModel):
|
2025-01-15 00:54:45 +01:00
|
|
|
"""Weather Forecast Configuration."""
|
|
|
|
|
|
2024-12-15 14:40:03 +01:00
|
|
|
weather_provider: Optional[str] = Field(
|
2025-01-15 00:54:45 +01:00
|
|
|
default=None,
|
|
|
|
|
description="Weather provider id of provider to be used.",
|
|
|
|
|
examples=["WeatherImport"],
|
2024-12-15 14:40:03 +01:00
|
|
|
)
|
2025-01-12 05:19:37 +01:00
|
|
|
|
2025-01-15 00:54:45 +01:00
|
|
|
provider_settings: Optional[WeatherImportCommonSettings] = Field(
|
|
|
|
|
default=None, description="Provider settings", examples=[None]
|
|
|
|
|
)
|