![]() |
wloc
0.8.0
Simple Wi-Fi geolocation library and tool
|
Public Member Functions | |
None | __init__ (self) |
list | get_networks (self) |
Private Member Functions | |
None | _fetch_json (self) |
def | _fetch_list (self) |
None | _parse_json (self) |
Private Attributes | |
_json | |
Class for working with Termux API.
None wloc.fetchers.native.termux.TermuxNativeAPI.__init__ | ( | self | ) |
Main constructor of the TermuxAPI class.
Reimplemented from wloc.fetchers.native.NativeBackendCommon.
|
private |
Fetches JSON from stdout and stores the result in a special private field.
|
private |
Fetches the list of available Wi-Fi networks using public D-Bus methods.
Reimplemented from wloc.fetchers.native.NativeBackendCommon.
|
private |
Parses JSON stored in a special private field and tries to extract the required information from it (BSSID and RSSI). :exception FetcherError: Termux API error message.
|
inherited |
Gets the list of available Wi-Fi networks with their BSSID and signal strength. :return: The list of available Wi-Fi networks.