Traffic Signal
Changed on<b>Electricity traffic signal</b>
Returns the renewable share of load in percent from today until prediction is currently available and the corresponding traffic light.
The traffic light "signal" is indicated by the following numbers:
-1: Red (grid congestion),
0: Red (low renewable share),
1: Yellow (average renewable share),
2: Green (high renewable share)
If no data is available from the primary data providers, a best guess is made from historic data. This is indicated by "substitute" set to True.
"postal_code" is an optional input parameter, which will consider the local grid state (e.g. transmission line overload) in future implementations.
Response schema:
{
"unix_seconds": [int],
"share": [float],
"signal": [int],
"substitute": bool,
"deprecated": bool
}
Request
- Base URLhttps://api.energy-charts.info (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Response
Successful Response
Changes
- breaking
response property
share/items/list-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
signal/items/list-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - info
added the required property
to the response with the status
- breaking