Skip to main content

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

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

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.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

mozilla_location_python-0.5.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mozilla-location-python-0.5.0.tar.gz
Algorithm Hash digest
SHA256 edf548220f4cd4ea713ef6ab9369acbba612a6e367acdde2add3922e215105c0
MD5 226eedd0c77ef65cfa9935003c745a8b
BLAKE2b-256 1ab9a4f97c90eb3b2663bc4c7df73d62841ef29afa6a0df55da761fd0af514c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mozilla_location_python-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41747c2a98e20daeffbc0bc34437e3c8e6ce839c88a83a6d9ac2aa5d4d894563
MD5 f007b22c7d5b5b1e89fc0fa4736ec57d
BLAKE2b-256 0022a73875d2a47ac6ed923b7ea06118f2b6b2659d2c581e5e11118b4744bd67

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