display_message_API¶
EVerest API definition for display messages
API for EVerest api clients implementing display message.
Specification: display_message_API.yaml · pionix:de:everest:display_message_API
Servers¶
default mqtt
default local MQTT
- Host
localhost:1883- Topic prefix
everest_api/1/display_message/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
Operations¶
Client to EVerest¶
send_reply_set_display_message¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers receive_request_set_display_message.
Message Reply set display message application/json
Message send_reply_set_display_message
Reply to a request to set a display message
Payload
object SetDisplayMessageResponse
Response to the set display message request.
Example
{
"status": "Accepted",
"status_info": "string"
}
send_reply_get_display_message¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers receive_request_get_display_message.
Message Reply get display message application/json
Message send_reply_get_display_message
Reply to a request to get a display message
Payload
object GetDisplayMessageResponse
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"
}
]
}
send_reply_clear_display_message¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers receive_request_clear_display_message.
Message Reply clear display message application/json
Message send_reply_clear_display_message
Reply to a request to clear a display message
Payload
object ClearDisplayMessageResponse
Response on the clear display message request.
Example
{
"status": "Accepted",
"status_info": "string"
}
send_communication_check¶
- Topic
everest_api/1/display_message/{module_id}/m2e/communication_check
Message Send communication check application/json
Message 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 to client¶
receive_request_set_display_message¶
- Topic
everest_api/1/display_message/{module_id}/e2m/set_display_message- Reply
- Sent to
$message.header#/replyToas send_reply_set_display_message.
Direction: EVerest to Module
Message Request set display message application/json
Message receive_request_set_display_message
Request to set a display message
Payload
-
headersobject required
-
replyTostring required
Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.
-
-
payloadarray<object> requiredSetDisplayMessageRequest
Request to set a list of display messages.
Example
{
"headers": {
"replyTo": "string"
},
"payload": [
{
"message": {
"content": "string"
}
}
]
}
receive_request_get_display_message¶
- Topic
everest_api/1/display_message/{module_id}/e2m/get_display_message- Reply
- Sent to
$message.header#/replyToas send_reply_get_display_message.
Direction: EVerest to Module
Message Request get display message application/json
Message receive_request_get_display_message
Request to get a display message
Payload
-
headersobject required
-
replyTostring required
Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.
-
-
payloadobject requiredGetDisplayMessageRequest
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"
}
}
receive_request_clear_display_message¶
- Topic
everest_api/1/display_message/{module_id}/e2m/clear_display_message- Reply
- Sent to
$message.header#/replyToas send_reply_clear_display_message.
Direction: EVerest to Module
Message Request clear display message application/json
Message receive_request_clear_display_message
Request to clear a display message
Payload
-
headersobject required
-
replyTostring required
Address to send the response to. If this information is missing, the command will still be accepted, but no response will be sent.
-
-
payloadobject requiredClearDisplayMessageRequest
Request to remove a specific display message.
Example
{
"headers": {
"replyTo": "string"
},
"payload": {
"id": 0
}
}
receive_heartbeat¶
- Topic
everest_api/1/display_message/{module_id}/e2m/heartbeat
Message Receive heartbeat application/json
Message 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
Messages¶
Schemas¶
ClearDisplayMessageRequest object¶
Request to remove a specific display message.
Additional properties allowed.
-
idinteger required
Id of display message that should be removed from the charging station
ClearDisplayMessageResponse object¶
Response on the clear display message request.
Additional properties allowed.
-
Response on a clear display message request
enumAcceptedUnknown -
status_infostring
ClearMessageResponseEnum string¶
Response on a clear display message request
AcceptedUnknownDisplayMessage object¶
Message to show on a display
Additional properties allowed.
-
idinteger
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.
enumAlwaysFrontInFrontNormalCycle -
During what state should this message be shown. When omitted, this message should be shown in any state of the Charging Station
enumChargingFaultedIdleUnavailableSuspendingDischarging -
timestamp_fromstring
From what date-time should this message be shown, in RFC3339 format. If omitted: directly.
format date-time -
timestamp_tostring
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).
format date-time -
identifier_idstring
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.
min length 0max length 36 -
The type of 'identifier_id'. If omitted, type will be session id.
enumIdTokenSessionIdTransactionId -
qr_codestring
QR Code to scan for more information.
DisplayMessageStatusEnum string¶
Response on a display message request
AcceptedNotSupportedMessageFormatRejectedNotSupportedPriorityNotSupportedStateUnknownTransactionIdentifierType string¶
The identifier type
IdTokenSessionIdTransactionIdMessageContent object¶
Contains message details
Additional properties allowed.
-
languagestring
-
contentstring required
MessageFormat string¶
Format of the message to be displayed
ASCIIHTMLURIUTF8QRCODEMessagePriorityEnum string¶
Priority 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.
AlwaysFrontInFrontNormalCycleMessageStateEnum string¶
During what state the message should be shown
ChargingFaultedIdleUnavailableSuspendingDischargingGetDisplayMessageRequest object¶
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).
Additional properties allowed.
-
idarray<integer>
If provided the Charging Station shall return Display Messages of the given ids.
-
itemsinteger
-
-
If provided the Charging Station shall return Display Messages with the given priority only.
enumAlwaysFrontInFrontNormalCycle -
If provided the Charging Station shall return Display Messages with the given state only.
enumChargingFaultedIdleUnavailableSuspendingDischarging
GetDisplayMessageResponse object¶
Response on the 'get display message' request. Will return the requested display messages.
Additional properties allowed.
-
status_infostring
Detailed status information
-
messagesarray<object>
Requested messages, if any
SetDisplayMessageRequest array<object>¶
Request to set a list of display messages.
SetDisplayMessageResponse object¶
Response to the set display message request.
Additional properties allowed.
-
Whether the charging station is able to display the message
enumAcceptedNotSupportedMessageFormatRejectedNotSupportedPriorityNotSupportedStateUnknownTransaction -
status_infostring
Detailed status information
CommunicationCheck boolean¶
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.
HeartBeatId integer¶
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached