You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mozilla-location-python

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mozilla-location-python

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

0.5.1
pipPyPI
Maintainers
1

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

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

  • Install network manager and remove the old
    apt install network-manager
    apt purge dhcpcd5
    
    reboot
  • upon reboot, try
    nmcli dev wifi list
    
    you should see several wifi access points and signal.
  • try the MLS geolocation program above.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.