Skip to main content

Using Mozilla Location services, log location vs. time using WiFi or convert to KML.

Project description

[![Python versions (PyPI)](https://img.shields.io/pypi/pyversions/mozilla-location-python.svg)](https://pypi.python.org/pypi/mozilla-location-python)

[![Distribution format (PyPI)](https://img.shields.io/pypi/format/mozilla-location-python.svg)](https://pypi.python.org/pypi/mozilla-location-python)

# mozilla-location-python Uses nmcli on Linux in a short, simple Mozilla Location Services with Wifi from Python. Goal was to be as simple as possible.

Note that a similar service with better accuracy is available from [Google](https://developers.google.com/maps/documentation/geolocation/intro). Let us know if you’re interested.

## Install `sh python -m pip install -e . `

### prereqs Linux system with NetworkManager (e.g. Ubuntu, Raspberry Pi, etc.).

## Usage `sh ./MozLoc.py `

Returns dict() containing lat lng accuracy N BSSIDs heard. In urban areas, accuracy ~ 5 - 100 meters.

### convert to KML You can display your logged data in Google Earth or other KML value after converting by

./csv2kml.py in.log out.kml

with

pip install simplekml

Note that your time MUST be in ISO 8601 format or some KML reading programs such as Google Earth will just show a blank file. E.g.

2016-07-24T12:34:56

## Contributing Pull request if you have another favorite approach. Would like to add Bluetooth, should be simple.

## Notes

### Raspberry Pi 3 Debian comes without NetworkManager by default. Be careful as you lose Wifi password etc. by this procedure

  1. Install network manager and remove the old `sh apt install network-manager apt purge dhcpcd5 ` reboot

  2. upon reboot, try `sh nmcli dev wifi list ` you should see several wifi access points and signal.

  3. try the MLS geolocation program above.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mozilla-location-python-0.5.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

mozilla_location_python-0.5.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file mozilla-location-python-0.5.1.tar.gz.

File metadata

File hashes

Hashes for mozilla-location-python-0.5.1.tar.gz
Algorithm Hash digest
SHA256 a91d8b79b44168e1ce2eff14a6696ee5f9824b97125eef3fd67905f914e95566
MD5 9cf118a3c153f9038252c2c7517068e5
BLAKE2b-256 2f5aa4369d200b37272d3db5d45504adb8881ec21777ad45f609b56621dd112c

See more details on using hashes here.

File details

Details for the file mozilla_location_python-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mozilla_location_python-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 322b6dd66237a78dbd3c6164b2829ea3fe580daa5146630de9a60d56e02fd2bf
MD5 15e338f1268c9b5951b559953060e9d9
BLAKE2b-256 650933b27050c5090a9a29f217bf2d513c0141adddee0cb77b4d09c0473b44c2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page