Globally reduce copyright headers
[project/luci.git] / applications / luci-app-dump1090 / luasrc / model / cbi / dump1090.lua
1 -- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com>
2 -- Licensed to the public under the Apache License 2.0.
3
4 m = Map("dump1090", "dump1090", translate("dump1090 is a Mode S decoder specifically designed for RTLSDR devices, here you can configure the settings."))
5
6 s = m:section(TypedSection, "dump1090", "")
7 s.addremove = true
8 s.anonymous = false
9
10 enable=s:option(Flag, "disabled", translate("Enabled"))
11 enable.enabled="0"
12 enable.disabled="1"
13 enable.default = "1"
14 enable.rmempty = false
15 respawn=s:option(Flag, "respawn", translate("Respawn"))
16 respawn.default = false
17
18 device_index=s:option(Value, "device_index", translate("RTL device index"))
19 device_index.rmempty = true
20 device_index.datatype = "uinteger"
21
22 gain=s:option(Value, "gain", translate("Gain (-10 for auto-gain)"))
23 gain.rmempty = true
24 gain.datatype = "integer"
25
26 enable_agc=s:option(Flag, "enable_agc", translate("Enable automatic gain control"))
27 enable_agc.default = false
28
29 freq=s:option(Value, "freq", translate("Frequency"))
30 freq.rmempty = true
31 freq.datatype = "uinteger"
32
33 ifile=s:option(Value, "ifile", translate("Data file"))
34 ifile.rmempty = true
35 ifile.datatype = "file"
36
37 raw=s:option(Flag, "raw", translate("Show only messages hex values"))
38 raw.default = false
39
40 net=s:option(Flag, "net", translate("Enable networking"))
41
42 modeac=s:option(Flag, "modeac", translate("Enable decoding of SSR Modes 3/A & 3/C"))
43 modeac.default = false
44
45 net_beast=s:option(Flag, "net_beast", translate("TCP raw output in Beast binary format"))
46 net_beast.default = false
47
48 net_only=s:option(Flag, "net_only", translate("Enable just networking, no RTL device or file used"))
49 net_only.default = false
50
51 net_bind_address=s:option(Value, "net_bind_address", translate("IP address to bind to"))
52 net_bind_address.rmempty = true
53 net_bind_address.datatype = "ipaddr"
54
55 net_http_port=s:option(Value, "net_http_port", translate("HTTP server port"))
56 net_http_port.rmempty = true
57 net_http_port.datatype = "port"
58
59 net_ri_port=s:option(Value, "net_ri_port", translate("TCP raw input listen port"))
60 net_ri_port.rmempty = true
61 net_ri_port.datatype = "port"
62
63 net_ro_port=s:option(Value, "net_ro_port", translate("TCP raw output listen port"))
64 net_ro_port.rmempty = true
65 net_ro_port.datatype = "port"
66
67 net_sbs_port=s:option(Value, "net_sbs_port", translate("TCP BaseStation output listen port"))
68 net_sbs_port.rmempty = true
69 net_sbs_port.datatype = "port"
70
71 net_bi_port=s:option(Value, "net_bi_port", translate("TCP Beast input listen port"))
72 net_bi_port.rmempty = true
73 net_bi_port.datatype = "port"
74
75 net_bo_port=s:option(Value, "net_bo_port", translate("TCP Beast output listen port"))
76 net_bo_port.rmempty = true
77 net_bo_port.datatype = "port"
78
79 net_ro_size=s:option(Value, "net_ro_size", translate("TCP raw output minimum size"))
80 net_ro_size.rmempty = true
81 net_ro_size.datatype = "uinteger"
82
83 net_ro_rate=s:option(Value, "net_ro_rate", translate("TCP raw output memory flush rate"))
84 net_ro_rate.rmempty = true
85 net_ro_rate.datatype = "uinteger"
86
87 net_heartbeat=s:option(Value, "net_heartbeat", translate("TCP heartbeat rate in seconds"))
88 net_heartbeat.rmempty = true
89 net_heartbeat.datatype = "uinteger"
90
91 net_buffer=s:option(Value, "net_buffer", translate("TCP buffer size 64Kb * (2^n)"))
92 net_buffer.rmempty = true
93 net_buffer.datatype = "uinteger"
94
95 lat=s:option(Value, "lat", translate("Reference/receiver latitude for surface posn"))
96 lat.rmempty = true
97 lat.datatype = "integer"
98
99 lon=s:option(Value, "lon", translate("Reference/receiver longitude for surface posn"))
100 lon.rmempty = true
101 lon.datatype = "integer"
102
103 fix=s:option(Flag, "fix", translate("Enable single-bits error correction using CRC"))
104 fix.default = false
105
106 no_fix=s:option(Flag, "no_fix", translate("Disable single-bits error correction using CRC"))
107 no_fix.default = false
108
109 no_crc_check=s:option(Flag, "no_crc_check", translate("Disable messages with broken CRC"))
110 no_crc_check.default = false
111
112 phase_enhance=s:option(Flag, "phase_enhance", translate("Enable phase enhancement"))
113 phase_enhance.default = false
114
115 agressive=s:option(Flag, "agressive", translate("More CPU for more messages"))
116 agressive.default = false
117
118 mlat=s:option(Flag, "mlat", translate("Display raw messages in Beast ascii mode"))
119 mlat.default = false
120
121 stats=s:option(Flag, "stats", translate("Print stats at exit"))
122 stats.default = false
123
124 stats_every=s:option(Value, "stats_every", translate("Show and reset stats every seconds"))
125 stats_every.rmempty = true
126 stats_every.datatype = "uinteger"
127
128 onlyaddr=s:option(Flag, "onlyaddr", translate("Show only ICAO addresses"))
129 onlyaddr.default = false
130
131 metric=s:option(Flag, "metric", translate("Use metric units"))
132 metric.default = false
133
134 snip=s:option(Flag, "snip", translate("Strip IQ file removing samples"))
135 snip.rmempty = true
136 snip.datatype = "uinteger"
137
138 debug_mode=s:option(Flag, "debug", translate("Debug mode flags"))
139 debug_mode.rmempty = true
140
141 ppm=s:option(Flag, "ppm", translate("Set receiver error in parts per million"))
142 ppm.rmempty = true
143 ppm.datatype = "uinteger"
144
145 return m