{ "info": { "author": "Lars Falk-Petersen", "author_email": "dev@falkp.no", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: System :: Networking" ], "description": "WiFindme - Network Geolocation Services\n=========================================\n\nLocates the current wifi-enabled computer using nearby access points and\nhttps://radiocells.org/geolocation or \nhttps://wiki.mozilla.org/CloudServices/Location/FAQ \nor both.\n\nProject home: https://github.com/ways/wifindme\n\nTakes over from https://github.com/ways/locate-radiocells with the added benefit of Mozilla Location Services.\n\n----\n\nInstallation\n------------\n\n.. code:: bash\n\n $ pip install wifindme\n\nDependencies (handled by pip)\n-----------------------------\n\n* https://github.com/rockymeza/wifi/\n* https://pypi.python.org/pypi/requests/\n\nUsage\n-----\n\nMust run as root to get access to scanning on Linux.\n\nExample use:\n\n.. code:: python\n\n import wifindme\n accuracy, latlng = wifindme.locate(device='wlan0')\n\nExample script included in examples/, (prints out accuracy in meters, and coordinates):\n\n.. code:: bash\n\n $ sudo ./wifindme.py wlan0\n 30 (59.12345, 10.12345)\n\nCompatibility\n-------------\n\nPython 2 and 3. Only tested on Linux (Ubuntu, Fedora, Arch).\n\nDevelopment info\n----------------\n\nexample query sent to radiocells.org:\n\n.. code:: json\n\n curl -H \"Accept: application/json\" -H \"Content-type: application/json\" -X POST -d '{\"wifiAccessPoints\":[{\"macAddress\":\"24-DE-C6-A8-C9-64\",\"signalStrength\":-57}]}' https://radiocells.org/backend/geolocate\n\nExample response:\n\n.. code:: json\n\n {\"source\": \"wifis\", \"measurements\": 14, \"location\": {\"lat\": 59.12345, \"lng\": 10.12345}, \"accuracy\": 30}\n\nor on fail:\n\n.. code:: json\n\n {'resultType': 'error', 'results': {'source': 'none', 'measurements': 0, 'location': {'lat': 0.0, 'lng': 0.0}, 'accuracy': 9999}, 'error': {'message': 'Empty request', 'code': 400, 'errors': [{'message': None, 'reason': 'parseError', 'domain': 'global'}]}}\n\nTODO\n----\n\n* Notify https://wiki.mozilla.org/CloudServices/Location/Software\n* Support fetching location from both at the same time.\n* Googles API is compatible, so can add that as well.\n* Check with Mozilla if this can be packaged with test API key.\n* Correct radiocells \"accuracy\". They always give 30m...\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ways/wifindme", "keywords": "location", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "wifindme", "package_url": "https://pypi.org/project/wifindme/", "platform": "", "project_url": "https://pypi.org/project/wifindme/", "project_urls": { "Homepage": "https://github.com/ways/wifindme" }, "release_url": "https://pypi.org/project/wifindme/0.3.0/", "requires_dist": [ "requests", "setuptools", "wifi", "development; extra == 'json'" ], "requires_python": "", "summary": "Get position based on wifi APs and radiocells.org or Mozilla location database.", "version": "0.3.0" }, "last_serial": 3487612, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "ef2b7a69b6f21f83efa547803599e93f", "sha256": "8b69997c3458fb461f1b73bf9dc92f42ed9ef3577f40a4dcf14332bb5b8cf1bb" }, "downloads": -1, "filename": "wifindme-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ef2b7a69b6f21f83efa547803599e93f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9477, "upload_time": "2018-01-13T22:29:30", "url": "https://files.pythonhosted.org/packages/7e/6d/4ef1802f3cee7215a33974c906c9a78f93ca8e6bd56478afa2331251da13/wifindme-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e2c21608fed4f148f4a217b56c4e4f1f", "sha256": "ae17d28abe2f4f309dd6381905df7a466e87b3861ae8657295a5cac7ab3ca2a1" }, "downloads": -1, "filename": "wifindme-0.3.0.tar.gz", "has_sig": false, "md5_digest": "e2c21608fed4f148f4a217b56c4e4f1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5081, "upload_time": "2018-01-13T22:29:31", "url": "https://files.pythonhosted.org/packages/c9/ce/f0f3bafab13504995affa16599a82457ae197908ae6ab1668f67713f337e/wifindme-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ef2b7a69b6f21f83efa547803599e93f", "sha256": "8b69997c3458fb461f1b73bf9dc92f42ed9ef3577f40a4dcf14332bb5b8cf1bb" }, "downloads": -1, "filename": "wifindme-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ef2b7a69b6f21f83efa547803599e93f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9477, "upload_time": "2018-01-13T22:29:30", "url": "https://files.pythonhosted.org/packages/7e/6d/4ef1802f3cee7215a33974c906c9a78f93ca8e6bd56478afa2331251da13/wifindme-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e2c21608fed4f148f4a217b56c4e4f1f", "sha256": "ae17d28abe2f4f309dd6381905df7a466e87b3861ae8657295a5cac7ab3ca2a1" }, "downloads": -1, "filename": "wifindme-0.3.0.tar.gz", "has_sig": false, "md5_digest": "e2c21608fed4f148f4a217b56c4e4f1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5081, "upload_time": "2018-01-13T22:29:31", "url": "https://files.pythonhosted.org/packages/c9/ce/f0f3bafab13504995affa16599a82457ae197908ae6ab1668f67713f337e/wifindme-0.3.0.tar.gz" } ] }