Update to using .paw-gps.json files
Remove old link due to it not being too good, update file extension to .paw-gps.json for better support on problems with webgpsmap.
This commit is contained in:
parent
0fb81a11c4
commit
0ee0aaff37
@ -4,10 +4,7 @@ import pwnagotchi.plugins as plugins
|
|||||||
|
|
||||||
'''
|
'''
|
||||||
You need an bluetooth connection to your android phone which is running PAW server with the GPS "hack" from Systemik and edited by shaynemk
|
You need an bluetooth connection to your android phone which is running PAW server with the GPS "hack" from Systemik and edited by shaynemk
|
||||||
NEW BETTER GUIDE HERE: https://community.pwnagotchi.ai/t/setting-up-paw-gps-on-android
|
GUIDE HERE: https://community.pwnagotchi.ai/t/setting-up-paw-gps-on-android
|
||||||
|
|
||||||
Old guide here, (not recommended if you plan on using it with the webgpsmap plugin)
|
|
||||||
https://raw.githubusercontent.com/systemik/pwnagotchi-bt-tether/master/GPS-via-PAW
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
@ -30,7 +27,7 @@ class PawGPS(plugins.Plugin):
|
|||||||
ip = self.options['ip']
|
ip = self.options['ip']
|
||||||
|
|
||||||
gps = requests.get('http://' + ip + '/gps.xhtml')
|
gps = requests.get('http://' + ip + '/gps.xhtml')
|
||||||
gps_filename = filename.replace('.pcap', '.gps.json')
|
gps_filename = filename.replace('.pcap', '.paw-gps.json')
|
||||||
|
|
||||||
logging.info("saving GPS to %s (%s)" % (gps_filename, gps))
|
logging.info("saving GPS to %s (%s)" % (gps_filename, gps))
|
||||||
with open(gps_filename, 'w+t') as f:
|
with open(gps_filename, 'w+t') as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user