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

Include Aircraft Registration in InfluxDB export? #115

Open
tejasitraj opened this issue Aug 16, 2022 · 1 comment
Open

Include Aircraft Registration in InfluxDB export? #115

tejasitraj opened this issue Aug 16, 2022 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@tejasitraj
Copy link

Hi! Would it be possible to add a tag for aircraft's registration (SE-RPK, for example) when sending data over to InfluxDB? Thanks!

@mikenye
Copy link
Member

mikenye commented Feb 9, 2023

The data that gets sent to InfluxDB is effectively the SBS JSON, interpreted by Telegraf.

The JSON details for each aircraft look like this:

{"Sig":134,"Icao":"7C4203","Alt":1350,"GAlt":1325,"InHg":29.80,"TAlt":3008,"Call":"VOZ9264 ","Lat":-31.873619,"Long":115.984572,"PosTime":1675920958167,"Mlat":false,"Tisb":false,"Spd":130,"SpdTyp":0,"Trak":193,"TrkH":false,"Sqk":"3641","Vsi":-704,"VsiT":1,"Gnd":false,"Trt":3,"Cmsgs":11505}

As you can see, there's no track information provided.

Furthermore, looking at the /run/readsb/aircraft.pb file, the information isn't captured here either.

In order to implement this, we'd need to re-write exporting the flight data to InfluxDB, and have something look up the ICAO/Callsign against a route database.

I'll mark this as help-wanted. And will happily accept PRs for this.

@mikenye mikenye self-assigned this Feb 9, 2023
@mikenye mikenye added the help wanted Extra attention is needed label Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants