MQTT is a lightweight publish/subscribe messaging transport. This job allows Dashing to subscribe to these messages and send them as events. There is no associated widget as the data can take any form - commonly numbers, but not necessarily. The script as laid out below sends events with
current (the same contents) and
last values so can be plugged directly into the Numbers or Meter widgets using the
data-id in the dashboard file. The
send_event could easily be modified if required.
Add to Gemfile: