Chirpstack MQTT Forwarder - Dynamic metadata

Viewed 9

Hello,
I am planing to migratie from chirpstack gateway brdige to chirpstack mqtt forwarder.

in chirpstack gateway bridge, i could use the meta_data.dynamic section to run a script for metadata. example

  [meta_data.dynamic.commands]
  # Example:
  # temperature="/opt/gateway-temperature/gateway-temperature.sh"

if i had multiple values returining, the meta data was automaticy genereated like this:

temperature_value1 = x
temperature_value2 = y
temperature_value3 = z

in chirpstack mqtt forwarder, i can't see such a option acording to tdhe docs.
is there a way to have a dynamic option for metadata using a script in chirpstack-mqtt-forwarder?

thanks and regards,
Sil

2 Answers

While it is possible to configure dynamic meta-data in the MQTT Forwarder, the key in the config defines the key of the meta-data. This means that if your script returns multiple lines, the configured key will have a value of multiple lines. The MQTT Forwarder does not parse these lines as inividiual meta-data key/values.

Hi Orne

Thanks for your feedback. Yes, i saw the multiple lines, but this is not that cool. so therefore my following questions:

  • is there any plan to implement this in the near feature?
  • any other idea, to reach my goal -> have the same config on all gateways but different metadata?

thanks and regards,
Silvan