Add method to request the Network/System status

Home screen method returns just the information about last added System(network). The method "request_network_status", should replace the homescreen method in order to obtain all the information about a system.
This commit is contained in:
md-reddevil
2018-11-14 09:39:44 +02:00
committed by GitHub
parent c621ba3150
commit 9c1974c227
+5
View File
@@ -29,6 +29,11 @@ def request_networks(blink):
url = "{}/networks".format(blink.urls.base_url) url = "{}/networks".format(blink.urls.base_url)
return http_get(blink, url) return http_get(blink, url)
def request_network_status(blink, network):
"""Request network information."""
url = "{}/network/{}".format(blink.urls.base_url, network)
return http_get(blink, url)
def request_syncmodule(blink, network): def request_syncmodule(blink, network):
"""Request sync module info.""" """Request sync module info."""