×

Notice

The forum is in read only mode.

/states/all is missing index 17 "category"

1 year 1 week ago #2628 by gb96
Just signed up and started getting data from OpenSky-api and notice that all State Vectors returned are missing the last item, index 17 "category".

Using the Python API, here is an example printout of the StateVector.__dict__:

    {'icao24': '4b1805', 'callsign': 'SWR92E  ', 'origin_country': 'Switzerland', 'time_position': 1699946313, 'last_contact': 1699946313, 'longitude': -0.1318, 'latitude': 50.7506, 'baro_altitude': 7757.16, 'on_ground': False, 'velocity': 220.13, 'true_track': 144.42, 'vertical_rate': 8.45, 'sensors': None, 'geo_altitude': 7711.44, 'squawk': '2014', 'spi': False, 'position_source': 0}

I checked data from the API for locations in both Australia and UK, just to rule out a localised problem (local ADS-B receivers feeding truncated vectors).

Strange that also the sample data given in the Python API's also omits category data at index 17, so the problem has probably been around since before that example was authored?
 
8 months 1 week ago #2701 by strohmeier
Powered by Kunena Forum
This website uses cookies to offer you the best experience of our services. By using this website you agree to our privacy policy!