|
1 |
| -# RETIRED: Mozilla Location Services from Python |
| 1 | +# Scan WiFi from Python |
2 | 2 |
|
3 | 3 | [](https://github.com/scivision/mozilla-location-wifi/actions/workflows/ci.yml)
|
4 | 4 | [](http://pepy.tech/project/mozloc)
|
5 | 5 |
|
6 |
| -This project is RETIRED due to |
7 |
| -[discontinuation of Mozilla Location Services](https://discourse.mozilla.org/t/retiring-the-mozilla-location-service/128693). |
8 |
| -It worked so well, sorry to see it go! |
| 6 | +This project shows how to scan WiFi from Python using command line tools or pyobjc (macOS). |
9 | 7 |
|
10 |
| -This project can nonetheless be used as a reference for accessing WiFi information from Python. |
| 8 | +[Scapy dot11](https://scapy.readthedocs.io/en/latest/api/scapy.layers.dot11.html) is an alternative, more robust cross-platform way to scan WiFi than demonstrated here. |
| 9 | + |
| 10 | +[Discontinuation](https://discourse.mozilla.org/t/retiring-the-mozilla-location-service/128693) |
| 11 | +of |
| 12 | +[Mozilla Location Services API](https://ichnaea.readthedocs.io/en/latest/api/geolocate.html?highlight=macaddress#wifi-access-point-fields). |
| 13 | +is sad as it worked so well! |
| 14 | + |
| 15 | +This project can be used as a reference for simply accessing WiFi information from Python without using Scapy. |
11 | 16 |
|
12 | 17 | A future direction might be to use
|
13 | 18 | [Google Geolocation API](https://developers.google.com/maps/documentation/geolocation/intro)
|
14 | 19 |
|
15 | 20 | ---
|
16 | 21 |
|
17 |
| -Uses command line access to WiFi information via |
18 |
| -[Mozilla Location Services API](https://ichnaea.readthedocs.io/en/latest/api/geolocate.html?highlight=macaddress#wifi-access-point-fields) |
19 |
| -from Python. |
| 22 | +Uses command line access to WiFi information from Python. |
20 | 23 | The command line programs used to access WiFi information include:
|
21 | 24 |
|
22 | 25 | * Linux: [nmcli](https://developer.gnome.org/NetworkManager/stable/nmcli.html) NetworkManager
|
@@ -45,9 +48,10 @@ python -m mozloc
|
45 | 48 | ```
|
46 | 49 |
|
47 | 50 | Shows `time` `lat` `lng` `accuracy` `N BSSIDs heard`.
|
48 |
| -In urban areas, accuracy of less than 100 meters is possible. |
49 | 51 |
|
50 |
| -dump raw signals, without using API: |
| 52 | +When Mozilla Location Services were available, accuracy better than 100 meters was possible. |
| 53 | + |
| 54 | +Dump raw signals, without using API: |
51 | 55 |
|
52 | 56 | ```sh
|
53 | 57 | python -m mozloc --dump
|
|
83 | 87 |
|
84 | 88 | ## TODO
|
85 | 89 |
|
86 |
| -Would like to add Bluetooth beacons. Need to use a new location service. |
| 90 | +* Would like to add Bluetooth beacons. |
| 91 | +* Need to use a new location service. |
87 | 92 |
|
88 | 93 | ## Notes
|
89 | 94 |
|
|
0 commit comments