量子网关
quantum-gatewa的Python项目详细描述
查询量子网关
这个库允许查询verizon fios量子网关。它使用requests
库对网关的web接口进行身份验证、登录和查询。
用法
请注意,从固件版本02.02.00.13和UI版本v1.0.388开始,https是访问管理控制台的唯一方法。这也使用自签名证书。代码现在默认为https并忽略自签名证书警告。
# Importfromquantum_gatewayimportQuantumGatewayScanner# Connect to gateway via HTTPSgateway=QuantumGatewayScanner('192.168.1.1','your_password_here')# Or, connect to gateway via HTTPgateway=QuantumGatewayScanner('192.168.1.1','your_password_here',False)# Property is set to True if we successfully logged in, otherwise Falsegateway.success_init# Get list of all connected devices' MAC addressesgateway.scan_devices()# Get specific device's namegateway.get_device_name('mac address of device here')
注释
在Verizon FIOS提供的网关上测试:
UI Version: | v1.0.388 |
Firmware Version: | 02.02.00.13 |
Model Name: | FiOS-G1100 |
Hardware Version: | 1.03 |
如果遇到任何问题,请打开github issue或回复家庭助理论坛post。谢谢!