MLAT aircraft image color and size - SOLVED


#1

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


#2

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.

Chris


#3

thanks, but neither setting worked…


#4

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.


#5

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.


#6

hi
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_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"



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


#7

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

mlat-yel


#8

Looks good! Glad it worked for you!