Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Missing some statistics in the json files #211

Open
misko85 opened this issue Dec 27, 2022 · 3 comments
Open

Request: Missing some statistics in the json files #211

misko85 opened this issue Dec 27, 2022 · 3 comments

Comments

@misko85
Copy link

misko85 commented Dec 27, 2022

I tried to find the following statistics in the JSON files.

  • Total Aircraft
  • With Positions
  • Position History
  • ADS-B Message Rate

Are they not available?
Could these statistics still be added?
Best Regards.

@mutability
Copy link

Total Aircraft
With Positions

These can be derived from aircraft.json

Position History

dump1090 doesn't maintain position history, this is a web-interface-side thing.

ADS-B Message Rate

There's lots of message counters in existing stats output; differentiate those wrt time.

@misko85
Copy link
Author

misko85 commented Dec 29, 2022

Sorry, but I can´t see any payload in aircraft.json that will give me the number of "Total Aircraft" and "With Position". There ist only one object with a number of total messages and a array with aircraft informations. The only option ist to count the array length to get the number of airplanes. But these are all airplains with and without positions.

Example output of the aircraft.json:
{"now":1672333118.1,"messages":29352292,"aircraft":[{"hex":"4853d3","alt_baro":29775,"alt_geom":28950,"gs":420.6,"track":147.8,"baro_rate":1920,"version":0,"nac_p":8,"nac_v":1,"sil":2,"sil_type":"unknown","mlat":[],"tisb":[],"messages":18,"seen":13.2,"rssi":-21.3},{"hex":"49d034","flight":"TVS434F ","alt_baro":40000,"alt_geom":38925,"gs":388.3,"ias":229,"tas":434,"mach":0.76,"track":205,"track_rate":0,"roll":-0.5,"mag_heading":211.5,"baro_rate":0,"geom_rate":0,"squawk":"3517","emergency":"none","category":"A3","nav_qnh":1013.6,"nav_altitude_mcp":40000,"nav_altitude_fms":40000,"nav_heading":212.3,"lat":51.783965,"lon":5.28717,"nic":8,"rc":186,"seen_pos":24.9,"version":2,"nic_baro":1,"nac_p":8,"nac_v":1,"sil":3,"sil_type":"perhour","gva":1,"sda":2,"modea":true,"modec":true,"mlat":[],"tisb":[],"messages":343,"seen":5.2,"rssi":-20.9},{"hex":"c038a3","flight":"ACA843 ","alt_baro":28925,"alt_geom":28375,"gs":427.8,"ias":313,"tas":470,"mach":0.808,"track":305.1,"track_rate":0,"roll":-0.2,"mag_heading":296.2,"baro_rate":1088,"geom_rate":1152,"squawk":"2531","emergency":"none","category":"A5","nav_qnh":1012.8,"nav_altitude_mcp":32000,"nav_heading":295.3,"nav_modes":["autopilot","vnav","lnav","tcas"],"lat":50.974654,"lon":6.820831,"nic":8,"rc":186,"seen_pos":0.2,"version":2,"nic_baro":1,"nac_p":9,"nac_v":1,"sil":3,"sil_type":"perhour","gva":2,"sda":2,"modea":true,"modec":true,"mlat":[],"tisb":[],"messages":890,"seen":0.1,"rssi":-14.7},{"hex":"4073ce","flight":"VIR365 ................ }]

@mutability
Copy link

Yes, that's exactly what you do: iterate through the aircraft array and classify the aircraft however you want.

Here's an old example of doing just that: https://github.com/mutability/dump1090-tools/blob/master/collectd/dump1090.py#L199

(graphs1090 probably has more up to date code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants