No project description provided
Project description
Speedtest Influx Logger
Summary
Micro application to run speedtests periodically and send statistics to remote InfluxDB node.
Was created to be run as a self contained daemon script, or within a Docker setup to automatically push speedtest results to a remote InfluxDB node for display within Grafana.
Can be run within a script by performing the following:
import speedtest
from speedtest_influx_logger.main import check_speed
check_speed(speedtest.Speedtest())
# 2020-09-27 21:44:27 - Speedtest complete: 166.48/37.67
Statistics
The script sends the following statistic data to Influx:
{
"measurement": "internet_speed",
"tags": {
"host": NODE_NAME,
"client_version": APP_VERSION
},
"fields": {
"download": float(download),
"upload": float(upload),
"ping": float(ping)
}
}
TODO
Environment Variables
- NODE_NAME
- INFLUX_HOST
- INFLUX_PORT
- INFLUX_USER
- INFLUX_PASS
- INFLUX_DB
- TEST_FREQUENCY
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file speedtest_influx_logger-0.0.4.tar.gz
.
File metadata
- Download URL: speedtest_influx_logger-0.0.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe229401500799f934d239c6189e4c25f5419625fff46aed0cfc48cc138b6fcf |
|
MD5 | 9e291d0780dee81570008e6888d85bdb |
|
BLAKE2b-256 | fef1b7ab31480697da6c1b2dfea8fed6d39d2f0d68939990154b529ea2cfeb29 |
File details
Details for the file speedtest_influx_logger-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: speedtest_influx_logger-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d84d0ad365c1b850435243e4eb7316aca57046f18e14df63935979bde49c0fcf |
|
MD5 | 79fac9ad68d2920fcd7a30a2c68452ed |
|
BLAKE2b-256 | dc77481b1436a6d32838e41b8e46a7a453d880fb59d951f80a9425f7286b8269 |