{"id":22718848,"url":"https://github.com/lemariva/upygeo","last_synced_at":"2025-09-25T22:03:15.888Z","repository":{"id":49352623,"uuid":"108728901","full_name":"lemariva/uPyGeo","owner":"lemariva","description":"Geolocation on WiPy 2.0 (MicroPython) without GPS Module, only WiFi","archived":false,"fork":false,"pushed_at":"2017-10-29T14:06:49.000Z","size":11,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T08:48:16.414Z","etag":null,"topics":["esp32","example-project","geo-location","micropython","wifi","wipy"],"latest_commit_sha":null,"homepage":"https://lemariva.com/blog/2017/11/micropython-wipy2-0-geolocalization-using-wlan","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lemariva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-29T11:37:27.000Z","updated_at":"2024-11-16T19:08:56.000Z","dependencies_parsed_at":"2022-09-23T22:10:24.903Z","dependency_job_id":null,"html_url":"https://github.com/lemariva/uPyGeo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemariva%2FuPyGeo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemariva%2FuPyGeo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemariva%2FuPyGeo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemariva%2FuPyGeo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemariva","download_url":"https://codeload.github.com/lemariva/uPyGeo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248758381,"owners_count":21156957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp32","example-project","geo-location","micropython","wifi","wipy"],"created_at":"2024-12-10T14:11:22.760Z","updated_at":"2025-09-25T22:03:10.847Z","avatar_url":"https://github.com/lemariva.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uPyGeo\nGeolocation on WiPy 2.0 (MicroPython) without GPS Module, only WiFi\n\n\nAbout this Repository\n--------------\nThis code uses a WiPy2.0 and the \u003ca href=\"https://developers.google.com/maps/documentation/geolocation/intro\" target=\"_blank\"\u003eGoogle Geolocation API\u003c/a\u003e as a Geo-Datalogger without GPS.\n\n\nExample\n------------------------\n```python\nfrom geoposition import geolocate\n\nssid_ = \u003cyour ssid\u003e  \t\t\t\t\t\t\t#usually defined in your boot.py file\ngoogle_api_key = \u003cAPI_KEY\u003e \t\t\t\t\t  \t#get from google\ngeo_locate = geolocate(google_api_key, ssid_)\t#geo_locate object\n\nvalid, location = geo_locate.get_location()\nif(valid):\n\tprint(\"The geo position results: \" + geo_locate.get_location_string())\n\n```\n\nThe class initializer receives the following arguments\n\n* `google_api_key`: Google API key that you get clicking on the link available \u003ca href=\"https://goo.gl/hTU1sZ\" target=\"_blank\"\u003ehere\u003ci class=\"uk-icon-justify uk-icon-link\"\u003e\u003c/i\u003e\u003c/a\u003e;\n* `wlan_check_interval`: It defines the wait time between checking for new WiFi signals (in seconds (default = 1));\n* `mcc`: Mobile Country Codes (MCC) (default=262 -o2 Germany), you can find some values \u003ca href=\"http://mcc-mnc.com/\" target=\"_blank\"\u003ehere\u003ci class=\"uk-icon-justify uk-icon-link\"\u003e\u003c/i\u003e\u003c/a\u003e;\n* `mnc`: Mobile Network Codes (MNC) (default=11 -o2 Germany), same as `mcc`.\n\n\nChangelog\n-------------\nRevision 0.1 (initial commit)\n\nMore Info\n---------------\n* [Tutorial](https://lemariva.com/blog/2017/11/micropython-wipy2-0-geolocalization-using-wlan) - available from 01.11.2017\n* [Google Geolocation API](https://developers.google.com/maps/documentation/geolocation/intro)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemariva%2Fupygeo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemariva%2Fupygeo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemariva%2Fupygeo/lists"}