Application for reading HFP v2 data from MQTT broker and feeding it back into MQTT broker as HFP v1 data.
This project depends on transitdata-common project.
Either use released versions from public maven repository or build your own and install to local maven repository:
cd transitdata-common && mvn install
mvn compilemvn package
- Run this script to build the Docker image
Requirements:
- Connection to an external MQTT server.
- Configure username and password via files
- Set filepath for username via env variable FILEPATH_USERNAME_SECRET, default is
/run/secrets/mqtt_broker_username - Set filepath for password via env variable FILEPATH_PASSWORD_SECRET, default is
/run/secrets/mqtt_broker_password
- Set filepath for username via env variable FILEPATH_USERNAME_SECRET, default is
- Mandatory: Set HFP v1 MQTT topic via env variable MQTT_TOPIC
- Remember to use a unique MQTT client-id's if you have multiple instances connected to a single broker.
- Configure username and password via files
All other configuration options are configured in the config file which can also be configured externally via env variable CONFIG_PATH
Launch Docker container with
docker-compose -f compose-config-file.yml up <service-name>