Programatically run internet speedtests on your AsusWRT-powered routers
Project description
python-asuswrt-speedtest
Programatically run internet speedtests on your AsusWRT-powered routers.
It uses the pyasuswrt package to make http(s) requests to the router.
Confirmed to be working with AsusWRTMerlin. It should work for other AsusWRT-powered routers with the Internet Spedtest function available, but this has not been tested. Use at your own risk.
Usage
Config
Configuration is stored in the config/config.ini file.
[asus_router]
host =
port = 8443
use_https = true
username =
password =
[speedtest]
timeout = 120
poll_frequency = 15
history_limit = 10
Script
The following will run a speedtest on your router. The results will be available on the Internet Speed page
- Clone the repository
- Copy config/config.example.ini to config/config.ini
- Update the config/config.ini file with your router credentials and desired settings
- Run
python3 ./run_speedtest.py
Package
The latest package release is available on PyPI
pip install asuswrtspeedtest
Example of how to use this package in your own project:
import asyncio
import configparser
from asuswrtspeedtest import SpeedtestClient
config = configparser.ConfigParser()
config.read('config/config.ini')
async def run_speedtest():
async with SpeedtestClient(config) as speedtest_client:
await speedtest_client.run()
asyncio.run(run_speedtest())
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asuswrtspeedtest-0.2.0.tar.gz.
File metadata
- Download URL: asuswrtspeedtest-0.2.0.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcd6c401f62cb5e9c49b16fec967b198018002215ff36f86afb7685609bbda90
|
|
| MD5 |
d66a5274140d4d51abb67f11824461ba
|
|
| BLAKE2b-256 |
816dd8108679567145a32ce8aff6fcfbd2b7868373a5cccce815bd650bf5850c
|
File details
Details for the file asuswrtspeedtest-0.2.0-py3-none-any.whl.
File metadata
- Download URL: asuswrtspeedtest-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4eb4f2b1e076cdbce221d32e34bbb2e9efcf86077420ab73310bb62486c7904c
|
|
| MD5 |
c5d0f8388baee9f3969adca03d50f464
|
|
| BLAKE2b-256 |
afe5be7638fa3c47b3f75fd27e26a5e22fbc8ce1dd36f1cd78ea791690d3768f
|