|
wloc 1.1.0
Simple Wi-Fi geolocation library and tool
|
Public Member Functions | |
| None | __init__ (self) |
| list | get_networks (self) |
Protected Member Functions | |
| None | _fetch_json (self) |
| None | _fetch_list (self) |
| None | _parse_json (self) |
Protected Attributes | |
| str | _json = subprocess.check_output('termux-wifi-scaninfo', encoding='utf8', timeout=5000) |
| list | _network_list = [] |
| int | _sleep_seconds = 5 |
Class for working with Termux API.
| None wloc.fetchers.android.termux.TermuxNativeAPI.__init__ | ( | self | ) |
Main constructor of the TermuxAPI class.
|
protected |
Fetches JSON from stdout and stores the result in a special private field.
|
protected |
Fetches the list of available Wi-Fi networks using public D-Bus methods.
Reimplemented from wloc.fetchers.native.NativeBackendCommon.
|
protected |
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.