Skip to content
This repository was archived by the owner on Aug 18, 2022. It is now read-only.

HSLdevcom/transitdata-hfp-downgrader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Description

Application for reading HFP v2 data from MQTT broker and feeding it back into MQTT broker as HFP v1 data.

Building

Dependencies

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

Locally

  • mvn compile
  • mvn package

Docker image

Running

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
    • 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.

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>

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published