Awesome
speedtest2mqtt
Run speedtest-cli and publish results via MQTT
Install
Prerequisites: needs mosquitto_pub and of cource speedtest-cli. On Debian/Ubuntu do:
sudo apt install mosquitto-clients speedtest-cli
cd /usr/local/bin
sudo wget https://raw.githubusercontent.com/hobbyquaker/speedtest2mqtt/master/speedtest2mqtt
sudo chmod a+x speedtest2mqtt
If neccessary adjust paths and params.
Topics and Payloads:
speedtest/status/Ping
{"val":"29.214","ts":1518035980012,"unit":"ms"}
speedtest/status/Download
{"val":"49.51","ts":1518035980012,"unit":"Mbit/s"}
speedtest/status/Upload
{"val":"9.51","ts":1518035980012,"unit":"Mbit/s"}
License
MIT © Sebastian Raff