semvec/pypi-packages huggingface dataset:
speedmonitor 0.0.7
Monitor internet speed
License: MIT
Requires Python: >=3.6.0


# Speed Monitor

Monitor internet speed.

Server listens for measurements. Post speed measurements to server to persist them. Clients conduct measurements speedtest-cli and post to server.

# Quick start

```
pip install speedmonitor
```

Start local client that saves speed to local json file `speedtest.json`

```
python -m speedmonitor
```

Start remote client that pushes measurements to speedmonitor server

```
SPEEDMONITOR_HOST=http://192.168.1.67:5000 python -m speedmonitor
```

The above requires the server to be running on host 192.168.1.67. To start server run the following commmand on host

```
./serve.sh
```

Advanced options for client
```
SPEEDMONITOR_LOCATION='top_bedroom' SPEEDMONITOR_INTERVAL_SECONDS=60 SPEEDMONITOR_FILENAME='speedmonitor.hdf' SPEEDMONITOR_LOGLEVEL=INFO python -m speedmonitor
```

# Development

```
python setup.py develop
pip install -r requirements-dev.txt

```

Running tests

```
py.test
```


# Local measurements
Conducting measurements

```
SPEEDMONITOR_LOCATION='top_bedroom' SPEEDMONITOR_INTERVAL_SECONDS=60 SPEEDMONITOR_FILENAME='speedmonitor.hdf' python -m speedmonitor
```