xRange from Airnav

The "to-do" list for Virtual Radar Server is as long as my arm, but if you want to pile more work onto it then this is for you.
Post Reply
nzradar
Posts: 20
Joined: Wed Nov 07, 2012 4:42 am
Location: New Zealand

xRange from Airnav

Post by nzradar » Fri Mar 09, 2018 9:46 am

Hi,

I have one of these boxes that sends ADS-b and Mode-S messages to the Airnav server, however I have yet to find a port that sends any recognisable format......yet! But I have located the JSON formatted data and the port it transmits on but while VRS can connect and the data count increments, no flights are detected which I presume means that the JSON format is not exactly a standard format. This is the format, just a couple of flights at the moment:

Code: Select all

{ "now" : 1520588575.1,
  "messages" : 39530,
  "aircraft" : [
    {"hex":"000000","mlat":[],"tisb":[],"messages":5,"seen":210.5,"rssi":-26.1},
    {"hex":"c81464","squawk":"5526","altitude":16000,"mlat":[],"tisb":[],"messages":2865,"seen":0.2,"rssi":-5.4},
    {"hex":"c87f00","squawk":"6554","flight":"KIW895  ","altitude":23325,"category":"A0","mlat":[],"tisb":[],"messages":5551,"seen":0.0,"rssi":-10.0},
    {"hex":"c822ea","squawk":"5531","flight":"APK75   ","lat":-41.295745,"lon":173.219750,"nucp":7,"seen_pos":0.4,"altitude":34000,"vert_rate":128,"track":199,"speed":412,"category":"A0","mlat":[],"tisb":[],"messages":13171,"seen":0.3,"rssi":-12.9}
  ]
}
I'm no expert but maybe someone can decipher JSON formats. Could this be applied for these boxes to the VRS?

If you have an xRange receiver try this to see your JSON data:

http://ip_address_of_xRange:32084/data/aircraft.json

Cheers,
Mike
Michael
New Zealand
Flightaware Flightfeeder System/VRS

Skibox
Posts: 136
Joined: Mon Apr 07, 2014 7:06 pm
Location: ESGG

Re: xRange from Airnav

Post by Skibox » Fri Mar 09, 2018 10:06 am

You need to convert the JSON structure into the fields and formats VRS expects.

I have done that for another data source using jq, in a bash script running on a Raspberry.

The principle is

nc | jq | nc


viewtopic.php?f=4&t=1317

nzradar
Posts: 20
Joined: Wed Nov 07, 2012 4:42 am
Location: New Zealand

Re: xRange from Airnav

Post by nzradar » Fri Mar 09, 2018 11:54 pm

Thanks for that but to this layman it's gobbedegook as I have no coding skills, don't get the coding concept or understand what I would do to solve my problem, but hey, that's OK I appreciate your effort to help.
Michael
New Zealand
Flightaware Flightfeeder System/VRS

agw
Posts: 2130
Joined: Fri Feb 17, 2012 3:20 am

Re: xRange from Airnav

Post by agw » Mon Mar 19, 2018 12:08 am

I can add support if this is something that's enabled straight out of the box. I'll send you a PM about it.

nzradar
Posts: 20
Joined: Wed Nov 07, 2012 4:42 am
Location: New Zealand

Re: xRange from Airnav

Post by nzradar » Tue Mar 20, 2018 6:57 pm

I've PM'ed you two messages but my profile says theses messages are still in my outbox, have you actually received them?
Michael
New Zealand
Flightaware Flightfeeder System/VRS

agw
Posts: 2130
Joined: Fri Feb 17, 2012 3:20 am

Re: xRange from Airnav

Post by agw » Sat Mar 24, 2018 9:32 pm

I did, yes. I think phpBB shows them in the outbox until they're read.

I've added support for Airnav xRange, it'll appear in the next preview. Thanks to both you and UA4WIY for the sample feeds :)

Post Reply