mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-10-11 20:06:18 +00:00
* temperature, relativehumidity_2m, windspeed_10m can be null * prettify pv_forecast_input_1.json (and add null value)
This commit is contained in:
committed by
GitHub
parent
09e54b9989
commit
38968a941a
@@ -34,7 +34,7 @@ class OptimizationParameters(BaseModel):
|
||||
wechselrichter: WechselrichterParameters = WechselrichterParameters()
|
||||
eauto: Optional[EAutoParameters]
|
||||
dishwasher: Optional[HomeApplianceParameters] = None
|
||||
temperature_forecast: Optional[list[float]] = Field(
|
||||
temperature_forecast: Optional[list[Optional[float]]] = Field(
|
||||
default=None,
|
||||
description="An array of floats representing the temperature forecast in degrees Celsius for different time intervals.",
|
||||
)
|
||||
|
@@ -80,9 +80,9 @@ class AkkudoktorForecastValue(BaseModel):
|
||||
power: float
|
||||
sunTilt: float
|
||||
sunAzimuth: float
|
||||
temperature: float
|
||||
relativehumidity_2m: float
|
||||
windspeed_10m: float
|
||||
temperature: Optional[float]
|
||||
relativehumidity_2m: Optional[float]
|
||||
windspeed_10m: Optional[float]
|
||||
|
||||
|
||||
class AkkudoktorForecast(BaseModel):
|
||||
@@ -109,8 +109,8 @@ def validate_pv_forecast_data(data: dict[str, Any]) -> Optional[str]:
|
||||
|
||||
|
||||
class ForecastResponse(BaseModel):
|
||||
temperature: list[float]
|
||||
pvpower: list[float]
|
||||
temperature: list[Optional[float]]
|
||||
pvpower: list[Optional[float]]
|
||||
|
||||
|
||||
class ForecastData:
|
||||
|
@@ -89,7 +89,7 @@ class VisualizationReport:
|
||||
def create_line_chart(
|
||||
self,
|
||||
start_hour: Optional[int],
|
||||
y_list: list[Union[np.ndarray, list[float]]],
|
||||
y_list: list[Union[np.ndarray, list[Optional[float]], list[float]]],
|
||||
title: str,
|
||||
xlabel: str,
|
||||
ylabel: str,
|
||||
|
Reference in New Issue
Block a user