Query an Xfinity Gateway
Project description
Query an Xfinity Gateway
This library allows an Xfinity Gateway to be queried for connected devices. It uses the requests
library to scrape the web interface of the gateway.
Usage
from xfinity_gateway import XfinityGateway
# Connect to gateway
gateway = XfinityGateway('10.0.0.1')
# Get list of all connected devices' MAC addresses
gateway.scan_devices()
# Get specific device's name
gateway.get_device_name('mac address of device here')
Thoughts
I have only tested on my own Xfinity-provided gateway:
Model: | TG1682G |
Hardware Revision: | 9.0 |
If your gateway's web interface looks like the following, this library will likely work:
Please open a Github issue if you encounter any problems. Thanks!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xfinity_gateway-0.0.4.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for xfinity_gateway-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 215807970d3cedeecfb429795dbb4e5a34ae64f8c350aeecf445745ac25f3193 |
|
MD5 | 12a6607ed159f62e809eb06194c0d3e9 |
|
BLAKE2b-256 | a16601cb95f763924fbf73072d88fff74ceb27f3d1c8442e16276f272146aeeb |