.. _everest_api_display_message_API: ##################### display\_message\_API ##################### .. container:: everest-api overview .. raw:: html
version 1.0.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestdisplay_message
.. container:: lead EVerest API definition for display messages API for EVerest api clients implementing display message. .. raw:: html

Specification: display_message_API.yaml · pionix:de:everest:display_message_API

send the client publishes, EVerest consumes (4) receive EVerest publishes, the client consumes (4)
Servers ======= .. container:: everest-api .. raw:: html

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 ========== .. container:: everest-api .. raw:: html
Client to EVerest ----------------- .. _everest_api_display_message_API_op_send_reply_set_display_message: send\_reply\_set\_display\_message ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send reply to request set display messages
Topic
Dynamic: the replyTo address from the request's headers. Answers receive_request_set_display_message.
.. raw:: html
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.

Definition of SetDisplayMessageResponse

Example

Example 1
{
        "status": "Accepted",
        "status_info": "string"
      }
.. _everest_api_display_message_API_op_send_reply_get_display_message: send\_reply\_get\_display\_message ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send reply to request get display messages
Topic
Dynamic: the replyTo address from the request's headers. Answers receive_request_get_display_message.
.. raw:: html
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.

Definition of GetDisplayMessageResponse

Example

Example 1
{
        "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"
          }
        ]
      }
.. _everest_api_display_message_API_op_send_reply_clear_display_message: send\_reply\_clear\_display\_message ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send reply to request clear display messages
Topic
Dynamic: the replyTo address from the request's headers. Answers receive_request_clear_display_message.
.. raw:: html
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.

Definition of ClearDisplayMessageResponse

Example

Example 1
{
        "status": "Accepted",
        "status_info": "string"
      }
.. _everest_api_display_message_API_op_send_communication_check: send\_communication\_check ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op send .. raw:: html
send Send communication check
Topic
everest_api/1/display_message/{module_id}/m2e/communication_check
.. raw:: html
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

CommunicationCheck
true
EVerest to client ----------------- .. _everest_api_display_message_API_op_receive_request_set_display_message: receive\_request\_set\_display\_message ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive request set display message
Topic
everest_api/1/display_message/{module_id}/e2m/set_display_message
Reply
Sent to $message.header#/replyTo as send_reply_set_display_message.
Direction: EVerest to Module .. raw:: html
Message Request set display message application/json

Message receive_request_set_display_message

Request to set a display message

Payload

object
  • 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.

    Definition of SetDisplayMessageRequest

Example

Minimal payload generated from the schema generated
{
        "headers": {
          "replyTo": "string"
        },
        "payload": [
          {
            "message": {
              "content": "string"
            }
          }
        ]
      }
.. _everest_api_display_message_API_op_receive_request_get_display_message: receive\_request\_get\_display\_message ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive request get display message
Topic
everest_api/1/display_message/{module_id}/e2m/get_display_message
Reply
Sent to $message.header#/replyTo as send_reply_get_display_message.
Direction: EVerest to Module .. raw:: html
Message Request get display message application/json

Message receive_request_get_display_message

Request to get a display message

Payload

object
  • 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).

    Definition of GetDisplayMessageRequest

Example

Minimal payload generated from the schema generated
{
        "headers": {
          "replyTo": "string"
        },
        "payload": {
          "id": [
            0
          ],
          "priority": "AlwaysFront",
          "state": "Charging"
        }
      }
.. _everest_api_display_message_API_op_receive_request_clear_display_message: receive\_request\_clear\_display\_message ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive request clear display message
Topic
everest_api/1/display_message/{module_id}/e2m/clear_display_message
Reply
Sent to $message.header#/replyTo as send_reply_clear_display_message.
Direction: EVerest to Module .. raw:: html
Message Request clear display message application/json

Message receive_request_clear_display_message

Request to clear a display message

Payload

object

Example

Minimal payload generated from the schema generated
{
        "headers": {
          "replyTo": "string"
        },
        "payload": {
          "id": 0
        }
      }
.. _everest_api_display_message_API_op_receive_heartbeat: receive\_heartbeat ~~~~~~~~~~~~~~~~~~ .. container:: everest-api op receive .. raw:: html
receive Receive heartbeat
Topic
everest_api/1/display_message/{module_id}/e2m/heartbeat
.. raw:: html
Message Receive heartbeat application/json

Message receive_heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

Payload

integer HeartBeatId

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached

Example

Heartbeat
42
Messages ======== .. container:: everest-api .. raw:: html
MessageSummaryUsed by
receive_request_set_display_message
Request set display message

Request to set a display message

receive_request_set_display_message
send_reply_set_display_message
Reply set display message

Reply to a request to set a display message

send_reply_set_display_message
receive_request_get_display_message
Request get display message

Request to get a display message

receive_request_get_display_message
send_reply_get_display_message
Reply get display message

Reply to a request to get a display message

send_reply_get_display_message
receive_request_clear_display_message
Request clear display message

Request to clear a display message

receive_request_clear_display_message
send_reply_clear_display_message
Reply clear display message

Reply to a request to clear a display message

send_reply_clear_display_message
receive_heartbeat
Receive heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

receive_heartbeat
send_communication_check
Send communication check

Signal to EVerest that communication is good or check shall be stopped

send_communication_check
Schemas ======= .. container:: everest-api .. raw:: html
ClearDisplayMessageRequest object
object

Request to remove a specific display message.

Additional properties allowed.

ClearDisplayMessageResponse object
object

Response on the clear display message request.

Additional properties allowed.

ClearMessageResponseEnum string
string

Response on a clear display message request

enumAcceptedUnknown
DisplayMessage object
object

Message to show on a display

Additional properties allowed.

DisplayMessageStatusEnum string
string

Response on a display message request

enumAcceptedNotSupportedMessageFormatRejectedNotSupportedPriorityNotSupportedStateUnknownTransaction
IdentifierType string
string

The identifier type

enumIdTokenSessionIdTransactionId
MessageContent object
object

Contains message details

Additional properties allowed.

MessageFormat string
string

Format of the message to be displayed

enumASCIIHTMLURIUTF8QRCODE
MessagePriorityEnum string
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.

enumAlwaysFrontInFrontNormalCycle
MessageStateEnum string
string

During what state the message should be shown

enumChargingFaultedIdleUnavailableSuspendingDischarging
GetDisplayMessageRequest object
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.

GetDisplayMessageResponse object
object

Response on the 'get display message' request. Will return the requested display messages.

Additional properties allowed.

SetDisplayMessageRequest array<object>
array<object>

Request to set a list of display messages.

SetDisplayMessageResponse object
object

Response to the set display message request.

Additional properties allowed.

CommunicationCheck boolean
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
integer

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached