Ver 3.5 range circles


#1

Hiall,

Been on holidays for 3 months. Had my units fall over and tidying up my settings now. (Unfortunately lost all my precious recorded data with FA because new setups recorded when reconnected :frowning: ) Currently working both mutability and FA versions of 1.15 / 3.50. I have been trolling through trying to find the latest set up for range circles, which I have had working in previous versions. Indeed on SD card updated to current versions and still has working range circles etc. But having trouble setting up a new SD card with the correct settings. Just a link to the setting that will work with the latest 1.15 / 3.50 versions.

Jeff


#2

HI,

I have noted there have been some changes to my previous settings used and appreciate as code changes, so does the script to maintain what has been developed.

Jeff


#3

I am not at my home, so can’t answer after checking. Answering from memory.
If the dump 1090-mutability v1.15~dev was installed by Joe Procazkha’s scripts, do this:

sudo nano /usr/share/dump1090-mutability/html/config.js

In file config.is, scroll down till you find a line
Metric="false; "

Remove quotes " " (but don’t remove the ; semi colon), so the line becomes
Metric=false;

Save the file config.js, and restart dump1090-mutability

sudo systemctl restart dump1090-mutability

Now clear cache of your browser, and reload/refresh the map in your browser, and hopefully you will see the range rings in **nautical miles ** 100, 200, and 250.

GOOD LUCK!

EDIT:
(1) Folder “html” was missing in command "sudo nano /usr/share/dump1090-mutability/html/config.js"
Now I have added it.

(2) By default, there are 3 circles at 100, 150 & 200 nm. If you want to add more circles, go to following line in “config.js” and add numbers as shown in red.

SiteCirclesDistances = new Array(50,100,150,200,250,300);


#4

Thanks my friend, I will let you all know how it goes. So many posts on this subject, but yours seem to be the most reliable. :slight_smile:

Jeff


#5

Yep that worked, now to colour…


#6

Following are two OUT DATED threads for dump1090-mutability and for dump1090-fa.
These have become outdated due to changes made during upgrades in files:
"/usr/share/dump1090-mutability/html/script.js"
and
"/usr/share/dump1090-fa/html/script.js".

If someone is aware of how to do it in latest versions of dump1090-mutability and dump1090-fa, it will help many if shared.

How To Get Alternating BLUE/RED Circles In Dump1090?

How To Get Blue/Red Circles In Piaware 3.1.0/dump1090-fa?


#7

Yes, I can confirm they are outdated as particular script mentioned to search for are not there any more. :slight_smile:

Jeff


#8

Updated method for colored circles for dump1090-mutability ver1.15~dev



#enter the html folder
cd /usr/share/dump1090-mutability/html/

#make a copy of script.js by the name script_orig.js before modifications.
#this way you will have a backup copy in case somrthing goes wrong.
sudo cp script.js script_orig.js

#open file script.js for editing
sudo nano script.js


The last command above will open the file “script.js” for editing
Press Ctrl+w, then type siteCircle, then press Enter key. The cursor will jump to siteCircle.
Make changes as shown in red below, save the file and exit the editor.
Reload the Browser to see map with colored circles.

NOTE:
Forum is blocking me to post the code. Code below is a screenshot of Word file. Download the Word file containing code to facilitate copy-paste.
dropbox.com/s/0nwof781qem2h … 0-mut.docx


#9

Yay, another problem solved, thanks mystro. The dashed lines is a good upgrade to previous version. I did see some where someone added that little tweak, thanks :slight_smile: Now, the range limit lines that heywhatsthat produces, I remember you can colour those too … ??


#10

Updated method for colored circles for dump1090-fa (Version 3.5.0)



#enter the html folder
cd /usr/share/dump1090-fa/html/

#make a copy of script.js by the name script_orig.js before modifications.
#this way you will have a backup copy in case somrthing goes wrong.
sudo cp script.js script_orig.js

#open file script.js for editing
sudo nano script.js


The last command above will open the file “script.js” for editing

Press Ctrl+w, then type circleStyle , then press Enter key. The cursor will jump to the line:
var circleStyle = function(distance) {

Make changes as shown in red below, save the file and exit the editor.
Reload the Browser to see map with colored circles.

NOTE:
Forum is blocking me to post the code. Code below is a screenshot of Word file. Download the Word file containing code to facilitate copy-paste.

dropbox.com/s/kdtsll7oscg3i … 90-fa.docx


#11

Thank you for posting that for dump1090-fa (version 3.5.0)


#12

Yay another success!!! Just a question though, when installing the fa version via joe’s site, it installs piaware ver 3.10. Doing a check install after initial set up, finds no upgrade. My mutability install via Joe’s site, upgrades/installs piaware ver 3.5. I something busted in that fa section or does the fa ver only install 3.10?? I will be this query oin the ads b receiver site as well incase there is something busted.

Jeff


#13

Joe’s script fail to install dump1090-fa 3.5.0 or even 3.1.0. However they do install Piaware 3.5.0 data feeder. Please see the post linked below for workaround.

[S O L V E D] Broken installation of dump1090-fa by JP’s Scripts [S O L V E D]


#14

@ abcd… worked a treat, thanks again :slight_smile: