Skip to main content

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

Project description

[![Python versions (PyPI)](](

[![Distribution format (PyPI)](](

# 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]( 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 ./ `

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

./ in.log out.kml


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.


## 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.

Files for mozilla-location-python, version 0.5.1
Filename, size File type Python version Upload date Hashes
Filename, size mozilla_location_python-0.5.1-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mozilla-location-python-0.5.1.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page