dump1090 3D Viewer

Hi,

I have been trying for a while to get this up and running on my FA 3.7.1 pi2 image. I’ve got to the point where I have the map working, but I cannot see any aircraft of the map. I think my problem is the host ip and dumpPort variables in the variable.js file.

Could someone please describe what a correctly formatted ip section should look like. I have tried various formats and ports with no joy,

thank you

Put here the IP-adress of the raspberry pi

var hostIp = 'http://111.222.333.444'; // example 'http:192.168.1.200'

port 80 or 8080 should work

var dumpPort = 80; // dump1090 port number

That changes the path.
At 8080 it’s at / while at 80 it’s at /dump1090-fa
Or does it work at /dump1090-fa as well on port 8080?

i just tested the new 3d-zip-file and looks like is working on both ports…

new version flightaware-only-installer version

sudo bash -c "$(wget -q -O - https://www.bramjacobse.nl/show/3d-install.sh --no-check-certificate )"

then edit variable.js

sudo nano /usr/local/share/shogooda3d/variable.js

Uninstall

sudo rm /etc/lighttpd/conf-enabled/88-shogooda3d.conf
sudo systemctl restart lighttpd
sudo rm -r /usr/local/share/shogooda3d

You know you could just change the lighttpd conf and put the aircraft.json into a subdirectory.
That way no IP needs to be added.

The url in the javascript would look like this:

url: 'data/aircraft.json'

And the lighttpd conf file would look something like this:

alias.url += (
  "/tar1090/data/" => "/run/dump1090-fa/",
  "/tar1090/" => "/usr/local/share/tar1090/html/"
)

I’m sure you can figure it out.
Note the data line needs to be above the other line.

1 Like

Thank you so much, that got it working just fine. I appreciate you taking the time to reply to me.

I tried to install using the installer and it appeared the download completed. (a zip file was downloaded). At the end of download it prompts to Run “service lighttpd force-reload” to enable changes. When I attempt to do this it asks for a password I don’t know. I restarted the pi and made the ip address change in the configuration file and can get into the 3d viewer with my browser. All I see are stars and rings around various airports. Any help to get working would be appreciated. Also, will I just be able to scroll to my location when I get it working (or will it pick up my piaware feeder’s location) Thanks, Will (who has no clue how any of this works. Can just follow directions…)

Enter your location, scrolling in that thing is annoying.

Only stars then you need to add Bing.key

// BingMap KEY

var BingMapsAPIKey = 'Ah1MNZ0pw-xxxxxxxxxxxxxxx';

Add your Radar location into the variables.js

// Location radar LAT / LON
var myLat = 52.2;
var myLon = 5.2;

just press the space-bar when you found a nice camera positions .
and copy the camera coordinates into the variables.js

And The postion of the Camare

// Default camera position (play and space key press)

var camLat = 51.8629;
var camLon = 4.688;

var camDist = 162213;
var camPan = -0.537; 
var camTilt = 1.059;

Thanks. I got it working. Found the bing key part for the map. Looks like I didn’t need to worry about doing anything with lighttpd after the install. Now for my request… Would like to be able to see 978 traffic as well (as in tar1090). Not sure what would be needed to integrate that. Thanks again for your awesome work!!!

1 Like

Looks like it already gets the 978 traffic. Great!!! How do you get the tags on the aircraft (type, route?) Also, is there (or will there be) a way to select (turn on/off) individual aircraft tracks. Also, filter by altitude without having to go into the configuration file. I wish I clue how this works. Need to get my kids to figure it out for me!!!

Big thanks to bramjacobse! I was able to download your zip file and follow your instructions.

Here is my 3D flight image. I am in Parsippany, New Jersey, USA. I am so happy :smile:

2 Likes

Hi thebaldgeek,

I looked at your posted image and have some questions.

  1. What program were you using to display those JSON lines?
  2. What port on the PiAware did you use to pull this JSON data?

Thanks!

That is just the browser debug console - you can open it by pressing F12.
The json data is available from dump1090-fa at the URL http://<pi IP>/data/aircraft.json or on the pi in the directory /run/dump1090-fa

@caius beat me too it.

  1. Yes, debug console.
  2. I am using my local planfinder feed, not from the Pi since I have several Pis and wanted the combined feed.
1 Like

@caius and @thebaldgeek

I found it and got to the JSON data using your instruction with “debug console” and the F12 key. Thanks, both of you for your speedy response! :+1:

I am very excited to play with the Cesium 3D in combination with PiAware. The 3D trajectories look much more lively than the 2D.

Cheers!

Hello Bram,
This is Ger, it is a year ago i ask you some questions mbt the 3d project, everything works perfect than. Because of some problems i did not do match with the 3d but now it is possible again. Last year i used dump1090-mutability, now dump1090-fa. The problem is now that i can not see the labels near to the planes. I no that FA and MUTABILITY are diverend in using the json files. Bram, is it possible to explain to me how to get the labels in -FA. I get data from the pfPort 30053 but this is differend from MUTABILITY. Many thanks in advance.
Greetings Ger

Windy Friday evening

1 Like

HI, I’ve got rings and flight data paths showing but on a star background even though I included the Bing Key in the the variable.js file. I’ve tried two different Bing Keys and still the same. Any ideas?

Hi

quick fix , change in index.html

<script src="https://cesiumjs.org/releases/1.60/Build/Cesium/Cesium.js"></script>

to

<script src="https://cesiumjs.org/Cesium/Build/CesiumUnminified/Cesium.js"></script>

Regards , Bram

Edit : i have updated the 3d.zip file

1 Like