-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Summary:
First: Thank you SO MUCH for creating this! This is exactly what I need for a project, especially amid the outages and other things going on at OpenSky. I know it was years ago, but it seems to ALMOST still work! I'll submit a PR shortly.
Narrative of the issue:
I have this script running in a Docker container where the CMD runs this script as specified. I did some extensive troubleshooting to the point where the script seemed to be running OK, but the output looks like this (i.e., this is what I see when I run "docker logs" for the container):
Error collecting data for 2024/3/6/1:29
Error collecting data for 2024/3/6/1:30
Error collecting data for 2024/3/6/1:30
Error collecting data for 2024/3/6/1:30
Error collecting data for 2024/3/6/1:30
Error collecting data for 2024/3/6/1:30
Things I tried & findings:
After some further troubleshooting and research, I created a pared-down, non-looping version of the script (collectDataOneOff.py
) to throw a useful error:
Traceback (most recent call last):
File "/init/collectDataOneOff.py", line 65, in <module>
track.append(s.heading)
^^^^^^^^^
AttributeError: 'StateVector' object has no attribute 'heading'
Conclusion:
Most likely, OpenSky just changed the name of that attribute from heading
to true_track
(on further research: yes, it seems they did so at API version 1.3.0 around 2018). Again, I expect to submit a PR for this.