From b4909e142e3f0788731c6ac42866b101d4a8a14e Mon Sep 17 00:00:00 2001 From: krakenrf <78108016+krakenrf@users.noreply.github.com> Date: Thu, 27 Oct 2022 14:13:22 +1300 Subject: Update dump1090_krakenmap.py --- misc_scripts/dump1090_krakenmap.py | 7 +++---- 1 file 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) -- cgit v1.2.3