All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: Wrong aircraft icons in 3.5.0?
PostPosted: Sun May 07, 2017 12:07 pm 
Offline
m4ilm4n - FlightAware user avatar

Joined: Sun Sep 22, 2013 3:35 pm
Posts: 7
Just noticed it today after upgrading a while back - A330s and C130s use the four-engine 747/A340/A380 icon; the A330 should use the two-engine widebody icon and the C130 had its own. There are some other mismatches that I haven't been able to pin down -

I tried clearing local cache data, different browsers, updating the Pi - all to no effect.

Anyone have any ideas?


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Sun May 07, 2017 12:25 pm 
Offline
FlightAware Staff
obj - FlightAware user avatar

Joined: Tue Sep 30, 2014 7:14 pm
Posts: 3459
Screenshots? (Include the aircraft detail pane)


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Sun May 07, 2017 4:47 pm 
Offline
m4ilm4n - FlightAware user avatar

Joined: Sun Sep 22, 2013 3:35 pm
Posts: 7
Hope this works - here's a DH8 using the Beech icon.
http://imgur.com/a/17rjA


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Sun May 07, 2017 5:37 pm 
Offline
m4ilm4n - FlightAware user avatar

Joined: Sun Sep 22, 2013 3:35 pm
Posts: 7
And here's a C130 using the 747 icon:
http://imgur.com/a/P7KFu


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Sun May 07, 2017 8:06 pm 
Offline
FlightAware Staff
obj - FlightAware user avatar

Joined: Tue Sep 30, 2014 7:14 pm
Posts: 3459
m4ilm4n wrote:
Hope this works - here's a DH8 using the Beech icon.

That is the generic twin-turboprop (L2T) icon where no closer match is available.
Quote:
And here's a C130 using the 747 icon:

That is the generic L4T icon where no closer match is available.

dump1090 has a limited number of icons to pick from; can you suggest better mappings for these aircraft types?
See markers.js


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Mon May 08, 2017 7:42 am 
Offline
SEFL - FlightAware user avatar

Joined: Mon Apr 17, 2017 4:38 pm
Posts: 21
Don't have a screenshot but FedEx DC10s show up as small plane icons and the planes are quite large.


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Mon May 08, 2017 3:37 pm 
Offline
m4ilm4n - FlightAware user avatar

Joined: Sun Sep 22, 2013 3:35 pm
Posts: 7
The odd thing is they worked in the previous version. I scanned through markers.js, and now on my second perusal, since I know zero about javascript, I found that the Beech and C130 are commented out?

// 'BE20': _b200,
// 'C130': _c130,

And the DH8 series are indeed set to twin_small:
'DH8A': 'twin_small',
'DH8B': 'twin_small',
'DH8C': 'twin_small',
'DH8D': 'twin_small',

PS: I have also seen the DC10/MD11 appear as generic small jet.


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Mon May 08, 2017 4:36 pm 
Offline
bobcat1656 - FlightAware user avatar

Joined: Tue Dec 06, 2016 1:16 pm
Posts: 5
Quote:
'BSCA': 'heavy_4e', // hah!


Apparently one of the devs thought a BSCA is funny lol

Obj did say that they only had a limited amount of icons. Maybe they chose to use a generic icon in place for space reasons? Does anyone know where the actual aircraft icons are located in the file system. I can't seem to find them with a quick look.

Or are those large amount of numbers in each category in markers.js actually drawing the icons out?


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Mon May 08, 2017 5:51 pm 
Offline
FlightAware Staff
obj - FlightAware user avatar

Joined: Tue Sep 30, 2014 7:14 pm
Posts: 3459
bobcat1656 wrote:
Quote:
'BSCA': 'heavy_4e', // hah!


Apparently one of the devs thought a BSCA is funny lol

There for completeness (IIRC I was filling in all the 747 variants), not because you're likely to see one ;-)
It's a bit like the "transatmospheric" ADS-B category identifier..

Quote:
Obj did say that they only had a limited amount of icons. Maybe they chose to use a generic icon in place for space reasons? Does anyone know where the actual aircraft icons are located in the file system. I can't seem to find them with a quick look.

Or are those large amount of numbers in each category in markers.js actually drawing the icons out?

Yes, those are svg outlines which define the icon shapes.


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Mon May 08, 2017 8:04 pm 
Offline
FlightAware Member
FlyingPeteNZ - FlightAware user avatar

Joined: Thu Aug 04, 2016 10:47 pm
Posts: 156
Location: Auckland, New Zealand
The database is pretty straightforward to update and create your own. I maintain a DB down this part of the world (South Pacific) with all the local and regular international visitors in it.

Pretty much all you need is the ICAO code and the aircraft type for the DB to show up the correct icon (or closest approximation), I have also added other fields to mine which you can modify the code to read as well (Owner, Aircraft type description etc).

There is a Python script that converts a correctly formatted CSV file to the JSON DB, default CSV format looks like this (the desc field is not used in the vanilla FA code though):

icao24,r,t,desc
3A21ED,F-OIPN,AT76,ATR-GIE ATR 72-212A
3A24C5,F-OJGF,A343,Airbus A340-313
3A2641,F-OJSB,A320,Airbus A320-232
3A2644,F-OJSE,A320,Airbus A320-202
3A266D,F-OJTN,A343,Airbus A340-313
3A2DD5,F-OLOV,A343,Airbus A340-313
3A344F,F-ONCP,C25C,Cessna 525C

Here is a link to the Python Script:
http://iaucklan63.net/csv-to-json.py

I run this on my desktop and copy the JSON DB over to my PI, syntax is:

python csv-to-json.py vrs.csv db

Where vrs.csv is the CSV file as formatted above and DB is the output directory. You should have an empty directory for the output. You should also delete all the json files out of the DB directory on the Pi before copying in the new one. To test you will need to clear the cache on your browser first or start a new private session.

Also if you are really brave I have compiled a whole pile of extra icons for many aircraft types, it is sort of ported to 3.5.0 with some caveats, thread on that here (might want to jump to end as most of the screenshots are now dead thanks to DropBox changing their rules):

http://discussions.flightaware.com/ads-b-flight-tracking-f21/some-custom-svg-plane-icons-t37783.html

If you have a good DB my markers.js is pretty much a drop in and replace.


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Sun May 14, 2017 10:41 am 
Offline
m4ilm4n - FlightAware user avatar

Joined: Sun Sep 22, 2013 3:35 pm
Posts: 7
Thanks Pete. Between yours and the original I'll play around to see if I can "mix and match" a bit.


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Sun May 14, 2017 5:46 pm 
Offline
n112 - FlightAware user avatar

Joined: Thu Apr 09, 2015 5:03 pm
Posts: 9
I have a small airplane icon for SKW3498 A1412F
Aircraft type: PA-18
19,200 ft 377kts.
A little fast for a piper (super cub?)


Unable to get screen shot.
I believe that I have seen this before in 3.5.0.
Today this was an older PiAware.

This is a text cut and paste of the info pop up window
"Show All Tracks
Hide All Tracks
FlightAware.com SKW3498 A1412F
Registration:
N180FF
Country of registration:
United States
Aircraft Type:
PA18
Source:
ADS-B
Squawk:
6643
Speed:
415 kt
Altitude:
▼ 28,875 ft
Distance:
6.1 NM
Heading:
179° (South)
Position:
38.512°, -122.536°
Vertical Rate:
-2240 ft/min
Last Seen:
now
Messages:
4122
RSSI:
-5.2 dBFS
AirFrames.org
See Aircraft Photos"

/usr/share/dump1090-fa/html/db/A14.json
"12C":{"t":"C180"},
"12E":{"desc":"L3J"},
"12F":{"t":"PA18"}, <-----
"130":{"desc":"L1P"},


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Sun May 14, 2017 8:14 pm 
Offline
FlightAware Staff
obj - FlightAware user avatar

Joined: Tue Sep 30, 2014 7:14 pm
Posts: 3459
n112 wrote:
I have a small airplane icon for SKW3498 A1412F
Aircraft type: PA-18
19,200 ft 377kts.
A little fast for a piper (super cub?)

PA-18 is correct per the FAA: http://registry.faa.gov/aircraftinquiry ... rtxt=180FF

Be aware that there are a non-zero number of aircraft with misprogrammed transponders.
The aircraft in this case was _probably_ N184SY (A1512F)


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Sun May 14, 2017 10:33 pm 
Offline
n112 - FlightAware user avatar

Joined: Thu Apr 09, 2015 5:03 pm
Posts: 9
OBJ, Thank you for answering so fast and pointing out the root cause.


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Mon May 15, 2017 10:50 pm 
Offline
SEFL - FlightAware user avatar

Joined: Mon Apr 17, 2017 4:38 pm
Posts: 21
How about this DC10:
Image
http://imgur.com/013SSNK


Top
 Profile  
 
 Post subject: Re: Wrong aircraft icons in 3.5.0?
PostPosted: Tue May 16, 2017 5:03 am 
Offline
FlightAware Staff
obj - FlightAware user avatar

Joined: Tue Sep 30, 2014 7:14 pm
Posts: 3459
There is no triple-jet icon, so you get the generic one.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: CommandPost2017, k6rtm and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: