Class QueryHistoricTimeseriesExportXlsxResponse
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.JsonrpcResponse
io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
io.openems.common.jsonrpc.response.Base64PayloadResponse
io.openems.common.jsonrpc.response.QueryHistoricTimeseriesExportXlsxResponse
Represents a JSON-RPC Response for 'queryHistoricTimeseriesExportXlxs'.
{ "jsonrpc": "2.0", "id": "UUID", "result": { "payload": Base64-String } }
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
protected static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Set<ChannelAddress>
All Energy Channels, i.e.static Set<ChannelAddress>
All Power Channels, i.e.Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
ConstructorsConstructorDescriptionQueryHistoricTimeseriesExportXlsxResponse
(UUID id, String edgeId, ZonedDateTime fromDate, ZonedDateTime toDate, SortedMap<ZonedDateTime, SortedMap<ChannelAddress, com.google.gson.JsonElement>> historicData, SortedMap<ChannelAddress, com.google.gson.JsonElement> historicEnergy, Language language) Constructs aQueryHistoricTimeseriesExportXlsxResponse
. -
Method Summary
Methods inherited from class io.openems.common.jsonrpc.response.Base64PayloadResponse
getPayload, getResult
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
from, toJsonObject
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponse
from, getId
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
toString
-
Field Details
-
POWER_CHANNELS
All Power Channels, i.e. Channels that are exported per channel and timestamp. -
ENERGY_CHANNELS
All Energy Channels, i.e. exported with one value per channel.
-
-
Constructor Details
-
QueryHistoricTimeseriesExportXlsxResponse
public QueryHistoricTimeseriesExportXlsxResponse(UUID id, String edgeId, ZonedDateTime fromDate, ZonedDateTime toDate, SortedMap<ZonedDateTime, SortedMap<ChannelAddress, throws IOException, OpenemsError.OpenemsNamedExceptioncom.google.gson.JsonElement>> historicData, SortedMap<ChannelAddress, com.google.gson.JsonElement> historicEnergy, Language language) Constructs aQueryHistoricTimeseriesExportXlsxResponse
.While constructing, the actual Excel file is generated as payload of the JSON-RPC Response.
- Parameters:
id
- the JSON-RPC IDedgeId
- the Edge-IDfromDate
- the start date of the exporttoDate
- the end date of the exporthistoricData
- the power data per channel and timestamphistoricEnergy
- the energy data, one value per channellanguage
- theLanguage
- Throws:
IOException
- on errorOpenemsError.OpenemsNamedException
- on error
-