查询xfinity网关
xfinity-gatewa的Python项目详细描述
查询xfinity网关
此库允许查询xfinity网关以查找连接的设备。它使用requests
库来擦除网关的web接口。
用法
fromxfinity_gatewayimportXfinityGateway# Connect to gatewaygateway=XfinityGateway('10.0.0.1')# Get list of all connected devices' MAC addressesgateway.scan_devices()# Get specific device's namegateway.get_device_name('mac address of device here')
想法
我只在自己的xfinity提供的网关上进行了测试:
Model: | TG1682G |
Hardware Revision: | 9.0 |
如果网关的Web界面如下所示,则此库可能正常工作:
如果遇到任何问题,请打开github问题。谢谢!