Get position based on wifi APs in proximity and radiocells.org database.
Reason this release was yanked:
superseeded by another project, https://gitlab.com/larsfp/wifindme
Project description
Locates the current wifi-enabled computer using nearby access points and https://radiocells.org/geolocation
Project home: https://github.com/ways/locate-radiocells
Installation
$ pip install radiocells
Dependencies (handled by pip)
Usage
Must run as root to get access to scanning on Linux.
Example use:
import radiocells
accuracy, latlng = radiocells.locate(device='wlan0')
Example script included in examples/, (prints out accuracy in meters, and coordinates):
$ sudo ./locate-wifi.py wlan0
30 (59.12345, 10.12345)
Compatibility
Python 2 and 3. Only tested on Linux (Ubuntu, Fedora, Arch).
Development info
example query sent to radiocells.org: curl -H “Accept: application/json” -H “Content-type: application/json” -X POST -d ‘{“wifiAccessPoints”:[{“macAddress”:”24-DE-C6-A8-C9-64”,”signalStrength”:-57}]}’ https://radiocells.org/backend/geolocate
Example response: {“source”: “wifis”, “measurements”: 14, “location”: {“lat”: 59.12345, “lng”: 10.12345}, “accuracy”: 30}
or on fail: {‘resultType’: ‘error’, ‘results’: {‘source’: ‘none’, ‘measurements’: 0, ‘location’: {‘lat’: 0.0, ‘lng’: 0.0}, ‘accuracy’: 9999}, ‘error’: {‘message’: ‘Empty request’, ‘code’: 400, ‘errors’: [{‘message’: None, ‘reason’: ‘parseError’, ‘domain’: ‘global’}]}}
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
Built Distribution
File details
Details for the file radiocells-0.3.0.tar.gz
.
File metadata
- Download URL: radiocells-0.3.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81239efc37cf18945a72635ff4c87739864c5948f2ae6ced08b6e47792aebfb8 |
|
MD5 | 6bb9e241b666b4c2270fffc52fe0457c |
|
BLAKE2b-256 | 722fd5f644a06811439d293ea0d2e638a9739bb9cd7b56e42bdb7a36f125226a |
File details
Details for the file radiocells-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: radiocells-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7c2799060671c2f0a7b72ec2790f0aa00dd3b71165bae7c75eb61cc61a58868 |
|
MD5 | 1a5a00bca44ba290476a88d3196147ad |
|
BLAKE2b-256 | 56e1f60c31849a6d45a1d4cbb35f93125ae0ea097534b12a58dcfe9f869c3667 |