Telegraf input plugin to read data from a Webthings IOT gateway.
On your Gateway, navigate to Developer
and create an authorization token with monitor access.
Todo: Get the binary
Add a new input section in telegraf.conf
:
[[inputs.exec]]
name_override = "webthings"
commands = ["/path/to/telethings -t <TOKEN> -u <GATEWAY_URL>"]
timeout = "5s"
data_format = "json"
tag_keys = ["name"]
telethings
is packaged using pkg.
npm run build
creates binaries in thedist
directory.