From 4f05a38037e34c6da9f0d845010c0bd3330ea690 Mon Sep 17 00:00:00 2001 From: krakenrf <78108016+krakenrf@users.noreply.github.com> Date: Mon, 7 Aug 2023 22:42:02 +1200 Subject: Update adsbexchange_krakenmap.py --- misc_scripts/adsbexchange_krakenmap.py | 4 ++-- 1 file 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']) -- cgit v1.2.3