dump1090 3D Viewer

Dump1090-fa version 3.6.2 `?

 # dpkg -l | grep piaware
ii  piaware             3.6.2~bpo8+1 

But I run dump1090-mutability 1.15~dev.

could you post a little bit off your aircraft json file…?
I think that the format of the json file is different.

Aircraft:

curl http://192.168.x.y/dump1090-fa/data/aircraft.json\?\=1534076724802
{ "now" : 1534081058.6,
  "messages" : 1929223,
  "aircraft" : [
    {"hex":"4848d9","flight":"PH4C2   ","altitude":950,"category":"B4","mlat":[],"tisb":[],"messages":8,"seen":3.3,"rssi":-14.0},
    {"hex":"45c869","squawk":"2351","flight":"FLI7145 ","lat":51.988748,"lon":4.652239,"nucp":7,"seen_pos":10.9,"altitude":39000,"vert_rate":0,"track":32,"speed":482,"mlat":[],"tisb":[],"messages":56,"seen":9.4,"rssi":-14.0},
    {"hex":"48418c","squawk":"1000","flight":"KLM1961 ","lat":51.883540,"lon":5.993958,"nucp":5,"seen_pos":6.5,"altitude":23025,"vert_rate":-64,"track":124,"speed":419,"category":"A0","mlat":[],"tisb":[],"messages":178,"seen":1.5,"rssi":-15.7},
    {"hex":"4408a2","altitude":37025,"mlat":[],"tisb":[],"messages":2,"seen":36.5,"rssi":-22.9},
    {"hex":"3c09f4","mlat":[],"tisb":[],"messages":6,"seen":90.1,"rssi":-17.3},
    {"hex":"3d14e6","mlat":[],"tisb":[],"messages":2,"seen":86.9,"rssi":-24.3},
    {"hex":"4851f7","squawk":"3150","flight":"KLM871  ","lat":52.731303,"lon":5.322091,"nucp":7,"seen_pos":39.5,"altitude":18375,"vert_rate":2304,"track":59,"speed":451,"category":"A5","mlat":[],"tisb":[],"messages":432,"seen":14.1,"rssi":-8.3},
...

Receiver:

curl http://192.168.x.y/dump1090-fa/data/receiver.json 
{ "version" : "v1.15~dev", "refresh" : 1000, "history" : 120, "lat" : 53.215070, "lon" : 6.570990 }

Full JSON of aircraft: "dump1090-fa/data/aircraft.json\?\=1534076724802" - Pastebin.com

ok sciprt embedded noted. and yep, i can see the data

The 3d-script needs - alt_baro and not altitude
you could try to change all ‘this.alt_baro’ in the index.html back to ‘this.altitude’ in the index, html file.
maybe this works with dump1090-mutability 1.15~dev

Check this post in the thread

2 Likes

That did the trick!
rpl "this.alt_baro" "this.altitude" index.html
Thanks, Bram! :tada:

:grinning: , and now post some screenshots :airplane:

What version of dump1090 are you using…?

Dump1090-fa or dump1090-mutability !?

Screenshot. I’m next to GRQ / EHGG.

1 Like

exactly right ! I have it so on my other RPi.

1 Like

busy evening LGAV

used additional code to get as close as possible ‘radar info’
FL, rate, GS as myStringB and substituted type with myStringB.

                                                var myFL = parseInt(this.alt_baro / 100)
                                                if ((this.alt_baro / 100) < 51)
                                                myFL = parseInt(this.alt_baro / 100) + "00"

                                                var myGS = parseInt(this.gs / 10)
                                                var myGSnm = parseInt(this.gs / 60)

// 3-digit track  10°  to  010°
                                                var myTRK = parseInt(this.track)
                                                if (this.track < 100)
                                                myTRK = "0" + myTRK
                                                if (this.track < 10)
                                                myTRK = "0" + myTRK

                                                var VSI = parseInt(this.baro_rate / 100)

                                                var myVSI = '▰' // level
                                                if ((this.baro_rate / 100) > 1) // VSI > 1      // climb$
                                                myVSI = '▴'
                                                if ((this.baro_rate / 100) < -1) // VSI < -1    // desce$
                                                myVSI = '▾'

                        var myStringB = myFL + " " + myVSI +"   " + myGS
1 Like

im using dump1090-fa

Ok, solved, its an old version of dump1090-fa. Any chances I can make the fps higher? Thank you & Welldone.

1 Like

Hello Bram,
The download link doesn’t seem to work :frowning: ?

A sunny day

Next up to include, 3D terrain tiles:

1 Like

It is already 3d…

Nice patterns last week

1 Like

3D surface disappeared!