mirror of
				https://github.com/Akkudoktor-EOS/EOS.git
				synced 2025-10-30 22:36:21 +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:
		| @@ -32,7 +32,7 @@ class OptimizationParameters(BaseModel): | ||||
|     inverter: InverterParameters = InverterParameters() | ||||
|     eauto: Optional[ElectricVehicleParameters] | ||||
|     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.", | ||||
|     ) | ||||
|   | ||||
| @@ -109,9 +109,9 @@ class AkkudoktorForecastValue(PydanticBaseModel): | ||||
|     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(PydanticBaseModel): | ||||
|   | ||||
| @@ -407,7 +407,7 @@ def fastapi_gesamtlast_simple(year_energy: float) -> list[float]: | ||||
|  | ||||
|  | ||||
| class ForecastResponse(PydanticBaseModel): | ||||
|     temperature: list[float] | ||||
|     temperature: list[Optional[float]] | ||||
|     pvpower: list[float] | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -88,7 +88,7 @@ class VisualizationReport(ConfigMixin): | ||||
|     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