EVerest API definition for session cost 1.0.0

API for EVerest API clients implementing session cost.

  • #EVerest
  • #SessionCost

Servers

  • mqtt://localhost:1883/everest_api/1/session_cost/{module_id}mqttdefault

    default local MQTT

    object
    module_id
    required
    string

    The ID of the module as defined in the EVerest config file.

Operations

  • SEND m2e/tariff_message

    Direction: Module to EVerest

    Operation IDsend_tariff_message

    Available only on servers:

    Accepts the following message:

    Send tariff messagetariff_message

    The tariff message

    Message IDtariff_message
    object

    Message containing cost information

    Examples

  • SEND m2e/session_cost

    Direction: Module to EVerest

    Operation IDsend_session_cost

    Available only on servers:

    Accepts the following message:

    Send session costsession_cost

    The session cost record

    Message IDsession_cost
    object

    Session cost object containing the total cost of the session and a list of chunks

    Examples

  • RECEIVE e2m/heartbeat

    Operation IDreceive_heartbeat

    Available only on servers:

    Accepts the following message:

    Receive heartbeatreceive_heartbeat

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

    Message IDreceive_heartbeat
    Payload
    integer

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

    Examples

  • SEND m2e/communication_check

    Operation IDsend_communication_check

    Available only on servers:

    Accepts the following message:

    Send communication checksend_communication_check

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

    Message IDsend_communication_check
    Payload
    boolean

    Send 'true' at least every 'cfg_communication_check_to_s' seconds to signal module is alive. Send 'false' to stop communication check'

    Examples

Messages

  • #1Send tariff messagesend_tariff_message

    The tariff message

    Message IDsend_tariff_message
    object

    Message containing cost information

  • #2Send session costsend_session_cost

    The session cost record

    Message IDsend_session_cost
    object

    Session cost object containing the total cost of the session and a list of chunks

  • #3Receive heartbeatreceive_heartbeat

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

    Message IDreceive_heartbeat
    Payload
    integer

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

  • #4Send communication checksend_communication_check

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

    Message IDsend_communication_check
    Payload
    boolean

    Send 'true' at least every 'cfg_communication_check_to_s' seconds to signal module is alive. Send 'false' to stop communication check'

Schemas

  • object

    Charging price for a category

  • CostCategory
    string

    Cost category

      Allowed values:
    • "Energy"
    • "Time"
    • "FlatFee"
    • "Other"
  • CurrencyCode
    string
    3 characters

    Currency in 3 alphabetical characters according to ISO 4217.

      Allowed values:
    • "AED"
    • "AFN"
    • "ALL"
    • "AMD"
    • "ANG"
    • "AOA"
    • "ARS"
    • "AUD"
    • "AWG"
    • "AZN"
    • "BAM"
    • "BBD"
    • "BDT"
    • "BGN"
    • "BHD"
    • "BIF"
    • "BMD"
    • "BND"
    • "BOB"
    • "BOV"
    • "BRL"
    • "BSD"
    • "BTN"
    • "BWP"
    • "BYN"
    • "BZD"
    • "CAD"
    • "CDF"
    • "CHE"
    • "CHF"
    • "CHW"
    • "CLF"
    • "CLP"
    • "CNY"
    • "COP"
    • "COU"
    • "CRC"
    • "CUC"
    • "CUP"
    • "CVE"
    • "CZK"
    • "DJF"
    • "DKK"
    • "DOP"
    • "DZD"
    • "EGP"
    • "ERN"
    • "ETB"
    • "EUR"
    • "FJD"
    • "FKP"
    • "GBP"
    • "GEL"
    • "GHS"
    • "GIP"
    • "GMD"
    • "GNF"
    • "GTQ"
    • "GYD"
    • "HKD"
    • "HNL"
    • "HTG"
    • "HUF"
    • "IDR"
    • "ILS"
    • "INR"
    • "IQD"
    • "IRR"
    • "ISK"
    • "JMD"
    • "JOD"
    • "JPY"
    • "KES"
    • "KGS"
    • "KHR"
    • "KMF"
    • "KPW"
    • "KRW"
    • "KWD"
    • "KYD"
    • "KZT"
    • "LAK"
    • "LBP"
    • "LKR"
    • "LRD"
    • "LSL"
    • "LYD"
    • "MAD"
    • "MDL"
    • "MGA"
    • "MKD"
    • "MMK"
    • "MNT"
    • "MOP"
    • "MRU"
    • "MUR"
    • "MVR"
    • "MWK"
    • "MXN"
    • "MXV"
    • "MYR"
    • "MZN"
    • "NAD"
    • "NGN"
    • "NIO"
    • "NOK"
    • "NPR"
    • "NZD"
    • "OMR"
    • "PAB"
    • "PEN"
    • "PGK"
    • "PHP"
    • "PKR"
    • "PLN"
    • "PYG"
    • "QAR"
    • "RON"
    • "RSD"
    • "RUB"
    • "RWF"
    • "SAR"
    • "SBD"
    • "SCR"
    • "SDG"
    • "SEK"
    • "SGD"
    • "SHP"
    • "SLE"
    • "SLL"
    • "SOS"
    • "SRD"
    • "SSP"
    • "STN"
    • "SVC"
    • "SYP"
    • "SZL"
    • "THB"
    • "TJS"
    • "TMT"
    • "TND"
    • "TOP"
    • "TRY"
    • "TTD"
    • "TWD"
    • "TZS"
    • "UAH"
    • "UGX"
    • "USD"
    • "USN"
    • "UYI"
    • "UYU"
    • "UYW"
    • "UZS"
    • "VED"
    • "VES"
    • "VND"
    • "VUV"
    • "WST"
    • "XAF"
    • "XCD"
    • "XDR"
    • "XOF"
    • "XPF"
    • "XSU"
    • "XUA"
    • "YER"
    • "ZAR"
    • "ZMW"
    • "ZWL"
  • object

    Currency object containing the currency code and the accuracy of the minor unit according to ISO 4217.

  • object

    Price components when idle

  • object

    'Money amount is expressed as an amount of minor units of the currency. Example price of 1.23 EUR is expressed as { value: 123 }'

  • object

    Pricing for the next period

  • object

    Price object containing the currency and the value of money.

  • object

    Session cost object containing the total cost of the session and a list of chunks

  • object

    A chunk of the session cost. The total cost of the session is the sum of all chunks.

  • SessionStatus
    string

    Session status enum. Session can be running or finished. Costs of the running session are not final and can change.

      Allowed values:
    • "Running"
    • "Idle"
    • "Finished"
  • object

    Message containing cost information

  • CommunicationCheck
    boolean

    Send 'true' at least every 'cfg_communication_check_to_s' seconds to signal module is alive. Send 'false' to stop communication check'

  • HeartBeatId
    integer

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