Log your internet speeds to Influx DB. The script currently logs download and upload speeds (in b/s) and ping to influx db.
The data written to the database looks like this:
> SELECT * FROM internetSpeed
name: internetSpeed
time download ping upload
---- -------- ---- ------
1564068380338827008 24137205.190151006 7.247 4999612.83820897
1564069140744026880 21963406.450794857 7.343 4603067.451408845
1564069272956461824 24177880.030567713 7.404 4936487.407350518
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
This project uses pipenv to manage it's dependencies.
- Python 3.7
- pipenv
- Install with
pip install pipenv
- Install with
- Run
pipenv install
- Done
- Copy example config
cp config.example.json config.json
- Fill in all values
$ pipenv run ./speedtest-influxdb.py
- Python
speedtest-cli
influxdb