Announcement

Collapse
No announcement yet.

distance from site not available

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Originally posted by ecosta View Post
    Btw...there is any way to reduce the distance between circles? The 1st one is a bit larger than the others.
    In Pi24 the map at ip-of-pi/dump1090/ does not show Site Marker and Site Circles if latitude and longitude are not added to procargs field in settings of fr24feed.

    After adding lat & lon, receiver marker and 3 Circles at 100, 150 and 200 nm from receiver start showing.


    How To Chage Radius and/or Number of Site Circles

    (1) SSH to Pi and make a backup copy of file config.js with name config.js.bak. This backup copy will enable you to revert in case somethong goes wrong.

    Code:
    cd /usr/share/dump1090-mutability/html
    
    sudo cp config.js config.js.bak


    (2) After making backup copy, edit file "config.js"
    Code:
    cd /usr/share/dump1090-mutability/html
    
    sudo nano config.js
    (3) Above command will open the file "config.js". Scroll down till you see following text:

    Code:
    // In nautical miles or km (depending settings value 'Metric')
    SiteCirclesDistances = new Array(100,150,200);
    (4) Modify circle radius in red above as you require. You can add a circle at 50 nm by changing above line as follows:

    Code:
    ​SiteCirclesDistances = new Array(50,100,150,200);
    ​​​​​​
    (5) Save file (Ctrl+o), close file (Ctrl+x)
    (6) Reload Browser (Ctrl+F5). Circle will appear with modified radius. If circles dont show modified distance, clear browser cache (Ctrl+Shift+Delete), then reload browser (Ctrl+F5).
    Last edited by abcd567; 2020-05-21, 01:23.

    Comment


    • #17
      It worked at the 1st try.
      Thank you again.

      Kind Regards,
      Emanuel

      Comment

      Working...
      X