Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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

Project Description

# 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. Works with Python ≥ 3.6.

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

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

## Usage


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 sudo apt install network-manager sudo 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.

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.7 kB) Copy SHA256 Hash SHA256
Wheel 3.6 Jan 1, 2018
(3.5 kB) Copy SHA256 Hash SHA256
Source None Jan 1, 2018

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers