How can I get the track logs from my feeder?

Discussion in 'Feeding' started by DougK, May 21, 2022.

  1. DougK

    DougK New Member

    I have a new feeder which is working fine. I've located it at my airport and would like to get a copy of all the fixes (packets) my feeder has obtained. Is there a way to retrieve them from adsbexchange or can I capture them as they are sent out or perhaps there is some log kept on the rPi.
     
  2. wiedehopf

    wiedehopf Administrator Staff Member

  3. wiedehopf

    wiedehopf Administrator Staff Member

    I suppose i should also mention:

    Code:
         --net-json-port=<ports>   TCP json position output listen ports, sends
                                one line with a json object containing aircraft
                                details for every position received (default: 0)
         --net-json-port-include-noposition
    TCP json position output: include aircraft without
                                position (state is sent for aircraft for every
                                DF11 with CRC if the aircraft hasn't sent a
                                position in the last 10 seconds and interval
                                allowing)
         --net-json-port-interval=<seconds>
                                Set minimum interval between outputs per aircraft
                                for TCP json output, default: 0.0 (every
                                position)
    
    All of this stuff requires programming from your side.
    Well the destroy sd card thing linked is mostly configuring a bit ....
     
  4. DougK

    DougK New Member

    My end goal is to take the set of ADS-B fixes and examine them to get some statistics on traffic flow at our airport (include aircraft who are taxiing).
     
  5. wiedehopf

    wiedehopf Administrator Staff Member

    Well ... look at the data i suggested, whatever fits you best :)
    But you'll have to read some json and get it to whatever database you want to do your statistics with.
     
  6. DougK

    DougK New Member

    The "/tar1090/data/aircraft.json via http" worked but it seems to only give me current data. Is there documentation for the request (like how to specify a time interval)? JSON is a good way for me to get the information I need but I would like to poll the device only once every hour or day, but not every couple of seconds.
     
  7. wiedehopf

    wiedehopf Administrator Staff Member

    It doesn't write to disk by default ..... for good reasons.

    Why not poll every couple of seconds?
    Not sure how that is an issue.
    Anyhow i'll repeat, beyond what i posted you're on your own.

    Aggregate the data by polling every second or whatever and then process the aggregated data every day.
    Could even be separate programs.
    You could do it on the pi ... in tmpfs if you're fancy ... or torture the sd-card a bit by writing to it day in day out.
    Then process that every day .... get it via rsync or however.