Code Monkey home page Code Monkey logo

passive-opensky-collection's People

Contributors

marcbrittain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pem884

passive-opensky-collection's Issues

No states collected, instead logs are filled with "Error collecting data for " datetime

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.