(1) CONVENTIONAL METHOD
The conventional method to change number and distances of circles is to edit file /usr/share/dump1090-fa/html/config.js
, scroll down to following line, and change the number and distances (by default these are 100, 150, and 200 nm):
SiteCirclesDistances = new Array (100,150,200);
.
Note: In case of dump1090-mutability, the file to be edited is /usr/share/dump1090-mutability/html/config.js
.
(2) COMMAND LINE METHOD
The command line method described below is just as a novelty and for fun.
By default there are 3 circles at 100, 150 and 200 nm
To change the number and distance of circles, following two commands are required
First Command
If you want circles at 100,150,200,250, and 300 nm, the first command will be as below. If you want different distances, change the figures in commnd bellow according to what you want:
.
circles="100,150,200,250,300"
.
NOTE: There should be NO SPACE
between circles and =
between = and “100,150,200,250,300”
Second Command
NOTE: Simply copy-paste this command to avoid typing mistakes
.
(1) For dump1090-fa
It is a long command. Scroll right to see full command
sudo -S sed -i '/SiteCirclesDistances =.*/c\SiteCirclesDistances = new Array ('$circles');' /usr/share/dump1090-fa/html/config.js
.
(1) For dump1090-mutability
It is a long command. Scroll right to see full command
sudo -S sed -i '/SiteCirclesDistances =.*/c\SiteCirclesDistances = new Array ('$circles');' /usr/share/dump1090-mutability/html/config.js
.
DO NOT FORGET TO RELOAD THE BROWSER FOR CHANGES TO SHOW.
.
.Have fun