Skip to main content

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)
    }
}

Installation

python3 -m pip install pipx
apt-get install -y python3-venv
pipx install speedtest-influx-logger

Environment Variables

  • NODE_NAME
  • INFLUX_HOST
  • INFLUX_PORT
  • INFLUX_USER
  • INFLUX_PASS
  • INFLUX_DB
  • TEST_FREQUENCY

Metadata

Release files for speedtest-influx-logger 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for speedtest-influx-logger 0.0.7
File Size Uploaded Provenance Actions
speedtest_influx_logger-0.0.7.tar.gz 3.7 kB Without provenance Details for speedtest_influx_logger-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for speedtest-influx-logger 0.0.7
File Interpreter ABI Platform Actions
speedtest_influx_logger-0.0.7-py3-none-any.whl Python 3 none any Details for speedtest_influx_logger-0.0.7-py3-none-any.whl

Total release size: 7.8 kB

Release files / speedtest_influx_logger-0.0.7.tar.gz

Download URL speedtest_influx_logger-0.0.7.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b4e87b3e2a27bb37e9336e69844770b8fad3933ee84eea80c8d4e24c7a58a317
BLAKE2b-256 checksum
How to use checksums
ca43b5f06bf742d6f5b6b212bb359ee3cb5aa4e68a8b6fd4505aa6f287e86f52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release files / speedtest_influx_logger-0.0.7-py3-none-any.whl

Download URL speedtest_influx_logger-0.0.7-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5419231178e69638c5fa6056f9e4bb5dbb377b68417bdb66214bddc349860c74
BLAKE2b-256 checksum
How to use checksums
3e5da7c15c5661021c78cacb3438d40b352f20d674d5788967df576c62e53416
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Security for speedtest-influx-logger 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page