npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

speedtest2mqtt

1.0.2 • Public • Published

speedtest2mqtt

mqtt-smarthome NPM version Dependency Status Build Status XO code style License

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

install

npm i speedtest2mqtt

Downloadsweekly downloads

7

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability