· 6 years ago · Jan 30, 2020, 09:22 PM
1// --------------------------------------------------------
2//
3// This file is to configure the configurable settings.
4// Load this file before script.js file at gmap.html.
5//
6// --------------------------------------------------------
7
8// -- Title Settings --------------------------------------
9// Show number of aircraft and/or messages per second in the page title
10PlaneCountInTitle = true;
11MessageRateInTitle = true;
12
13// -- Output Settings -------------------------------------
14// The DisplayUnits setting controls whether nautical (ft, NM, knots),
15// metric (m, km, km/h) or imperial (ft, mi, mph) units are used in the
16// plane table and in the detailed plane info. Valid values are
17// "nautical", "metric", or "imperial".
18DisplayUnits = "metric";
19
20// -- Map settings ----------------------------------------
21// These settings are overridden by any position information
22// provided by dump1090 itself. All positions are in decimal
23// degrees.
24
25// The google maps zoom level, 0 - 16, lower is further out
26DefaultZoomLvl = 7;
27
28// Center marker. If dump1090 provides a receiver location,
29// that location is used and these settings are ignored.
30
31SiteShow = true; // true to show a center marker
32SiteLat = 51.01368;
33SiteLon = 13.69201; // ***** CHANGE THE LAT/LONG to match your location *****
34SiteName = "Rx"; // tooltip of the marker
35
36// Default center of the map.
37DefaultCenterLat = SiteLat;
38DefaultCenterLon = SiteLon;
39
40// -- Marker settings -------------------------------------
41
42// These settings control the coloring of aircraft by altitude.
43// All color values are given as Hue (0-359) / Saturation (0-100) / Lightness (0-100)
44ColorByAlt = {
45 // HSL for planes with unknown altitude:
46 unknown : { h: 0, s: 0, l: 40 },
47
48 // HSL for planes that are on the ground:
49 ground : { h: 120, s: 100, l: 30 },
50
51 air : {
52 // These define altitude-to-hue mappings
53 // at particular altitudes; the hue
54 // for intermediate altitudes that lie
55 // between the provided altitudes is linearly
56 // interpolated.
57 //
58 // Mappings must be provided in increasing
59 // order of altitude.
60 //
61 // Altitudes below the first entry use the
62 // hue of the first entry; altitudes above
63 // the last entry use the hue of the last
64 // entry.
65 h: [ { alt: 2000, val: 20 }, // orange
66 { alt: 10000, val: 140 }, // light green
67 { alt: 40000, val: 300 } ], // magenta
68 s: 85,
69 l: 50,
70 },
71
72 // Changes added to the color of the currently selected plane
73 selected : { h: 0, s: -10, l: +20 },
74
75 // Changes added to the color of planes that have stale position info
76 stale : { h: 0, s: -10, l: +30 },
77
78 // Changes added to the color of planes that have positions from mlat
79 mlat : { h: 0, s: -10, l: -10 }
80};
81
82// For a monochrome display try this:
83// ColorByAlt = {
84// unknown : { h: 0, s: 0, l: 40 },
85// ground : { h: 0, s: 0, l: 30 },
86// air : { h: [ { alt: 0, val: 0 } ], s: 0, l: 50 },
87// selected : { h: 0, s: 0, l: +30 },
88// stale : { h: 0, s: 0, l: +30 },
89// mlat : { h: 0, s: 0, l: -10 }
90// };
91
92// Outline color for aircraft icons with an ADS-B position
93OutlineADSBColor = '#000000';
94
95// Outline color for aircraft icons with a mlat position
96OutlineMlatColor = '#4040FF';
97
98SiteCircles = true; // true to show circles (only shown if the center marker is shown)
99// In miles, nautical miles, or km (depending settings value 'DisplayUnits')
100SiteCirclesDistances = new Array(100,150,200,250);
101
102// Show the clocks at the top of the righthand pane? You can disable the clocks if you want here
103ShowClocks = false;
104
105// Controls page title, righthand pane when nothing is selected
106PageName = "FlightAware";
107
108// Show country flags by ICAO addresses?
109ShowFlags = true;
110
111// Path to country flags (can be a relative or absolute URL; include a trailing /)
112FlagPath = "flags-tiny/";
113
114// Set to true to enable the ChartBundle base layers (US coverage only)
115ChartBundleLayers = true;
116
117// Provide a Bing Maps API key here to enable the Bing imagery layer.
118// You can obtain a free key (with usage limits) at
119// https://www.bingmapsportal.com/ (you need a "basic key")
120//
121// Be sure to quote your key:
122// BingMapsAPIKey = "your key here";
123//
124BingMapsAPIKey = null;
125
126// Provide a Mapzen API key here to enable the Mapzen vector tile layer.
127// You can obtain a free key at https://mapzen.com/developers/
128// (you need a "vector tiles" key)
129//
130// Be sure to quote your key:
131// MapzenAPIKey = "your key here";
132//
133MapzenAPIKey = null;
134
135
136UseDefaultTerrianRings = true; // default Terrian rings color, otherwise colored by altitude (color defined in TerrianColorByAlt)
137UseTerrianLineDash = false; // true: dashed or false: solid terrian rings
138TerrianLineWidth = 1; // line width of terrian rings
139TerrianAltitudes = [9842,39370]; // altitudes in ft as in alt parameter TerrianColorByAlt, replace XXXXXXX with your code: sudo wget -O /usr/share/dump1090-fa/html/upintheair.json "www.heywhatsthat.com/api/upintheair.json?id=XXXXXXX&refraction=0.25&alts=3000,12000"
140TerrianColorByAlt = { // colours depending on altitude (UseDefaultTerrianRings must be false and TerrianAltitudes must be set), default same as colours of planes in air, alt in ft
141 h: [ { alt: 2000, val: 20 }, // orange
142 { alt: 10000, val: 140 }, // light green
143 { alt: 40000, val: 300 } ], // magenta
144 s: 85,
145 l: 50,
146};
147
148ShowSiteRingDistanceText = false; // show the distance text in site rings
149
150UseJetPhotosPhotoLink = false; // Use jetphotos.com instead of FlightAware for photo links
151
152// for this you have to change /etc/lighttpd/conf-enabled/89-dump1090-fa.conf : commenting out the filter $HTTP["url"] =~ "^/dump1090-fa/data/.*\.json$" and always send the response header
153// maybe filter is not correct --- Help wanted
154// the last 3 lines should look like this without the //
155// #$HTTP["url"] =~ "^/dump1090-fa/data/.*\.json$" {
156// setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
157// #}
158EndpointDump1090 = ""; // insert here endpoint to other computer where dump1090 is running (ex: http://192.168.1.152:8080/), leave it empty if it is running here
159
160// ----------------------------------------------------------------------------------------------------------------------------
161// Options to enable/disable modifications provided in Dump1090-OpenLayers3-html by Al Kissack
162// ----------------------------------------------------------------------------------------------------------------------------
163ShowMouseLatLong = true ; // https://github.com/alkissack/Dump1090-OpenLayers3-html/wiki/1.-Mouse-position-Latitude-and-Longitude
164ShowAdditionalMaps = true ; // https://github.com/alkissack/Dump1090-OpenLayers3-html/wiki/2.-Additional-maps
165ShowPermanentLabels = true ; // https://github.com/alkissack/Dump1090-OpenLayers3-html/wiki/7.-Permanent-labels
166ShowHoverOverLabels = true ; // https://github.com/alkissack/Dump1090-OpenLayers3-html/wiki/6.-Hover-over-labels
167ShowMaxRange = true ; // https://github.com/alkissack/Dump1090-OpenLayers3-html/wiki/8.-Maximum-range-plot
168 // If showing ranges, set SiteLat/SiteLon as these are the zero range positions till plot is drawn
169MinRangeHeight = -1 ; // ft - inner range ring - Set -1 to disable
170MinRangeLikely = 170 ; // nm - practical max (to supress spikes from bad data)
171MidRangeHeight = -1 ; // ft - mid range ring - Set -1 to disable
172MidRangeLikely = 220 ; // nm - practical max
173MaxRangeLikely = 300 ; // nm - practical max
174RangeLine = 1 ; // Line width for range rings
175// ----------------------------------------------------------------------------------------------------------------------------
176// UK ONLY :
177// ----------------------------------------------------------------------------------------------------------------------------
178ShowUSLayers = false; // https://github.com/alkissack/Dump1090-OpenLayers3-html/wiki/3.-US-Layers
179ShowUKCivviLayers = false; // https://github.com/alkissack/Dump1090-OpenLayers3-html/wiki/4.-UK-Civilian-overlays
180ShowUKMilLayers = false; // https://github.com/alkissack/Dump1090-OpenLayers3-html/wiki/5.-UK-Military-overlays
181
182// ----------------------------------------------------------------------------------------------------------------------------
183// PERSONAL OPTIONS https://github.com/alkissack/Dump1090-OpenLayers3-html/wiki/9.-Minor-personal-preference-changes
184// ----------------------------------------------------------------------------------------------------------------------------
185ShowMyPreferences = true ; // Required to enable the FOUR options below
186ShowAdditionalData = true ; //
187ShowMyIcons = true ; // https://github.com/alkissack/Dump1090-OpenLayers3-html/wiki/10.-Aircraft-icon-changes
188ShowSimpleColours = true ; // https://github.com/alkissack/Dump1090-OpenLayers3-html/wiki/9.-Minor-personal-preference-changes
189 // ******************************************************************************
190ShowHTMLColumns = true ; // *** If you turn this off, use the original-index.html file instead ***
191 // ******************************************************************************
192// ----------------------------------------------------------------------------------------------------------------------------
193// PRIVATE OPTIONS
194// ----------------------------------------------------------------------------------------------------------------------------
195ShowMyFindsLayer = false ; // Private plot (non-aircraft related)
196ShowSleafordRange = false ; // This shows a range layer based on 53N -0.5W A more reasltic range layer for my antenna location -- AK9T
197SleafordMySql = false ; // Don't set this without reviewing the code - it is for me and a local mySql server on 192.168.1.11
198// ----------------------------------------------------------------------------------------------------------------------------