.. _everest_api_display_message_API: ##################### display\_message\_API ##################### .. container:: everest-api overview .. raw:: html
.. container:: lead EVerest API definition for display messages API for EVerest api clients implementing display message. .. raw:: htmlSpecification: display_message_API.yaml · pionix:de:everest:display_message_API
default mqtt
default local MQTT
localhost:1883everest_api/1/display_message/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
replyTo address from the request's headers.
Answers receive_request_set_display_message.application/jsonMessage send_reply_set_display_message
Reply to a request to set a display message
Payload
Response to the set display message request.
Example
{
"status": "Accepted",
"status_info": "string"
}
replyTo address from the request's headers.
Answers receive_request_get_display_message.application/jsonMessage send_reply_get_display_message
Reply to a request to get a display message
Payload
Response on the 'get display message' request. Will return the requested display messages.
Example
{
"status_info": "string",
"messages": [
{
"id": 0,
"priority": "AlwaysFront",
"state": "Charging",
"timestamp_from": "2019-08-24T14:15:22Z",
"timestamp_to": "2019-08-24T14:15:22Z",
"session_id": "string",
"message": {
"format": "ASCII",
"language": "string",
"content": "string"
},
"qr_code": "string"
}
]
}
replyTo address from the request's headers.
Answers receive_request_clear_display_message.application/jsonMessage send_reply_clear_display_message
Reply to a request to clear a display message
Payload
Response on the clear display message request.
Example
{
"status": "Accepted",
"status_info": "string"
}
everest_api/1/display_message/{module_id}/m2e/communication_checkapplication/jsonMessage send_communication_check
Signal to EVerest that communication is good or check shall be stopped
Payload
Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.
Example
true
everest_api/1/display_message/{module_id}/e2m/set_display_message$message.header#/replyTo as send_reply_set_display_message.application/jsonMessage receive_request_set_display_message
Request to set a display message
Payload
Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.
Request to set a list of display messages.
Example
{
"headers": {
"replyTo": "string"
},
"payload": [
{
"message": {
"content": "string"
}
}
]
}
everest_api/1/display_message/{module_id}/e2m/get_display_message$message.header#/replyTo as send_reply_get_display_message.application/jsonMessage receive_request_get_display_message
Request to get a display message
Payload
Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.
Request display messages. The properties are filtered. If the properties are omitted, there will be no filter applied (if all properties are omitted, all stored display messages will be returned).
Example
{
"headers": {
"replyTo": "string"
},
"payload": {
"id": [
0
],
"priority": "AlwaysFront",
"state": "Charging"
}
}
everest_api/1/display_message/{module_id}/e2m/clear_display_message$message.header#/replyTo as send_reply_clear_display_message.application/jsonMessage receive_request_clear_display_message
Request to clear a display message
Payload
Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.
Request to remove a specific display message.
Example
{
"headers": {
"replyTo": "string"
},
"payload": {
"id": 0
}
}
everest_api/1/display_message/{module_id}/e2m/heartbeatapplication/jsonMessage receive_heartbeat
Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration
Payload
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Example
42
Request to remove a specific display message.
Additional properties allowed.
Id of display message that should be removed from the charging station
Response on the clear display message request.
Additional properties allowed.
Response on a clear display message request
AcceptedUnknownResponse on a clear display message request
AcceptedUnknownMessage to show on a display
Additional properties allowed.
The message id
Priority of the message. For OCPP 2.0.1, this is a required property. But as we also use this interface outside of ocpp, for other messages it is not required and if priority is not given, we assume it is the lowest priority, 'NormalCycle'. When priority is 'AlwaysFront' and there already is a message with priority 'AlwaysFront', the last received message shall replace the already existing message.
AlwaysFrontInFrontNormalCycleDuring what state should this message be shown. When omitted, this message should be shown in any state of the Charging Station
ChargingFaultedIdleUnavailableSuspendingDischargingFrom what date-time should this message be shown, in RFC3339 format. If omitted: directly.
Until what date-time should this message be shown, in RFC3339 format. After this date/time this message SHALL be removed. If omitted, message can be shown 'forever' (until it is specifically removed).
To which user / during which session shall this message be shown. User can be identified by id token (when the session did not start yet), session id or transaction id. identifier_type will hold the type of identifier_id (default session id). Message SHALL be removed by the Charging Station after session has ended. If omitted, message is not tight to a session.
The type of 'identifier_id'. If omitted, type will be session id.
IdTokenSessionIdTransactionIdQR Code to scan for more information.
Response on a display message request
AcceptedNotSupportedMessageFormatRejectedNotSupportedPriorityNotSupportedStateUnknownTransactionThe identifier type
IdTokenSessionIdTransactionIdContains message details
Additional properties allowed.
Format of the message to be displayed
ASCIIHTMLURIUTF8QRCODEPriority of the message. AlwaysFront is the highest priority: The Charging Station SHALL show this message at the configured moment, regardless of other installed messages. Hence, it shall not cycle it with other messages and the Charging Station’s own message shall not override this message. When a newer message with this MessagePriority is received, this message is replaced. InFront: The Charging Station SHALL show this message at the configured moment, regardless of the normal cycle of messages. If there are multiple InFront message that must be shown at the same time, they must be cycled. NormalCycle: Show this message in the cycle of messages.
AlwaysFrontInFrontNormalCycleDuring what state the message should be shown
ChargingFaultedIdleUnavailableSuspendingDischargingRequest display messages. The properties are filtered. If the properties are omitted, there will be no filter applied (if all properties are omitted, all stored display messages will be returned).
Additional properties allowed.
If provided the Charging Station shall return Display Messages of the given ids.
If provided the Charging Station shall return Display Messages with the given priority only.
AlwaysFrontInFrontNormalCycleIf provided the Charging Station shall return Display Messages with the given state only.
ChargingFaultedIdleUnavailableSuspendingDischargingResponse on the 'get display message' request. Will return the requested display messages.
Additional properties allowed.
Detailed status information
Requested messages, if any
Request to set a list of display messages.
Response to the set display message request.
Additional properties allowed.
Whether the charging station is able to display the message
AcceptedNotSupportedMessageFormatRejectedNotSupportedPriorityNotSupportedStateUnknownTransactionDetailed status information
Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached