Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The file follows the format used for the configuration of Mosquitto. The fields are mapped below. If other MQTT bridges are used, mapping is for guidance only.

...

NB!

  1. If the topic is "", it must be printed as "" in the mosquitto file.

  2. According to the mosquitto.conf format, + is a wildcard for a level in the topic name. This is used to account for e.g. several doors indicated by a number.

...

Code Block
#
# Ruter MQTT Bridge
#
connection bus-to-authority-bridge
try_private false
address 34.250.54.9
bridge_attempt_unsubscribe true
bridge_protocol_version mqttv311
start_type automatic
restart_timeout 5
bridge_insecure true
username <username>
password <password>
cleansession true
notifications false
allow_anonymous false

#
# Bridged Topics - from mqtt.json
#
# topic type in/out qos shortroute longroute

topic json out 2 signon/ ruter/alpha/000000/itxpt/ota/signon/
topic json out 2 signoff/ ruter/alpha/000000/itxpt/ota/signoff/
topic json out 2 avl/ ruter/alpha/000000/itxpt/ota/avl/
topic +/json out 2 apc/ ruter/alpha/000000/itxpt/ota/apc/
topic json out 2 stopsignal/ ruter/alpha/000000/itxpt/stopsignal/ # non-standard
topic +/json out 2 telemetry/ ruter/alpha/000000/itxpt/telemetry/ # non-standard
topic json out 2 infohub/dpi/diagnostics/ ruter/alpha/000000/itxpt/dpi/diagnostics/ # non-standard

topic json in 2 infohub/dpi/journey/ alpha/ruter/000000/itxpt/ota/dpi/journey/
topic json in 2 infohub/dpi/externaldisplay/ alpha/ruter/000000/itxpt/ota/dpi/externaldisplay/
topic json in 2 infohub/dpi/eta/ alpha/ruter/000000/itxpt/ota/dpi/eta/
topic json in 2 infohub/dpi/nextstop/ alpha/ruter/000000/itxpt/ota/dpi/nextstop/
topic json in 2 infohub/dpi/arriving/ alpha/ruter/000000/itxpt/ota/dpi/arriving/
topic json in 2 infohub/dpi/deviation/ alpha/ruter/000000/itxpt/ota/dpi/deviation/
topic json in 2 infohub/dpi/announcement/ alpha/ruter/000000/itxpt/ota/dpi/announcement/
topic json in 2 infohub/madt/notification/ alpha/ruter/000000/itxpt/ota/madt/notification/
topic json in 2 infohub/dpi/connections/ alpha/ruter/000000/itxpt/ota/dpi/connections/ # non-standard
topic json in 2 infohub/dpi/digitalsignage/ alpha/ruter/000000/itxpt/ota/dpi/digitalsignage/ # non-standard
topic json in 2 infohub/dpi/audio/ alpha/ruter/000000/itxpt/ota/dpi/audio/ # non-standard

Handling

...

Schema

A JSON schema will be defined for this configuration file.