speedtest2mqtt
v1.0.2
Published
Run speedtest-cli and publish results via MQTT
Downloads
7
Maintainers
Readme
speedtest2mqtt
Run speedtest-cli and publish results via MQTT
Install
$ sudo npm install -g speedtest2mqtt
Command Line Options
Usage: speedtest2mqtt [options]
Options:
-v, --verbosity possible values: "error", "warn", "info", "debug"
[default: "info"]
-n, --name instance name. used as topic prefix [default: "speedtest"]
-k, --insecure allow ssl connections without valid certificate [boolean]
-u, --url mqtt broker url [default: "mqtt://127.0.0.1"]
-s, --server speedtest server
-p, --path speedtest-cli path [default: "/usr/bin/speedtest-cli"]
-h, --help Show help [boolean]
--version Show version number [boolean]
Topics and Payloads:
<name>/status/Ping
{"val":"29.214","ts":1518035980012,"unit":"ms"}
<name>/status/Download
{"val":"49.51","ts":1518035980012,"unit":"Mbit/s"}
<name>/status/Upload
{"val":"9.51","ts":1518035980012,"unit":"Mbit/s"}
License
MIT © Sebastian Raff