summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrakenrf <78108016+krakenrf@users.noreply.github.com>2023-08-07 12:42:02 +0200
committerGitHub <noreply@github.com>2023-08-07 12:42:02 +0200
commit4f05a38037e34c6da9f0d845010c0bd3330ea690 (patch)
treeafea4cce58ef2278f9a6a50c9edce6150c100513
parentUpdate sondehub_krakenmap.py (diff)
downloadkrakensdr_docs-4f05a38037e34c6da9f0d845010c0bd3330ea690.tar
krakensdr_docs-4f05a38037e34c6da9f0d845010c0bd3330ea690.tar.gz
krakensdr_docs-4f05a38037e34c6da9f0d845010c0bd3330ea690.tar.bz2
krakensdr_docs-4f05a38037e34c6da9f0d845010c0bd3330ea690.tar.lz
krakensdr_docs-4f05a38037e34c6da9f0d845010c0bd3330ea690.tar.xz
krakensdr_docs-4f05a38037e34c6da9f0d845010c0bd3330ea690.tar.zst
krakensdr_docs-4f05a38037e34c6da9f0d845010c0bd3330ea690.zip
-rw-r--r--misc_scripts/adsbexchange_krakenmap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_scripts/adsbexchange_krakenmap.py b/misc_scripts/adsbexchange_krakenmap.py
index f8dab15..d503c6b 100644
--- a/misc_scripts/adsbexchange_krakenmap.py
+++ b/misc_scripts/adsbexchange_krakenmap.py
@@ -10,7 +10,7 @@ KRAKEN_PRO_PASSWORD: "password"
# You may wish to limit your request rate more to avoid going over the limit of your account
REQUEST_RATE = 10
-KRAKEN_RPO_API_SERVER = 'https://kraken.tynet.eu:8842'
+KRAKEN_RPO_API_SERVER = 'https://map.krakenrf.com'
import requests
@@ -43,7 +43,7 @@ while run:
beaconData = []
for aircraft in data['ac']:
try:
- beaconData.append({'id': str(aircraft['flight']), 'lat': aircraft['lat'], 'lon': aircraft['lon'], 'speed': int(aircraft['gs']), 'height': aircraft['alt_geom'], 'heading': aircraft['track']})
+ beaconData.append({'id': str(aircraft['flight']), 'lat': aircraft['lat'], 'lon': aircraft['lon'], 'speed': round(aircraft['gs']), 'height': round(aircraft['alt_geom']), 'heading': round(aircraft['track'])})
#print (aircraft['flight'])
#print (aircraft['lat'])