I used to be able to set arbitrary site circles, for example:
SiteCirclesDistances = new Array(1,2,3,4,5,10,20,50,100,150,200,210,220,230,240,250)
Now there seems to be a different way to do it which is less meaningful to me, where the site circles can only show up at regular intervals defined by DefaultSiteCirclesCount, DefaultSiteCirclesBaseDistance, and DefaultSiteCirclesInterval
Does the new SkyAware no longer respect/support SiteCirclesDistances?
This looks like the way Range Rings are done in the @wiedehopf tar1090.
For the skyaware (cat /usr/share/dump1090-fa/html/config.js) I see this below. I tried changing it to something different but it did not work. I did a force Refresh but no such luck.
SiteCircles = true; // true to show circles (only shown if the center marker is shown)
// In miles, nautical miles, or km (depending settings value 'DisplayUnits')
DefaultSiteCirclesCount = 6;
DefaultSiteCirclesBaseDistance = 25;
DefaultSiteCirclesInterval = 25;
The above did not work for me so I am hoping someone can lend a hand!
EDIT: For what it is worth: changing SiteCircles in skyaware978 work as expected. I needed to do a force Refresh. But still does not work in skyaware at http://piaware.localdomain:8080.
After making above changes in file config.js and saving the file, do following:
(1) Reload Browser (Ctrl+F5)
(2) Press “Reset Map” button on top-right of map
No joy! I’ll try again with cleaning the cache but I’ve done that a few times already!
On my desktop computer I’ve tried 2 different browsers (Firefox 91.3.0esr and Safari Version 15.1) it works fine with skyaware978 and is “default” rings only on skyaware (the 3, 100, 50 numbers)
On my laptop with the same two browsers (Firefox 91.3.0esr and Safari Version 15.1) I see the same exact results.
FWIW: If I open the gear icon and I change the numbers to 6, 60, 60 and click Set Range Rings, all will change as expected.
I just downloaded a browser that I never used before. It is called LibreWolf.
LibreWolf sees the same issue as I see on Firefox and Safari. LibreWolf works fine with skyaware978 but I only see the “default” rings on skyaware (the 3, 100, 50 numbers). This is just too odd!!
So at the moment, it doesn’t seem like a browser cache issue. But I have no clue what it could be…
No, just no!
It’s static files served by the webserver and then the javascript is run in the webbrowser.
It’s not connected to any of the programs you run to feed or decode.
Well it uses json files produced by those programs as a data source for the planes but that’s not relevant for this part of the javascript …
I’d recommend everyone guessing around to try and understand the javascript that’s connected to the functionality that sets the range rings.
Once you set the range rings in the browser … the settings saved in the browser and not the default settings will be used.
You can clear the cookies for that page / use incognito mode and you’ll likely see the default values you put in the javascript.
Likely a bad implementation that ignores the defaults and has hard coded values or something.
Then it’s working as designed. Reset Map does exactly that: resets it to the default settings without your changes and customizations. It’s just like resetting a smartphone to the factory defaults. At least I think that’s how it works. I’m not using the piaware image so I can’t test it to confirm.
Either you did NOT save file (Ctrl+O)
OR
You did gave the command to save the file, but it was not implemented for some reason, may be it is read-only.
Reboot Pi then open file config.js and see what are the Default values of rings. Are these original 3 100 50 or the modified values?
FYI - I am including the skyaware978 since they work A-OK.
Before reboot:
pi@piaware:~ $ cat /usr/share/dump1090-fa/html/config.js | grep SiteCircles
SiteCircles = true; // true to show circles (only shown if the center marker is shown)
DefaultSiteCirclesCount = 6;
DefaultSiteCirclesBaseDistance = 25;
DefaultSiteCirclesInterval = 25;
pi@piaware:~ $ cat /usr/share/skyaware978/html/config.js | grep SiteCircles
SiteCircles = true; // true to show circles (only shown if the center marker is shown)
DefaultSiteCirclesCount = 3;
DefaultSiteCirclesBaseDistance = 25;
DefaultSiteCirclesInterval = 25;
pi@piaware:~ $ ls -al /usr/share/dump1090-fa/html/config.js /usr/share/skyaware978/html/config.js
-rw-r--r-- 1 root root 4721 Nov 28 13:28 /usr/share/dump1090-fa/html/config.js
-rw-r--r-- 1 root root 4839 Nov 28 17:11 /usr/share/skyaware978/html/config.js
and the reboot:
pi@piaware:~ $ sudo reboot
pi@piaware:~ $ Connection to 192.168.60.203 closed by remote host.
Connection to 192.168.60.203 closed.
iMac:~ jcm$
iMac:~ jcm$ ping piaware
PING piaware.localdomain (192.168.60.203): 56 data bytes
ping: sendto: Host is down
. . .
64 bytes from 192.168.60.203: icmp_seq=9 ttl=64 time=0.361 ms
^C
--- piaware.localdomain ping statistics ---
10 packets transmitted, 7 packets received, 30.0% packet loss
round-trip min/avg/max/stddev = 0.297/0.351/0.395/0.033 ms
iMac:~ jcm$
iMac:~ jcm$ ssh piaware
pi@192.168.60.203's password:
Permission denied, please try again.
pi@192.168.60.203's password:
Linux piaware 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Nov 30 09:41:53 2021 from 192.168.60.212
Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.
The date now is Tue 30 Nov 2021 09:48:10 AM CST
pi@piaware:~ $
and the config.js files (after reboot):
pi@piaware:~ $ cat /usr/share/dump1090-fa/html/config.js | grep SiteCircles
SiteCircles = true; // true to show circles (only shown if the center marker is shown)
DefaultSiteCirclesCount = 6;
DefaultSiteCirclesBaseDistance = 25;
DefaultSiteCirclesInterval = 25;
pi@piaware:~ $ cat /usr/share/skyaware978/html/config.js | grep SiteCircles
SiteCircles = true; // true to show circles (only shown if the center marker is shown)
DefaultSiteCirclesCount = 3;
DefaultSiteCirclesBaseDistance = 25;
DefaultSiteCirclesInterval = 25;
pi@piaware:~ $ ls -al /usr/share/dump1090-fa/html/config.js /usr/share/skyaware978/html/config.js
-rw-r--r-- 1 root root 4721 Nov 28 13:28 /usr/share/dump1090-fa/html/config.js
-rw-r--r-- 1 root root 4839 Nov 28 17:11 /usr/share/skyaware978/html/config.js
You are editing the wrong config.is file.
For the SkyAware pages you need to edit:
/usr/share/skyaware/html/config.js
not:
/usr/share/dump1090-fa/html/config.js