Airplane count from json and Grafana dashboard not aligned

Discussion in 'Other technical not related to ADSBx Feeding' started by dlwerthe, Apr 12, 2020.

Tags:
  1. dlwerthe

    dlwerthe New Member

    I'm trying to understand how many distinct planes are visible in the aircraft.json file from dump1090. It seems that what I'm seeing on the Grafana dashboard doesn't line up with how I'm interpreting the json file.

    For instance for this json file:

    { "now" : 1586663903.7,
    "messages" : 329812,
    "aircraft" : [
    {"hex":"780233","squawk":"4166","flight":"CPA096 ","lat":37.674774,"lon":-122.409902,"nucp":7,"seen_pos":4.8,"altitude":35000,"vert_rate":0,"track":153,"speed":518,"category":"A5","mlat":[],"tisb":[],"messages":300,"seen":2.4,"rssi":-19.3},
    {"hex":"a1a697","mlat":[],"tisb":[],"messages":304,"seen":129.3,"rssi":-22.2}
    ]
    }

    Reading this myself, it looks like there are two total airplanes: one with location information (hex 780233) and one without (hex a1a697). Yet the Grafana dashboard reports:
    - one aircraft total, comprised of:
    - - one aircraft with location
    - - zero aircraft without location

    Thanks for any insight you might be able to provide!

    Regards,
    David
     
  2. wiedehopf

    wiedehopf Administrator Staff Member

    "seen":129.3

    That means last seen 129 seconds ago, not sure what the cutoff for grafana is, but it's shorter.
     
  3. dlwerthe

    dlwerthe New Member

    Thanks - appreciate the help!
     
  4. James

    James Guest

    Dump1090 exporter only looks grabs data every 60 seconds from aircraft.json.