Skip to content

Commit

Permalink
Add system info + bump to 0.10.3 (#128)
Browse files Browse the repository at this point in the history
* add get_system_info

* bump pynetgear to 0.10.3
  • Loading branch information
starkillerOG committed May 29, 2022
1 parent 80f784f commit ebce0ab
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions pynetgear/const.py
Expand Up @@ -75,6 +75,7 @@
GET_SUPPORT_FEATURE_LIST_XML = "GetSupportFeatureListXML"
GET_ATTACHED_DEVICES = "GetAttachDevice"
GET_ATTACHED_DEVICES_2 = "GetAttachDevice2"
GET_SYSTEM_INFO = "GetSystemInfo"
# SET_DEVICE_NAME_ICON_BY_MAC = 'SetDeviceNameIconByMAC'
# SET_DEVICE_NAME = 'SetNetgearDeviceName'

Expand Down
14 changes: 14 additions & 0 deletions pynetgear/router.py
Expand Up @@ -750,6 +750,20 @@ def update_new_firmware(self):
{"YesOrNo": "1"},
)

def get_system_info(self):
"""
Get system Info and return dict like:
- NewCPUUtilization
- NewPhysicalMemory
- NewMemoryUtilization
- NewPhysicalFlash
- NewAvailableFlash
"""
return self._get(
c.SERVICE_DEVICE_INFO,
c.GET_SYSTEM_INFO,
)

def check_ethernet_link(self):
"""
Check the ethernet link status and return dict like:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@
from codecs import open

REPO_URL = "http://github.com/MatMaul/pynetgear"
VERSION = "0.10.2"
VERSION = "0.10.3"

with open("requirements.txt") as f:
required = f.read().splitlines()
Expand Down

0 comments on commit ebce0ab

Please sign in to comment.