Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemariva/upygeo
Geolocation on WiPy 2.0 (MicroPython) without GPS Module, only WiFi
https://github.com/lemariva/upygeo
esp32 example-project geo-location micropython wifi wipy
Last synced: 13 days ago
JSON representation
Geolocation on WiPy 2.0 (MicroPython) without GPS Module, only WiFi
- Host: GitHub
- URL: https://github.com/lemariva/upygeo
- Owner: lemariva
- License: apache-2.0
- Created: 2017-10-29T11:37:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-29T14:06:49.000Z (about 7 years ago)
- Last Synced: 2023-03-04T23:43:09.740Z (almost 2 years ago)
- Topics: esp32, example-project, geo-location, micropython, wifi, wipy
- Language: Python
- Homepage: https://lemariva.com/blog/2017/11/micropython-wipy2-0-geolocalization-using-wlan
- Size: 10.7 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uPyGeo
Geolocation on WiPy 2.0 (MicroPython) without GPS Module, only WiFiAbout this Repository
--------------
This code uses a WiPy2.0 and the Google Geolocation API as a Geo-Datalogger without GPS.Example
------------------------
```python
from geoposition import geolocatessid_ = #usually defined in your boot.py file
google_api_key = #get from google
geo_locate = geolocate(google_api_key, ssid_) #geo_locate objectvalid, location = geo_locate.get_location()
if(valid):
print("The geo position results: " + geo_locate.get_location_string())```
The class initializer receives the following arguments
* `google_api_key`: Google API key that you get clicking on the link available here;
* `wlan_check_interval`: It defines the wait time between checking for new WiFi signals (in seconds (default = 1));
* `mcc`: Mobile Country Codes (MCC) (default=262 -o2 Germany), you can find some values here;
* `mnc`: Mobile Network Codes (MNC) (default=11 -o2 Germany), same as `mcc`.Changelog
-------------
Revision 0.1 (initial commit)More Info
---------------
* [Tutorial](https://lemariva.com/blog/2017/11/micropython-wipy2-0-geolocalization-using-wlan) - available from 01.11.2017
* [Google Geolocation API](https://developers.google.com/maps/documentation/geolocation/intro)