MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_gps_track

Method get_gps_track

wardriving.py:831–841  ·  view source on GitHub ↗

Return GPS track as list of [lat, lon] points.

(self)

Source from the content-addressed store, hash-verified

829 band_6 = row['band_6'] or 0
830 camera_count = row['cameras'] or 0
831 strongest = conn.execute("SELECT bssid, ssid, best_rssi FROM networks ORDER BY best_rssi DESC LIMIT 1").fetchone()
832 trackpoints = conn.execute("SELECT COUNT(*) FROM gps_track").fetchone()[0]
833
834 # Bluetooth, cell and Zigbee counts (tables may not exist in old DBs)
835 bt_count = 0
836 cell_count = 0
837 zigbee_count = 0
838 try:
839 bt_count = conn.execute("SELECT COUNT(*) FROM bluetooth_devices").fetchone()[0]
840 except Exception:
841 pass
842 try:
843 cell_count = conn.execute("SELECT COUNT(*) FROM cell_towers").fetchone()[0]
844 except Exception:

Callers 2

wardriving_trackFunction · 0.95

Calls 3

connectMethod · 0.45
fetchallMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected