Arris TG2492LG Python client
A unofficial Python client for retrieving information from the Arris TG2492LG router. The Arris TG2492LG is one of two routers that Ziggo, a cable operator in the Netherlands, provides to their customers as the Ziggo Connectbox.
The current functionality is limited to retrieving a list of devices that are connected to the router.
WARNING: The router prevents the admin user from logging in twice. This can cause problems with accessing the router's configuration pages while using this library.
Usage
List all connected devices:
import asyncio
import aiohttp
from arris_tg2492lg import ConnectBox
async def main():
async with aiohttp.ClientSession() as session:
connect_box = ConnectBox(session, "http://192.168.178.1", "password")
devices = await connect_box.async_get_connected_devices()
print(devices)
await connect_box.async_logout()
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Please note that the list of connected devices include devices that are offline (e.g. just went out of range of the wifi). The Device class contains a property online that can be checked.
An example for retrieving a list of the MAC addresses of all online device is included in the examples folder:
python3 list_online_devices.py --host http://192.168.178.1 --password <password>
Development
Setup arris_tg2492lg for local development by running:
python3 -m venv venv
source venv/bin/activate
scripts/setup
This will create a virtual environment, download the required libraries and configure a git commit hook.
Metadata
Release files for arris-tg2492lg 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arris-tg2492lg-2.2.0.tar.gz | 9.2 kB | Without provenance | Details for arris-tg2492lg-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arris_tg2492lg-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for arris_tg2492lg-2.2.0-py3-none-any.whl |
Total release size: 17.3 kB
Release files / arris-tg2492lg-2.2.0.tar.gz
| Download URL | arris-tg2492lg-2.2.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a05b64efb355739d4bd4d6bac18f6c9cf75ab0122c3a76602444e9bed003a0f
|
|
BLAKE2b-256 checksum How to use checksums |
8f52a938f1178bba2c6480d92cb607f883f26f397c72ae5069015c33bcdd8d88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / arris_tg2492lg-2.2.0-py3-none-any.whl
| Download URL | arris_tg2492lg-2.2.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce2c1c3bf9c62c5695a10366e565f8f9c102affc88e700b3058bcc6a6970927e
|
|
BLAKE2b-256 checksum How to use checksums |
4d839c8eb3a3c3a9e5d8a6f081fb9672310d381eaf2398a6f76a3f2282e51a37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for arris-tg2492lg 2.2.0
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.