Skyhook ELG client.
Project description
This implements the Skyhook ELG binary protocol in python
Installation
Just install with pip:
pip install python-skyhook
Usage
Python example:
import skyhook key = 'ABCDEF1234567890' # from the API console userID = 11111 # from the API console bssid = 'ab:cd:ef:12:34:56' rssi = -60 request = skyhook.SkyhookRequest() request.addAccessPoint(bssid.replace(':', ''), rssi) connection = skyhook.SkyhookConnection(key=key, userID=userID) response = connection.performRequest(request) if response.status != 'Ok': print('Error:', response.status) else: print('Response: ', response.coordinate)
Command line client
In the test directory you’ll find a command line client to test if everything works:
$ python cmdline_client.py --help usage: cmdline_client.py [-h] -k KEY -u USERID [-w WIFI] [-g GPS] [-c CELL] [-b BT] Make a location request against the skyhook service optional arguments: -h, --help show this help message and exit -k KEY, --key KEY encryption key from Skyhook API panel -u USERID, --user USERID user ID from Skyhook API panel -w WIFI, --wifi WIFI WIFI BSSID and signal strength (format: XX:XX:XX:XX:XX:XX@RSSI) -g GPS, --gps GPS GPS coordinate (format: latitude,longitude@num_satelites) -c CELL, --cell CELL, --celltower CELL Celltower information (format: MCC,MNC,LAC,CellID@RSSI) -b BT, --bt BT, --bluetooth BT Bluetooth beacon (format: XX:XX:XX:XX:XX:XX,UUID,Major,Minor@RSSI)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
skyhook-0.1.0.tar.gz
(6.3 kB
view details)
File details
Details for the file skyhook-0.1.0.tar.gz
.
File metadata
- Download URL: skyhook-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a3f00c5b6ab44de233e50a39117b1a7942a5e7afefbde9f72f883a3a8c77770 |
|
MD5 | 702a39ab89cbb8353c39c4e6d60827db |
|
BLAKE2b-256 | 226a04a63ca81aad5490dc6d24943dafd609a0b8d04e4fb517e9c6529d5fafb5 |