{ "info": { "author": "Michael Hirsch, Ph.D.", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: System :: Networking", "Topic :: Utilities" ], "description": "[![Python versions (PyPI)](https://img.shields.io/pypi/pyversions/mozilla-location-python.svg)](https://pypi.python.org/pypi/mozilla-location-python)\n\n[![Distribution format (PyPI)](https://img.shields.io/pypi/format/mozilla-location-python.svg)](https://pypi.python.org/pypi/mozilla-location-python)\n\n# mozilla-location-python\nUses nmcli on Linux in a short, simple Mozilla Location Services with Wifi from Python.\nGoal was to be as simple as possible.\n\nNote that a similar service with better accuracy is available from [Google](https://developers.google.com/maps/documentation/geolocation/intro).\nLet us know if you're interested.\n\n## Install\n```sh\npython -m pip install -e .\n```\n\n### prereqs\nLinux system with NetworkManager (e.g. Ubuntu, Raspberry Pi, etc.).\n\n\n\n## Usage\n```sh\n./MozLoc.py\n```\n\nReturns `dict()` containing `lat` `lng` `accuracy` `N BSSIDs heard`.\nIn urban areas, accuracy ~ 5 - 100 meters.\n\n\n### convert to KML\nYou can display your logged data in Google Earth or other KML value after converting by\n\n ./csv2kml.py in.log out.kml\n\nwith\n\n pip install simplekml\n\nNote that your time MUST be in ISO 8601 format or some KML reading programs such as Google Earth will just show a blank file.\nE.g.\n\n2016-07-24T12:34:56\n\n\n## Contributing\nPull request if you have another favorite approach.\nWould like to add Bluetooth, should be simple.\n\n\n## Notes\n\n* [Inspired by](https://github.com/flyinva/mozlosh)\n* [Alternative using Skyhook and geoclue](https://github.com/scivision/python-geoclue)\n* [Raspberry Pi NetworkManager](https://raspberrypi.stackexchange.com/a/73816)\n\n### Raspberry Pi 3\nDebian comes without NetworkManager by default.\nBe careful as you lose Wifi password etc. by this procedure\n\n1. Install network manager and remove the old\n ```sh\n apt install network-manager\n apt purge dhcpcd5\n ```\n reboot\n2. upon reboot, try\n ```sh\n nmcli dev wifi list\n ```\n you should see several wifi access points and signal.\n3. try the MLS geolocation program above.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/scivision/mozilla-location-wifi-python", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "mozilla-location-python", "package_url": "https://pypi.org/project/mozilla-location-python/", "platform": "", "project_url": "https://pypi.org/project/mozilla-location-python/", "project_urls": { "Homepage": "https://github.com/scivision/mozilla-location-wifi-python" }, "release_url": "https://pypi.org/project/mozilla-location-python/0.5.1/", "requires_dist": [ "pandas", "requests", "simplekml; extra == 'kml'", "nose; extra == 'tests'", "coveralls; extra == 'tests'" ], "requires_python": ">=3.6", "summary": "Using Mozilla Location services, log location vs. time using WiFi or convert to KML.", "version": "0.5.1" }, "last_serial": 3843089, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "f007b22c7d5b5b1e89fc0fa4736ec57d", "sha256": "41747c2a98e20daeffbc0bc34437e3c8e6ce839c88a83a6d9ac2aa5d4d894563" }, "downloads": -1, "filename": "mozilla_location_python-0.5.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f007b22c7d5b5b1e89fc0fa4736ec57d", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5680, "upload_time": "2018-01-01T21:21:49", "url": "https://files.pythonhosted.org/packages/00/22/a73875d2a47ac6ed923b7ea06118f2b6b2659d2c581e5e11118b4744bd67/mozilla_location_python-0.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "226eedd0c77ef65cfa9935003c745a8b", "sha256": "edf548220f4cd4ea713ef6ab9369acbba612a6e367acdde2add3922e215105c0" }, "downloads": -1, "filename": "mozilla-location-python-0.5.0.tar.gz", "has_sig": false, "md5_digest": "226eedd0c77ef65cfa9935003c745a8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3462, "upload_time": "2018-01-01T21:21:39", "url": "https://files.pythonhosted.org/packages/1a/b9/a4f97c90eb3b2663bc4c7df73d62841ef29afa6a0df55da761fd0af514c3/mozilla-location-python-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "15e338f1268c9b5951b559953060e9d9", "sha256": "322b6dd66237a78dbd3c6164b2829ea3fe580daa5146630de9a60d56e02fd2bf" }, "downloads": -1, "filename": "mozilla_location_python-0.5.1-py3-none-any.whl", "has_sig": false, "md5_digest": "15e338f1268c9b5951b559953060e9d9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6593, "upload_time": "2018-05-08T04:56:56", "url": "https://files.pythonhosted.org/packages/65/09/33b27050c5090a9a29f217bf2d513c0141adddee0cb77b4d09c0473b44c2/mozilla_location_python-0.5.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9cf118a3c153f9038252c2c7517068e5", "sha256": "a91d8b79b44168e1ce2eff14a6696ee5f9824b97125eef3fd67905f914e95566" }, "downloads": -1, "filename": "mozilla-location-python-0.5.1.tar.gz", "has_sig": false, "md5_digest": "9cf118a3c153f9038252c2c7517068e5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4329, "upload_time": "2018-05-08T04:56:57", "url": "https://files.pythonhosted.org/packages/2f/5a/a4369d200b37272d3db5d45504adb8881ec21777ad45f609b56621dd112c/mozilla-location-python-0.5.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "15e338f1268c9b5951b559953060e9d9", "sha256": "322b6dd66237a78dbd3c6164b2829ea3fe580daa5146630de9a60d56e02fd2bf" }, "downloads": -1, "filename": "mozilla_location_python-0.5.1-py3-none-any.whl", "has_sig": false, "md5_digest": "15e338f1268c9b5951b559953060e9d9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6593, "upload_time": "2018-05-08T04:56:56", "url": "https://files.pythonhosted.org/packages/65/09/33b27050c5090a9a29f217bf2d513c0141adddee0cb77b4d09c0473b44c2/mozilla_location_python-0.5.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9cf118a3c153f9038252c2c7517068e5", "sha256": "a91d8b79b44168e1ce2eff14a6696ee5f9824b97125eef3fd67905f914e95566" }, "downloads": -1, "filename": "mozilla-location-python-0.5.1.tar.gz", "has_sig": false, "md5_digest": "9cf118a3c153f9038252c2c7517068e5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4329, "upload_time": "2018-05-08T04:56:57", "url": "https://files.pythonhosted.org/packages/2f/5a/a4369d200b37272d3db5d45504adb8881ec21777ad45f609b56621dd112c/mozilla-location-python-0.5.1.tar.gz" } ] }