dump1090 3D Viewer

Problem solved…?
If have double checked the 3d.zip file and it’s working fine.

Busy morning in Amsterdam :sunglasses:

naah still nothing… my piaware, plane plotter works fine, did checked the javascript non giving error.

why there is no script.js in your /js folder? or that script file no longer used?

Same here.
It seems the needed data is not getting fetched for some reason, so the screen / map remains empty.
The needed files dump1090-fa/data/receiver.json and aircraft.json can all be fetched using curl.
Same for pfPort: curl -i http://192.168.x.y:30053/ajax/aircraft.

A former release of 3D (from Jan. 2017) using the settings in js/script.js was working for me.

you are right, but then linux flavor was ‘jessie’. mine works till now in RPi with ‘jessie’.

Found it! No 'Access-Control-Allow-Origin' header is present on the requested resource.
Have to find out how to enable these in my config for lighttpd:nerd_face:

UPDATE1
Added file /etc/lighttpd/conf-available/10-setenv.conf:

server.modules += ( "mod_setenv" )

Added line:
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )

to file conf-available/89-dump1090.conf
Symlinked /etc/lighttpd/conf-available/10-setenv.conf in /etc/lighttpd/conf-enabled. Restarted lighttpd.

Now the error is gone, but the map (still) remains empty…

1 Like

Script is embedded in index.html

Do you get data , when you open the url in a browser

http://192.168.x.y/dump1090-fa/data/aircraft.json
http://192.168.x.y/dump1090-fa/data/receiver.json

Yes. tested with curl but Firefox / Chrome work too.

is this one working …?

http://www.ok1slm.cz:8084/3d/

Yes it does. Nice purple trails.

Okay it’s the same script…

Hmmmm…

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: