summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrakenrf <78108016+krakenrf@users.noreply.github.com>2023-08-07 12:46:30 +0200
committerGitHub <noreply@github.com>2023-08-07 12:46:30 +0200
commit768c5026bbcb6e29d3b49e615d2835639cbd2d91 (patch)
treec0fc478297bbe17421c6ec42830dbefaf5ac8eb5
parentUpdate dump1090_krakenmap.py (diff)
downloadkrakensdr_docs-768c5026bbcb6e29d3b49e615d2835639cbd2d91.tar
krakensdr_docs-768c5026bbcb6e29d3b49e615d2835639cbd2d91.tar.gz
krakensdr_docs-768c5026bbcb6e29d3b49e615d2835639cbd2d91.tar.bz2
krakensdr_docs-768c5026bbcb6e29d3b49e615d2835639cbd2d91.tar.lz
krakensdr_docs-768c5026bbcb6e29d3b49e615d2835639cbd2d91.tar.xz
krakensdr_docs-768c5026bbcb6e29d3b49e615d2835639cbd2d91.tar.zst
krakensdr_docs-768c5026bbcb6e29d3b49e615d2835639cbd2d91.zip
-rw-r--r--misc_scripts/gpsd_tracker_krakenmap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_scripts/gpsd_tracker_krakenmap.py b/misc_scripts/gpsd_tracker_krakenmap.py
index 8134e1d..52fb8ef 100644
--- a/misc_scripts/gpsd_tracker_krakenmap.py
+++ b/misc_scripts/gpsd_tracker_krakenmap.py
@@ -7,7 +7,7 @@ import requests
gpsd.connect()
time.sleep(2)
-API_SERVER = 'https://map.krakenrf.com:443'
+API_SERVER = 'https://map.krakenrf.com'
login = {'email': 'email', 'password': 'password'}
while(1):
@@ -27,7 +27,7 @@ while(1):
print("lat: " + str(lat))
print("lon: " + str(lon))
- beaconData = {'lat': lat, 'lon': lon, 'speed': 0, 'height': 0}
+ beaconData = {'id': 'mygps', 'lat': lat, 'lon': lon, 'speed': 0, 'height': 0, 'heading': 0}
x = requests.post(API_SERVER + '/beacon', json = beaconData, headers = {'Authorization': token})
except (gpsd.NoFixError, UserWarning):