summaryrefslogtreecommitdiffstats
path: root/misc_scripts
diff options
context:
space:
mode:
authorkrakenrf <78108016+krakenrf@users.noreply.github.com>2022-10-27 03:13:22 +0200
committerGitHub <noreply@github.com>2022-10-27 03:13:22 +0200
commitb4909e142e3f0788731c6ac42866b101d4a8a14e (patch)
tree568f07f5f4ce6c96882c20237f35e85ccedcfa25 /misc_scripts
parentUpdate dump1090_krakenmap.py (diff)
downloadkrakensdr_docs-b4909e142e3f0788731c6ac42866b101d4a8a14e.tar
krakensdr_docs-b4909e142e3f0788731c6ac42866b101d4a8a14e.tar.gz
krakensdr_docs-b4909e142e3f0788731c6ac42866b101d4a8a14e.tar.bz2
krakensdr_docs-b4909e142e3f0788731c6ac42866b101d4a8a14e.tar.lz
krakensdr_docs-b4909e142e3f0788731c6ac42866b101d4a8a14e.tar.xz
krakensdr_docs-b4909e142e3f0788731c6ac42866b101d4a8a14e.tar.zst
krakensdr_docs-b4909e142e3f0788731c6ac42866b101d4a8a14e.zip
Diffstat (limited to 'misc_scripts')
-rw-r--r--misc_scripts/dump1090_krakenmap.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/misc_scripts/dump1090_krakenmap.py b/misc_scripts/dump1090_krakenmap.py
index 63546c7..12e9896 100644
--- a/misc_scripts/dump1090_krakenmap.py
+++ b/misc_scripts/dump1090_krakenmap.py
@@ -1,3 +1,6 @@
+# Uploads ADS-B data from dump1090 to the Kraken Pro Mapping server.
+# Must run dump1090 with "--write-json" and have it write aircraft.json to the same directory as this script
+# e.g. ~/dump1090/package-bullseye/dump1090 --interactive --write-json .
import requests
import json
@@ -13,10 +16,6 @@ token = x.text
print(x.text)
-#beaconData = [{'id': "e80450", 'lat': -37.236809, 'lon': 171.337698, 'speed': 443, 'height': 37925, 'heading': 180},
-# {'id': "e80460", 'lat': -37.036809, 'lon': 171.137698, 'speed': 443, 'height': 37925, 'heading': 180}]
-#x = requests.post(API_SERVER + '/beacons', json = beaconData, headers = {'Authorization': token})
-
while True:
f = open('aircraft.json')
data = json.load(f)