Yes, running Mutabilityā¦I have distance, but donāt have Bearing. Iām looking for āPlane is 240Ā° @ 52NM from siteā information. Mutability is halfway there, and I have the Position info as well in Lat/Long, but would love if Plane Lat/Long vs Site Location Lat/Long was calculated into a Bearing.
I chose to overwrite the files from the Github and the dump1090 page wonāt load. The loading bar goes all the way to the right and just spins. Thoughts?
Upon further testing, just copying the new script.js to the existing directory breaks it.
You canāt do that, the files are dependent on each other and must be used as a set, you canāt mix and match. Pull all the files in the html folder over except for config.js. For config.js you need to add the extra lines to your existing file.
If you still have problems open the JavaScript console or debugger in your browser and let us know what the error message(s) are.
You must enter the additional lines at the end of the config.js file. These declare new variables that the updated script.js relies on. If the variables are not set, then the new script.js wonāt work and youāll see the never-ending spinner.
Wanted to use it in the data block for a selected aircraft, so instead of just āDistance from Siteā, it will read āBearing/Distance from Siteā for that aircraft.
@usafpride - you just keep installing a very small part of the needed changes. This is exactly what you will get if you ignore the above advice from both me and mgunther to update your config.js. : The edits you suggest to to the new script.js are NOT needed and will instead break the Range system.
Can I suggest you do the following to start again:
Save your current config.js file to a different location.
Copy everything (including sub-folders) that is in the public_html folder on github.com/lignumaqua/dump1090 over your current public_html folder
Edit your curent, saved, config.js, by adding the following lines at the end.
// Grid size for heatmap. Range in miles from Site. Default 200.
HeatMapRange = 200;
// Set Altitudes and Colors for Range Rings
// RangeAltitude is an array of altitudes in feet
// Use 99999 for range at any altitude
// RangeColor is a corresponding array containing the color values of the rings
RangeAltitude = new Array(99999,30000,10000);
RangeColor = new Array('#008000','#000080','#800000');
// Allow use of MLAT data for the range poly
UseMlatDataForRange = true;
Put your edited config.js back in the public_html folder
I did follow your advice and I copied everything over from GitHub brand new. Completely new install. config.js contains those lines already. Maybe Iām not getting the most recent copy from GitHub, but I simply did a
Still no joy. Clean install results in these errors with FF 44.0
Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead jquery.min.js:1:0
unreachable code after return statement script.js:1142:8
ReferenceError: RangeAltitude is not defined
script.js:22:17
unreachable code after return statement script.js:1142:8
39.93922141570338 45.72077858429662 -89.4288833207844 -81.55111667921557 script.js:621:9
InvalidValueError: not an Array <unknown>
"Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required" util.js:23:322
, ran your update script. The page now loads, but with no planes showing. Error is as follows
Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead jquery.min.js:1:0
unreachable code after return statement script.js:1142:8
39.93922141570338 45.72077858429662 -89.4288833207844 -81.55111667921557 script.js:621:9
Starting to load history (120 items) script.js:283:17
Loading history #0 script.js:296:9
unreachable code after return statement script.js:1142:8
GET XHR http://192.168.1.107:20800/dump1090/upintheair.json [HTTP/1.1 404 Not Found 26ms]
Loading history #1
<snip>
Done loading history script.js:318:9
Sorting history script.js:324:17
Applying history 0/120 at: 1454775386.7 script.js:330:25
TypeError: PolyRange[j] is undefined planeObject.js:349:1
upintheair.json makes sense not being there as it isnāt in the repo to copy over.
These lines are in config.sys
// Grid size for heatmap. Range in miles from Site. Default 200.
HeatMapRange = 200;
// Set Altitudes and Colors for Range Rings
// RangeAltitude is an array of altitudes in feet
// Use 99999 for range at any altitude
// RangeColor is a corresponding array containing the color values of the rings
RangeAltitude = new Array(99999,30000,10000);
RangeColor = new Array('#008000','#000080','#800000');
// Allow use of MLAT data for the range poly
UseMlatDataForRange = true;
Ah - thanks! I test in Safari, IE, Chrome, and Opera. Havenāt used Firefox in many yearsā¦ Looks like I need to install it and address its quirks. Sorry you had these problems.
(Iām used to javscript consoles that separate errors from console logs, thanks also for solving that mystery.)