pvforecast: Some values optional. Closes #292 (#293)
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled

* temperature, relativehumidity_2m, windspeed_10m can be null
 * prettify pv_forecast_input_1.json (and add null value)
This commit is contained in:
Dominique Lasserre
2024-12-29 16:43:37 +01:00
committed by GitHub
parent 09e54b9989
commit 38968a941a
6 changed files with 11726 additions and 22 deletions

View File

@@ -307,7 +307,9 @@
}
},
"type": "object",
"required": ["kapazitaet_wh"],
"required": [
"kapazitaet_wh"
],
"title": "EAutoParameters"
},
"EAutoResult": {
@@ -439,21 +441,38 @@
"properties": {
"temperature": {
"items": {
"type": "number"
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"type": "array",
"title": "Temperature"
},
"pvpower": {
"items": {
"type": "number"
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"type": "array",
"title": "Pvpower"
}
},
"type": "object",
"required": ["temperature", "pvpower"],
"required": [
"temperature",
"pvpower"
],
"title": "ForecastResponse"
},
"GesamtlastRequest": {
@@ -475,7 +494,11 @@
}
},
"type": "object",
"required": ["year_energy", "measured_data", "hours"],
"required": [
"year_energy",
"measured_data",
"hours"
],
"title": "GesamtlastRequest"
},
"HTTPValidationError": {
@@ -507,7 +530,10 @@
}
},
"type": "object",
"required": ["consumption_wh", "duration_h"],
"required": [
"consumption_wh",
"duration_h"
],
"title": "HomeApplianceParameters"
},
"OptimizationParameters": {
@@ -548,7 +574,14 @@
"anyOf": [
{
"items": {
"type": "number"
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"type": "array"
},
@@ -576,7 +609,11 @@
}
},
"type": "object",
"required": ["ems", "pv_akku", "eauto"],
"required": [
"ems",
"pv_akku",
"eauto"
],
"title": "OptimizationParameters"
},
"OptimizeResponse": {
@@ -735,7 +772,9 @@
}
},
"type": "object",
"required": ["kapazitaet_wh"],
"required": [
"kapazitaet_wh"
],
"title": "PVAkkuParameters"
},
"SimulationResult": {
@@ -957,7 +996,11 @@
}
},
"type": "object",
"required": ["loc", "msg", "type"],
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
},
"WechselrichterParameters": {
@@ -974,4 +1017,4 @@
}
}
}
}
}