barcodereader

The technical documentation for the microservice barcodereader, which reads out barcodes and sends the data to the MQTT broker.

This microservice is still in development and is not considered stable for production use.

Environment variables

This chapter explains all environment variables used in barcodereader.

Variable nameDescriptionTypePossible valuesExample Values
ASSET_IDThe asset ID, which is used for the topic structurestringallweaving_machine_2
CUSTOMER_IDThe customer ID, which is used for the topic structurestringalldccaachen
INPUT_DEVICE_NAMEThe name of the input devicestringallDatalogic ADC, Inc. Handheld Barcode Scanner
INPUT_DEVICE_PATHLinux path of the input device usedstringall/dev/input/event0
KAFKA_BOOTSTRAP_SERVERURL of the Kafka broker used, port is requiredstringalllocalhost:9092
LOCATIONThe location, which is used for the topic structurestringallaachen
LOGGING_LEVELDefines which logging level is used, mostly relevant for developers. If logging level is not DEVELOPMENT, default logging will be usedstringDEVELOPMENTDEVELOPMENT
SCAN_ONLYPrevent message broadcasting if enabled (default: false)booltrue, falsefalse
SERIAL_NUMBERSerial number of the cluster (used for tracing)stringalldevelopment
MICROSERVICE_NAMEName of the microservice (used for tracing)stringallbarcodereader
DEBUG_ENABLE_FGTRACEEnables the use of the fgtrace library, do not enable in productionstringtrue, 1, any1
Last modified February 17, 2023: update (#208) (ea731fc)