engrjhnsn
08/08/2024, 2:35 PMyaml
input:
mqtt:
urls:
- tcp://united-manufacturing-hub-mqtt.united-manufacturing-hub.svc.cluster.local:1883 # IP address of the MQTT broker
topics:
- umh/v1/company/au/filling/lc/r1/_historian/status
client_id: "cab2e57e-583f-48af-8407-685c52384196" # this is autogenerated, feel free to adjust if you know what you are doing
pipeline:
processors:
- bloblang: |
# these variables are autogenerated from your instance location
let enterprise = "company"
let site = "au"
let area = "filling"
let line = "lc"
let workCell = "r1"
let schema = "_historian"
let tagname = "group" # using 'weather' as tag group
let payloadTagName = match meta("mqtt_topic") {
"umh/v1/company/au/filling/lc/r1/_historian/status" => "status"
_ => "unknown"
}
let value = content().number() # Change this to content().number() if you want to parse the value as number
# the rest from here here on will be autogenerated, see also documentation