summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrakenrf <78108016+krakenrf@users.noreply.github.com>2023-08-07 12:40:53 +0200
committerGitHub <noreply@github.com>2023-08-07 12:40:53 +0200
commitc4eadd7dca7b48a6578dc519cca04c82642f8e66 (patch)
tree3e2995a0d2666cbc8c76ba42a68b225d31910346
parentUpdate adsbexchange_krakenmap.py (diff)
downloadkrakensdr_docs-c4eadd7dca7b48a6578dc519cca04c82642f8e66.tar
krakensdr_docs-c4eadd7dca7b48a6578dc519cca04c82642f8e66.tar.gz
krakensdr_docs-c4eadd7dca7b48a6578dc519cca04c82642f8e66.tar.bz2
krakensdr_docs-c4eadd7dca7b48a6578dc519cca04c82642f8e66.tar.lz
krakensdr_docs-c4eadd7dca7b48a6578dc519cca04c82642f8e66.tar.xz
krakensdr_docs-c4eadd7dca7b48a6578dc519cca04c82642f8e66.tar.zst
krakensdr_docs-c4eadd7dca7b48a6578dc519cca04c82642f8e66.zip
Diffstat (limited to '')
-rw-r--r--misc_scripts/sondehub_krakenmap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_scripts/sondehub_krakenmap.py b/misc_scripts/sondehub_krakenmap.py
index 9b38cce..d44308b 100644
--- a/misc_scripts/sondehub_krakenmap.py
+++ b/misc_scripts/sondehub_krakenmap.py
@@ -10,7 +10,7 @@ import requests
# The unique 8-digit Sonde identifier. Shown in the sondehub.org UI.
SONDE_ID = "U1140595"
-API_SERVER = 'https://map.krakenrf.com:443'
+API_SERVER = 'https://map.krakenrf.com'
# Your Kraken Pro Cloud username email and password
login = {'email': 'email', 'password': 'password'}
@@ -21,7 +21,7 @@ token = x.text
#print(x.text)
def on_message(message):
- beaconData = {'lat': message['lat'], 'lon': message['lon'], 'speed': 0, 'height': message['alt']}
+ 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'])}
x = requests.post(API_SERVER + '/beacon', json = beaconData, headers = {'Authorization': token})
#print(x.text)
#print(message['lat'])