Speedtest-cli Internet Up-/Downlink Measurement Integration

Have a look at this example