mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-09-13 07:21:16 +00:00
EOSdash: Improve PV forecast configuration. (#500)
* Allow to configure planes and configuration values of planes separatedly. Make single configuration values for planes explicitly available for configuration. Still allows to also configure a plane by a whole plane value struct. * Enhance admin page by file import and export of the EOS configuration The actual EOS configuration can now be exported to the EOSdash server. From there it can be also imported. For security reasons only import and export from/ to a predefined directory on the EOSdash server is possible. * Improve handling of nested value pathes in pydantic models. Added separate methods for nested path access (get_nested_value, set_nested_value). On value setting the missing fields along the nested path are now added automatically and initialized with default values. Nested path access was before restricted to the EOS configuration and is now part of the pydantic base model. * Makefile Add new target to run rests as CI does on Github. Improve target docs. * Datetimeutil tests Prolong acceptable time difference for comparison of approximately equal times in tests. Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
33
openapi.json
33
openapi.json
@@ -209,6 +209,7 @@
|
||||
"pvforecast": {
|
||||
"$ref": "#/components/schemas/PVForecastCommonSettings-Output",
|
||||
"default": {
|
||||
"max_planes": 0,
|
||||
"planes_azimuth": [],
|
||||
"planes_inverter_paco": [],
|
||||
"planes_peakpower": [],
|
||||
@@ -1553,6 +1554,20 @@
|
||||
"PVForecastCommonSettings-Input": {
|
||||
"description": "PV Forecast Configuration.",
|
||||
"properties": {
|
||||
"max_planes": {
|
||||
"anyOf": [
|
||||
{
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"default": 0,
|
||||
"description": "Maximum number of planes that can be set",
|
||||
"title": "Max Planes"
|
||||
},
|
||||
"planes": {
|
||||
"anyOf": [
|
||||
{
|
||||
@@ -1646,6 +1661,20 @@
|
||||
"PVForecastCommonSettings-Output": {
|
||||
"description": "PV Forecast Configuration.",
|
||||
"properties": {
|
||||
"max_planes": {
|
||||
"anyOf": [
|
||||
{
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"default": 0,
|
||||
"description": "Maximum number of planes that can be set",
|
||||
"title": "Max Planes"
|
||||
},
|
||||
"planes": {
|
||||
"anyOf": [
|
||||
{
|
||||
@@ -1864,7 +1893,7 @@
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "AC power rating of the inverter. [W]",
|
||||
"description": "AC power rating of the inverter [W].",
|
||||
"examples": [
|
||||
6000,
|
||||
4000
|
||||
@@ -2012,6 +2041,7 @@
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"default": 180.0,
|
||||
"description": "Orientation (azimuth angle) of the (fixed) plane. Clockwise from north (north=0, east=90, south=180, west=270).",
|
||||
"examples": [
|
||||
10.0,
|
||||
@@ -2028,6 +2058,7 @@
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"default": 30.0,
|
||||
"description": "Tilt angle from horizontal plane. Ignored for two-axis tracking.",
|
||||
"examples": [
|
||||
10.0,
|
||||
|
Reference in New Issue
Block a user