summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)