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
[Inspired by](https://github.com/flyinva/mozlosh)
[Alternative using Skyhook and geoclue](https://github.com/scivision/python-geoclue)
[Raspberry Pi NetworkManager](https://raspberrypi.stackexchange.com/a/73816)
### Raspberry Pi 3 Debian comes without NetworkManager by default. Be careful as you lose Wifi password etc. by this procedure
Install network manager and remove the old `sh sudo apt install network-manager sudo apt purge dhcpcd5 ` reboot
upon reboot, try `sh nmcli dev wifi list ` you should see several wifi access points and signal.
try the MLS geolocation program above.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mozilla-location-python-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | edf548220f4cd4ea713ef6ab9369acbba612a6e367acdde2add3922e215105c0 |
|
MD5 | 226eedd0c77ef65cfa9935003c745a8b |
|
BLAKE2b-256 | 1ab9a4f97c90eb3b2663bc4c7df73d62841ef29afa6a0df55da761fd0af514c3 |
Hashes for mozilla_location_python-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41747c2a98e20daeffbc0bc34437e3c8e6ce839c88a83a6d9ac2aa5d4d894563 |
|
MD5 | f007b22c7d5b5b1e89fc0fa4736ec57d |
|
BLAKE2b-256 | 0022a73875d2a47ac6ed923b7ea06118f2b6b2659d2c581e5e11118b4744bd67 |