@obj @bovineone
Good Morning,
I have been tracking the live flight stream by enabling the “enable-firehose” setting on our PiAware at port 1501. Apart from this, I am also looking at the data in the aircraft.json file that I can access by going to http://XX.XXX.XXX.XXX:1502/skyaware/data/aircraft.json. See flight data samples obtained by both means.
Sample flight data from the firehose-like stream at port 1501 on the PiAware
data is {‘facility_hash’: ‘01234567’, ‘alt’: ‘18300’, ‘lon’: ‘-76.83677’, ‘gs’: ‘189’, ‘type’: ‘position’, ‘hexid’: ‘A04B68’, ‘air_ground’: ‘A’, ‘gps_alt’: ‘18900’, ‘ident’: ‘#A04B68’, ‘clock’: ‘1667490086’, ‘id’: ‘A04B68-1667490087-piaware-39’, ‘heading’: ‘180’, ‘lat’: ‘39.21085’, ‘baro_alt’: ‘18300’, ‘updateType’: ‘A’, ‘facility_name’: ‘Local ADS-B’, ‘pitr’: ‘1667490087’}
Sample flight data from the aircraft.json file. This data corresponds to a different flight than the one above.
{“hex”:“ad21bc”,“flight”:"SWA971 ",“alt_baro”:11850,“alt_geom”:12325,“gs”:358.9,“ias”:295,“tas”:352,“mach”:0.548,“track”:260.5,“track_rate”:0.03,“roll”:-0.2,“mag_heading”:271.6,“baro_rate”:2816,“geom_rate”:2240,“squawk”:“7064”,“emergency”:“none”,“category”:“A3”,“nav_qnh”:1029.6,“nav_altitude_mcp”:16992,“nav_heading”:40.1,“lat”:38.967575,“lon”:-77.390320,“nic”:7,“rc”:371,“seen_pos”:0.6,“version”:2,“nic_baro”:1,“nac_p”:8,“nac_v”:1,“sil”:3,“sil_type”:“perhour”,“gva”:1,“sda”:2,“mlat”:,“tisb”:,“messages”:988,“seen”:0.0,“rssi”:-7.1}
My questions are:
-
Why is there a difference in the data keys between the two? Is it possible for us to get the same data that we see in the .json but through the firehose-like stream at 1501 port?
-
For now, my main issue is that, I am unable to access the call sign that appears with the key “flight” in the .json BUT that does not appear anywhere in the firehose-stream. Any idea how I can access at least this one from the firehose-like stream at port 1501?
Thanks for your help in advance.
Regards,
Satish