PackML Simulator
2 minute read
This microservice is a community contribution and is not part of the main stack of the United Manufacturing Hub, but it is enabled by default.
PackML MQTT Simulator is a virtual line that interfaces using PackML implemented over MQTT. It implements the following PackML State model and communicates over MQTT topics as defined by environmental variables. The simulator can run with either a basic MQTT topic structure or SparkPlugB.
How it works
You can read the full documentation on the GitHub repository.
Kubernetes resources
- Deployment:
united-manufacturing-hub-packmlmqttsimulator
Configuration
You shouldn’t need to configure PackML Simulator manually, as it’s configured
automatically when the cluster is deployed. However, if you need to change the
configuration, you can do it by editing the packmlmqttsimulator
section of the
Helm chart values file.
Environment variables
Variable name | Description | Type | Allowed values | Default |
---|---|---|---|---|
AREA | ISA-95 area name of the line | string | Any | DefaultArea |
LINE | ISA-95 line name of the line | string | Any | DefaultProductionLine |
MQTT_PASSWORD | Password for the MQTT broker. Leave empty if the server does not manage permissions | string | Any | INSECURE_INSECURE_INSECURE |
MQTT_URL | Server URL of the MQTT server | string | Any | mqtt://united-manufacturing-hub-mqtt:1883 |
MQTT_USERNAME | Name for the MQTT broker. Leave empty if the server does not manage permissions | string | Any | PACKMLSIMULATOR |
SITE | ISA-95 site name of the line | string | Any | testLocation |