Skip to main content

WiFindme - Network Geolocation Services

Locates the current wifi-enabled computer using nearby access points and https://radiocells.org/geolocation or https://wiki.mozilla.org/CloudServices/Location/FAQ or both.

Project home: https://github.com/ways/wifindme

Takes over from https://github.com/ways/locate-radiocells with the added benefit of Mozilla Location Services.


Installation

$ pip install wifindme

Dependencies (handled by pip)

Usage

Must run as root to get access to scanning on Linux.

Example use:

import wifindme
accuracy, latlng = wifindme.locate(device='wlan0')

Example script included in examples/, (prints out accuracy in meters, and coordinates):

$ sudo ./wifindme.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'}]}}

TODO

  • Notify https://wiki.mozilla.org/CloudServices/Location/Software

  • Support fetching location from both at the same time.

  • Googles API is compatible, so can add that as well.

  • Check with Mozilla if this can be packaged with test API key.

  • Correct radiocells “accuracy”. They always give 30m…

Metadata

Release files for wifindme 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wifindme 0.3.0
File Size Uploaded Provenance Actions
wifindme-0.3.0.tar.gz 5.1 kB Without provenance Details for wifindme-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wifindme 0.3.0
File Interpreter ABI Platform Actions
wifindme-0.3.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for wifindme-0.3.0-py2.py3-none-any.whl

Total release size: 14.6 kB

Release files / wifindme-0.3.0.tar.gz

Download URL wifindme-0.3.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ae17d28abe2f4f309dd6381905df7a466e87b3861ae8657295a5cac7ab3ca2a1
BLAKE2b-256 checksum
How to use checksums
c9cef0f3bafab13504995affa16599a82457ae197908ae6ab1668f67713f337e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / wifindme-0.3.0-py2.py3-none-any.whl

Download URL wifindme-0.3.0-py2.py3-none-any.whl
Size 9.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8b69997c3458fb461f1b73bf9dc92f42ed9ef3577f40a4dcf14332bb5b8cf1bb
BLAKE2b-256 checksum
How to use checksums
7e6d4ef1802f3cee7215a33974c906c9a78f93ca8e6bd56478afa2331251da13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for wifindme 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page