Publish Order Progress
Overview
An Order Progress is a TilliT Edge timeseries entity that tracks the production counts and equipment status every minute to create metrics such as performance, availbility and quality. This data can be published via MQTT into TilliT to give a live up-to-date view of your current production data.
Required Payload for Order Progress
The Order Progress entity is shown below. You will need to find the assetId of the asset you are going to update, you may want to look at how to interact with our API to receive that data.
It is not necessary to send every field in the payload. It may be easier to start with just counts, stopped and running states. Take note that this is an array, where each element in the array has a unique asset. This allows you to send multiple order-progress for multiple asset in a single message.
Sending to the MQTT Broker
DO NOT send order progress at an interval less than one minute. For best results, order progress is sent every minute.
DO NOT send multiple updates for an asset/order in a single order progress message.
Batching should be used as much as possible. Where multiple assets have an updated count/state in a minute, then include them all in the same order progress message.
The topic to publish on is constructed as per the following, replacing ENV, TENANT and THINGNAME with those that apply for you
You can find your thingName contained in the same file as the certificates supplied to you. You can also contact support to track down the thingName for you.
Now follow these steps to successfully simulate order progress
Find an asset to add order-progress to and record it's ID.
Ensure an order is in the RUNNING state on the asset (only nessecary if orderId is not included in payload)
Publish the following payload on the topic specified prior (replace ids with yours and timestamp of today)
You can now see progress on the order and asset card inside TilliT
For a rawer view, you can navigate to History -> Orders and select the order that was running on the asset
Scroll and click on the Progress Pane, observe that there is a row with the order progress we sent via MQTT.
Last updated