1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
'use strict';
'require form';
return L.view.extend({
render: function() {
var m, s, o;
m = new form.Map('dump1090', _('dump1090'),
_('dump1090 is a Mode S decoder specifically designed for RTLSDR devices. Here you can configure the settings.'));
s = m.section(form.TypedSection, 'dump1090', '');
s.addremove = true;
s.anonymous = false;
o = s.option(form.Flag, 'disabled', _('Enabled'));
o.enabled = '0';
o.disabled = '1';
o = s.option(form.Flag, 'respawn', _('Respawn'));
o = s.option(form.Value, 'device_index', _('RTL device index'));
o.rmempty = true;
o.datatype = 'uinteger';
o = s.option(form.Value, 'gain', _('Gain (-10 for auto-gain)'));
o.rmempty = true;
o.datatype = 'integer';
o = s.option(form.Flag, 'enable_agc', _('Enable automatic gain control'));
o = s.option(form.Value, 'freq', _('Frequency'));
o.rmempty = true;
o.datatype = 'uinteger';
o = s.option(form.Value, 'ifile', _('Data file'));
o.rmempty = true;
o.datatype = 'file';
o = s.option(form.ListValue, 'iformat', _('Sample format for data file'));
o.value('', _('Default'));
o.value('UC8', 'UC8');
o.value('SC16', 'SC16');
o.value('SC16Q11', 'SC16Q11');
o = s.option(form.Flag, 'throttle', _('When reading from a file play back in realtime, not at max speed'));
o = s.option(form.Flag, 'raw', _('Show only messages hex values'));
o = s.option(form.Flag, 'net', _('Enable networking'));
o = s.option(form.Flag, 'modeac', _('Enable decoding of SSR Modes 3/A & 3/C'));
o = s.option(form.Flag, 'net_beast', _('TCP raw output in Beast binary format'));
o = s.option(form.Flag, 'net_only', _('Enable just networking, no RTL device or file used'));
o = s.option(form.Value, 'net_bind_address', _('IP address to bind to'));
o.rmempty = true;
o.datatype = 'ipaddr';
o = s.option(form.Value, 'net_http_port', _('HTTP server port'));
o.rmempty = true;
o.datatype = 'port';
o = s.option(form.Value, 'net_ri_port', _('TCP raw input listen port'));
o.rmempty = true;
o.datatype = 'port';
o = s.option(form.Value, 'net_ro_port', _('TCP raw output listen port'));
o.rmempty = true;
o.datatype = 'port';
o = s.option(form.Value, 'net_sbs_port', _('TCP BaseStation output listen port'));
o.rmempty = true;
o.datatype = 'port';
o = s.option(form.Value, 'net_bi_port', _('TCP Beast input listen port'));
o.rmempty = true;
o.datatype = 'port';
o = s.option(form.Value, 'net_bo_port', _('TCP Beast output listen port'));
o.rmempty = true;
o.datatype = 'port';
o = s.option(form.Value, 'net_fatsv_port', _('FlightAware TSV output port'));
o.rmempty = true;
o.datatype = 'port';
o = s.option(form.Value, 'net_ro_size', _('TCP raw output minimum size'));
o.rmempty = true;
o.datatype = 'uinteger';
o = s.option(form.Value, 'net_ro_interval', _('TCP raw output memory flush rate in seconds'));
o.rmempty = true;
o.datatype = 'uinteger';
o = s.option(form.Value, 'net_heartbeat', _('TCP heartbeat rate in seconds'));
o.rmempty = true;
o.datatype = 'uinteger';
o = s.option(form.Value, 'net_buffer', _('TCP buffer size 64Kb * (2^n)'));
o.rmempty = true;
o.datatype = 'uinteger';
o = s.option(form.Flag, 'net_verbatim', _('Do not apply CRC corrections to messages we forward'));
o = s.option(form.Flag, 'forward_mlat', _('Allow forwarding of received mlat results to output ports'));
o = s.option(form.Value, 'lat', _('Reference/receiver latitude for surface posn'));
o.rmempty = true;
o.datatype = 'float';
o = s.option(form.Value, 'lon', _('Reference/receiver longitude for surface posn'));
o.rmempty = true;
o.datatype = 'float';
o = s.option(form.Value, 'max_range', _('Absolute maximum range for position decoding'));
o.rmempty = true;
o.datatype = 'uinteger';
o = s.option(form.Flag, 'fix', _('Enable single-bits error correction using CRC'));
o = s.option(form.Flag, 'no_fix', _('Disable single-bits error correction using CRC'));
o = s.option(form.Flag, 'no_crc_check', _('Disable messages with broken CRC'));
o = s.option(form.Flag, 'phase_enhance', _('Enable phase enhancement'));
o = s.option(form.Flag, 'aggressive', _('More CPU for more messages'));
o = s.option(form.Flag, 'mlat', _('Display raw messages in Beast ascii mode'));
o = s.option(form.Flag, 'stats', _('Print stats at exit'));
o = s.option(form.Flag, 'stats_range', _('Collect/show range histogram'));
o = s.option(form.Value, 'stats_every', _('Show and reset stats every seconds'));
o.rmempty = true;
o.datatype = 'uinteger';
o = s.option(form.Flag, 'onlyaddr', _('Show only ICAO addresses'));
o = s.option(form.Flag, 'metric', _('Use metric units'));
o = s.option(form.Value, 'snip', _('Strip IQ file removing samples'));
o.rmempty = true;
o.datatype = 'uinteger';
o = s.option(form.Value, 'debug', _('Debug mode flags'));
o.rmempty = true;
o = s.option(form.Value, 'ppm', _('Set receiver error in parts per million'));
o.rmempty = true;
o.datatype = 'uinteger';
o = s.option(form.Value, 'html_dir', _('Base directory for the internal HTTP server'));
o.placeholder = '/usr/share/dump1090';
o.rmempty = true;
o.datatype = 'directory';
o = s.option(form.Value, 'write_json', _('Periodically write json output to a directory'));
o.placeholder = '/var/run/dump1090';
o.rmempty = true;
o.datatype = 'directory';
o = s.option(form.Value, 'write_json_every', _('Write json output every t seconds'));
o.rmempty = true;
o.datatype = 'uinteger';
o = s.option(form.ListValue, 'json_location_accuracy', _('Accuracy of receiver location in json metadata'));
o.value('', _('Default'));
o.value('0', _('No location'));
o.value('1', _('Approximate'));
o.value('2', _('Exact'));
o = s.option(form.Flag, 'oversample', _('Use the 2.4MHz demodulator'));
o = s.option(form.Flag, 'dcfilter', _('Apply a 1Hz DC filter to input data'));
o = s.option(form.Flag, 'measure_noise', _('Measure noise power'));
return m.render();
}
});
|