MLAT aircraft image color and size - SOLVED


I wanted to have MLAT aircraft displayed solid / vivid yellow and larger in Skyview.
can anybody help with settings please ?


Okay here’s what I’d recommend.

In the folder /usr/share/dump1090-fa/html. You’ll want to edit the file planeObjects.js find line 382 and add the following code.

    // Show MLat aircraft larger and in yellow
    if (this.position_from_mlat == true)
            col = 'hsl(60,100%,50%)';
            scaleFactor = 2;

play around with the scaleFactor if you want it larger, or the hsl values if you want the yellow, more yellow.



thanks, but neither setting worked…


We’ll need more info to debug. I’m running 3.6.2 of PiAware on a raspberian install. What’s version are you running? I put the code I shared in my planeObjects.js file and it definitely works for my version of the files.

Happy to email you my file if that’d help. Shoot me a pm with your email and I can send it over.


Here’s a screenshot of before and after. The top is an example of what an MLAT plane would look like by default. The bottom are an example of a 2x scale factor and in Yellow. If you want to change the border color away from blue, that can be found in the config.js.


I use piaware SD image 3.6.2

root@piaware:/home/pi# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION="9 (stretch)"

root@piaware:/home/pi# uname -a
Linux piaware 4.14.62-v7+ #1134 SMP Tue Aug 14 17:10:10 BST 2018 armv7l GNU/Linux


thanks, it works now, error as i added code AFTER line 382, scale 1.5



Looks good! Glad it worked for you!