Speedtest to MQTT

If you dont want to speedtest from your local HA instance (maybe your local pfSense router?), you can do it through MQTT:

You just need speedtest-cli:

pip install speedtest-cli

Been looking in to this a little bit recently.
I’m still using FreeNAS Corral which sparked an interest in docker. So, in the process at the moment of putting together a docker image with both speedtest-cli and a mqqt client to push out from a remote machine

I’m trying to get this running on a Ubuntu 16.04.2 VM that I have running. When I run the script (after changing the mqtt setting for my own instance) I get an error stating:

line 3: /usr/local/bin/perl: No such file or directory

I ran sudo apt install perl but it is showing as already installed. Do I need to do something additional with Perl for that folder to be created?

Change script from /usr/local/bin/perl to /usr/bin/perl

1 Like

Awesome! That did it! No more 10 Mbit/s reporting!

Thank you.

Just in case, I’ve containerized it https://hub.docker.com/r/eminguez/speedtest2mqtt/ :slight_smile: