No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
timetoplatypus 36111a7ff0 This build has a known bug! Namely a client side crash caused by aircraft data point sets that only have one coordinate. This bug is patched only for the case where we limit queries to a certain time range. 2 years ago
flask This build has a known bug! Namely a client side crash caused by aircraft data point sets that only have one coordinate. This bug is patched only for the case where we limit queries to a certain time range. 2 years ago
LICENSE initial commit 2 years ago
README.md Update README.md 2 years ago
create-table.sql added sbs1 to geojson code 2 years ago
python_sds1.py fixed parsing issue 2 years ago
sbs1_mysql.py initial commit 2 years ago
sbs1_to_geojson.py get_geojson complete 2 years ago

README.md

python-sbs1

python client that reads SBS-1 data from socket and stores it in a MySQL database. Meant to be used with dump1090.

sbs_to_geojson.py exposes get_geojson(minutes, hexident) where: minutes = number of minutes in the past to display data for (0 for all data) hexident = hexident plane ID (0 for all planes)

examples

  • get data for the last 30 mins where the plane’s hexident matches ‘AAAAAA’

get_geojson(30,'AAAAAA')

  • get data for all time where the plane’s hexident matches ‘AAAAAA’

get_geojson(0,'AAAAAA')

  • get data for the last 30 mins for all planes

get_geojson(30,0)

  • get data for all time and all planes

get_geojson(0,0)