Skip to main content

Kepserver

For users of Kepserver we provide this format, which together with the message template can be used to send data via MQTT to Clarify.

Message template

When formatting messages in Kepserver, a message template must be used to specify how the payload is transmitted. Using this template will allow Clarify to parse the messages correctly.

[
|#each VALUES|
{
"tagname": "|TAGNAME|",
"timestamp": |TIMESTAMP|,
"value": |VALUE|
}|#unless @last|,|/unless|
|/each|
]

Example

Topic

kepserver

Payload

[
{
"tagname": "Group A.Device C - D.Tag 42",
"timestamp": 1651604184861,
"value": 1291
},
{
"tagname": "Group B.Device A - F.Tag 7",
"timestamp": 1651604185020,
"value": 185.2
}
]

Payload fields

NameTypeRequiredDescription
tagnamestring(prefix.name)YesThe prefix will be stripped away, while the name will be used on the signal.
timestampTimestampYesThe timestamp to insert.
valuenumberYesA tag identifying the signal in the source system.