summaryrefslogtreecommitdiffstats
path: root/misc_scripts
diff options
context:
space:
mode:
authorkrakenrf <78108016+krakenrf@users.noreply.github.com>2023-08-07 12:47:45 +0200
committerGitHub <noreply@github.com>2023-08-07 12:47:45 +0200
commit5670a58bcb5ce427117db2a83e423d36dc042045 (patch)
tree8fc58f7dd0c32bf316591d6bd20c1411519c2bff /misc_scripts
parentUpdate gpsd_tracker_krakenmap.py (diff)
downloadkrakensdr_docs-5670a58bcb5ce427117db2a83e423d36dc042045.tar
krakensdr_docs-5670a58bcb5ce427117db2a83e423d36dc042045.tar.gz
krakensdr_docs-5670a58bcb5ce427117db2a83e423d36dc042045.tar.bz2
krakensdr_docs-5670a58bcb5ce427117db2a83e423d36dc042045.tar.lz
krakensdr_docs-5670a58bcb5ce427117db2a83e423d36dc042045.tar.xz
krakensdr_docs-5670a58bcb5ce427117db2a83e423d36dc042045.tar.zst
krakensdr_docs-5670a58bcb5ce427117db2a83e423d36dc042045.zip
Diffstat (limited to 'misc_scripts')
-rw-r--r--misc_scripts/sondehub_krakenmap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc_scripts/sondehub_krakenmap.py b/misc_scripts/sondehub_krakenmap.py
index d44308b..4a4d815 100644
--- a/misc_scripts/sondehub_krakenmap.py
+++ b/misc_scripts/sondehub_krakenmap.py
@@ -21,7 +21,7 @@ token = x.text
#print(x.text)
def on_message(message):
- beaconData = {'id': str(message['serial']), 'lat': message['lat'], 'lon': message['lon'], 'speed': round(message['vel_h'] * 3.6), 'height': int(message['alt']), 'heading' : int(message['heading'])}
+ beaconData = {'id': str(message['serial']), 'lat': message['lat'], 'lon': message['lon'], 'speed': round(message['vel_h'] * 3.6), 'height': round(message['alt']), 'heading' : round(message['heading'])}
x = requests.post(API_SERVER + '/beacon', json = beaconData, headers = {'Authorization': token})
#print(x.text)
#print(message['lat'])