Using Mozilla Location services, log location vs. time using WiFi or convert to KML.
Mozilla Location Services from Python
Uses command line access to WiFi information in a short, simple Mozilla Location Services with Wifi from Python. The command line programs used to access WiFi information include:
Note that a similar service with better accuracy is available from Google. Let us know if you're interested.
Get latest release
pip install mozloc
or for latest development version
git clone https://github.com/scivision/mozilla-location-wifi/ pip install -e mozilla-location-wifi/
N BSSIDs heard.
In urban areas, accuracy of less than 100 meters is possible.
dump raw signals
On Windows, NetSH is used. You may need to disconnect from WiFi (leave WiFi enabled) to make your WiFi chipset scan and be able to get location.
convert to KML
Display logged data in Google Earth or other KML viewer after converting from CSV to KML:
python csv2kml.py 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.
Would like to add Bluetooth beacons.
To print verbose information about nearby WiFi:
netsh wlan show networks mode=bssid
Raspberry Pi 3 / 4 / Zero W
Debian comes without NetworkManager by default. Be careful as you lose Wifi password etc. by this procedure
- Install network manager and remove the old
apt install network-manager apt purge dhcpcd5reboot
- upon reboot, try
nmcli dev wifi listyou should see several wifi access points and signal.
- try the MLS geolocation program above.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size mozloc-1.2.0.tar.gz (10.7 kB)||File type Source||Python version None||Upload date||Hashes View|