From ad04357012290e1718c88158c60f96c0607cb9da Mon Sep 17 00:00:00 2001 From: krakenrf <78108016+krakenrf@users.noreply.github.com> Date: Mon, 7 Aug 2023 22:42:55 +1200 Subject: Update dump1090_krakenmap.py --- misc_scripts/dump1090_krakenmap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc_scripts') diff --git a/misc_scripts/dump1090_krakenmap.py b/misc_scripts/dump1090_krakenmap.py index f30037b..2a0d383 100644 --- a/misc_scripts/dump1090_krakenmap.py +++ b/misc_scripts/dump1090_krakenmap.py @@ -6,7 +6,7 @@ import requests import json import time -API_SERVER = 'https://kraken.tynet.eu:8842' +API_SERVER = 'https://map.krakenrf.com' # Your Kraken Pro Cloud username email and password login = {'email': 'email', 'password': 'password'} @@ -23,7 +23,7 @@ while True: beaconData = [] for aircraft in data['aircraft']: try: - beaconData.append({'id': str(aircraft['flight']), 'lat': aircraft['lat'], 'lon': aircraft['lon'], 'speed': int(aircraft['gs']), 'height': aircraft['alt_geom'], 'heading': aircraft['mag_heading']}) + beaconData.append({'id': str(aircraft['flight']), 'lat': aircraft['lat'], 'lon': aircraft['lon'], 'speed': round(aircraft['gs']), 'height': round(aircraft['alt_geom']), 'heading': round(aircraft['mag_heading'])}) #print (aircraft['flight']) #print (aircraft['lat']) -- cgit v1.2.3