flowbber.plugins.sources.speed

Speed

This source collects the network bandwidth the system curretly has using Speedtest.net servers.

Three metrics are collected:

  • ping: Latency, in milliseconds.
  • download: Download speed, in bits per second.
  • upload: Upload speed, in bits per second.

Data collected:

{
    "ping": 9.306252002716064,
    "download": 42762976.92544772,
    "upload": 19425388.307319913
}

Dependencies:

pip3 install flowbber[speed]

Usage:

[[sources]]
type = "speed"
id = "..."

    [sources.config]
    runs = 2
{
    "sources": [
        {
            "type": "speed",
            "id": "...",
            "config": {
                "host": null,
                "runs": 2
            }
        }
    ]
}

host

Use a specific server.

  • Default: None

  • Optional: True

  • Schema:

    {
        'type': 'string',
        'empty': False,
        'nullable': True,
    }
    
  • Secret: False

runs

Number of runs to perform.

  • Default: 2

  • Optional: True

  • Schema:

    {
        'type': 'list',
        'schema': {
            'type': 'integer',
            'min': 1,
        },
    }
    
  • Secret: False

Classes

class flowbber.plugins.sources.speed.SpeedSource(index, type_, id_, optional=False, timeout=None, config=None)

Inheritance

Inheritance diagram of SpeedSource