API: publish forecast as arrays with unix timestamps (BC) (#32391)
This commit is contained in:
parent
9d0bc5a865
commit
45e781dac0
35 changed files with 361 additions and 223 deletions
50
server/mcp/openapi.json
generated
50
server/mcp/openapi.json
generated
|
|
@ -3320,29 +3320,13 @@
|
|||
]
|
||||
},
|
||||
"ForecastSlot": {
|
||||
"description": "A forecast value for a time slot.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"start": {
|
||||
"description": "Start of the time slot.",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"end": {
|
||||
"description": "End of the time slot.",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"value": {
|
||||
"description": "Forecast value of the time slot. Unit depends on the forecast type.",
|
||||
"type": "number"
|
||||
}
|
||||
"description": "A forecast time slot as [start, end, value] array. Start and end are unix seconds. Value unit depends on the forecast type.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number"
|
||||
},
|
||||
"required": [
|
||||
"start",
|
||||
"end",
|
||||
"value"
|
||||
]
|
||||
"minItems": 3,
|
||||
"maxItems": 3
|
||||
},
|
||||
"EnergyByDay": {
|
||||
"description": "Expected solar production energy of a day.",
|
||||
|
|
@ -3363,23 +3347,13 @@
|
|||
]
|
||||
},
|
||||
"TimeseriesEntry": {
|
||||
"description": "A forecast value at a point in time.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"val": {
|
||||
"description": "Forecast power in W.",
|
||||
"type": "number"
|
||||
},
|
||||
"ts": {
|
||||
"description": "Time of the forecast value.",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
"description": "A forecast value at a point in time as [ts, val] array. ts is unix seconds, val is power in W.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number"
|
||||
},
|
||||
"required": [
|
||||
"val",
|
||||
"ts"
|
||||
]
|
||||
"minItems": 2,
|
||||
"maxItems": 2
|
||||
},
|
||||
"SolarDetails": {
|
||||
"description": "Solar production forecast.",
|
||||
|
|
|
|||
43
server/openapi.state.yaml
generated
43
server/openapi.state.yaml
generated
|
|
@ -630,24 +630,12 @@ components:
|
|||
items:
|
||||
$ref: "#/components/schemas/ForecastSlot"
|
||||
ForecastSlot:
|
||||
description: A forecast value for a time slot.
|
||||
type: object
|
||||
properties:
|
||||
start:
|
||||
description: Start of the time slot.
|
||||
type: string
|
||||
format: date-time
|
||||
end:
|
||||
description: End of the time slot.
|
||||
type: string
|
||||
format: date-time
|
||||
value:
|
||||
description: Forecast value of the time slot. Unit depends on the forecast type.
|
||||
type: number
|
||||
required:
|
||||
- start
|
||||
- end
|
||||
- value
|
||||
description: A forecast time slot as [start, end, value] array. Start and end are unix seconds. Value unit depends on the forecast type.
|
||||
type: array
|
||||
items:
|
||||
type: number
|
||||
minItems: 3
|
||||
maxItems: 3
|
||||
GenericConfigStatus:
|
||||
description: Configuration and runtime status of an integration. Structure depends on configuration.
|
||||
type: object
|
||||
|
|
@ -1767,19 +1755,12 @@ components:
|
|||
- chargedKWh
|
||||
- solarPercentage
|
||||
TimeseriesEntry:
|
||||
description: A forecast value at a point in time.
|
||||
type: object
|
||||
properties:
|
||||
val:
|
||||
description: Forecast power in W.
|
||||
type: number
|
||||
ts:
|
||||
description: Time of the forecast value.
|
||||
type: string
|
||||
format: date-time
|
||||
required:
|
||||
- val
|
||||
- ts
|
||||
description: A forecast value at a point in time as [ts, val] array. ts is unix seconds, val is power in W.
|
||||
type: array
|
||||
items:
|
||||
type: number
|
||||
minItems: 2
|
||||
maxItems: 2
|
||||
Vehicle:
|
||||
description: A configured vehicle.
|
||||
type: object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue