Reading aircraft.json - appear to be two files by that name

Discussion in 'Feeding' started by john, Sep 26, 2022.

  1. john

    john Member

    On the adsbexchange image there appear to be two aircraft.json files. One in /run/adsbexchange-feed and the other in /run/readsb. With just cursory glance they appear to be the same. If I wanted to extract information from it, which one should I use? Will one be going away in a future release?

    I have a python program which notifies me when selected a/c come into range.

    Thanks, .....John
     
  2. Dan

    Dan Administrator Staff Member

  3. john

    john Member

    Thanks. I don't receive 978 traffic so if that's the difference I wouldn't see it. I'm in Canada.
    Looking at the code, it's the /run/readsb one that is used for the http request.
     
    Last edited: Sep 26, 2022
  4. wiedehopf

    wiedehopf Administrator Staff Member

    Technically adsbexchange-feed and readsb services are somewhat redundant on the image.
     
  5. john

    john Member

    Is that because you now use aircraft.binCraft.zst? Please leave one or other of the aircraft.json files around for those of us that make use of it. thanks!
     
  6. wiedehopf

    wiedehopf Administrator Staff Member

    That's two services ... i'm just saying you could get away with one of the services with one just passing data to the other.
    Actually /run/adsbexchange-feed probably doesn't have mlat results .... not sure.

    There are no plans to remove the json ... i'm well aware many applications use it.