summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrakenrf <78108016+krakenrf@users.noreply.github.com>2023-08-07 12:42:55 +0200
committerGitHub <noreply@github.com>2023-08-07 12:42:55 +0200
commitad04357012290e1718c88158c60f96c0607cb9da (patch)
tree905b0077665dac0996b5fbaac425c73ccddb7e6b
parentUpdate adsbexchange_krakenmap.py (diff)
downloadkrakensdr_docs-ad04357012290e1718c88158c60f96c0607cb9da.tar
krakensdr_docs-ad04357012290e1718c88158c60f96c0607cb9da.tar.gz
krakensdr_docs-ad04357012290e1718c88158c60f96c0607cb9da.tar.bz2
krakensdr_docs-ad04357012290e1718c88158c60f96c0607cb9da.tar.lz
krakensdr_docs-ad04357012290e1718c88158c60f96c0607cb9da.tar.xz
krakensdr_docs-ad04357012290e1718c88158c60f96c0607cb9da.tar.zst
krakensdr_docs-ad04357012290e1718c88158c60f96c0607cb9da.zip
Diffstat (limited to '')
-rw-r--r--misc_scripts/dump1090_krakenmap.py4
1 files changed, 2 insertions, 2 deletions
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'])