MatMaul / pynetgear

Python library to control Netgear wireless routers through the SOAP-api.
MIT License
237 stars 74 forks source link

Include Upload/Download in list of devices #39

Open curtp opened 6 years ago

curtp commented 6 years ago

I hacked the code local to get the Upload/Download attributes out of the device XML. Once Dynamic QOS is turned on these attributes will show the bandwidth used by the device. Here is a sample of the results from one of the devices on my network.

<Device>
<IP>192.168.1.28</IP> 
<Name>Playstation</Name> 
<NameUserSet>true</NameUserSet> 
<MAC>C0:</MAC> 
<ConnectionType>2.4GHz</ConnectionType> 
<SSID>network</SSID> 
<Linkspeed></Linkspeed> 
<SignalStrength>98</SignalStrength> 
<AllowOrBlock>Allow</AllowOrBlock> 
<Schedule>false</Schedule> 
<DeviceType>47</DeviceType> 
<DeviceTypeUserSet>true</DeviceTypeUserSet> 
<Upload>0</Upload> 
<Download>0</Download> 
<QosPriority>4</QosPriority> 
</Device> 

I have an R6900.

MatMaul commented 6 years ago

Do you want to open a pull request ? I know it is 2 lines so if you are lazy or uncomfortable with that tell me I'll do it.

gruijter commented 5 years ago

Is the information on up/down per device reliable? I see some numbers in there sometimes, but I have never seen numbers that match real traffic. E.g. when viewing youtube I expect the download of that device to jump up. But it doesn't on my r7800.