Commit graph

18 commits

Author SHA1 Message Date
Oliver Jowett ebfa6f63be Strip out the config options for the internal webserver. 2016-07-10 11:58:46 +01:00
Oliver Jowett 8f82e61f17 Remove the 2MHz demodulator.
Now that the 2.4MHz demodulator does 3A/C there's no real reason
to keep the old demodulator around.
2016-05-31 12:23:58 +01:00
Oliver Jowett d419b62a65 Always use phase enhancement; silently ignore --phase-enhance if given. 2016-05-31 11:47:57 +01:00
Raphael Geissert ce38ddf127 Remove references to --aggressive from the maint scripts
Commit 577fe9b removed the debconf template for the option but the
maintainer scripts were still referencing it. This prevented the package
configuration from working.
2016-02-16 19:48:43 +01:00
Oliver Jowett cd86032be2 Fix return value sense of is_port_list
Probably fixes #91
2016-01-24 22:11:48 +00:00
Oliver Jowett 2b466535de Support multiple listening ports per listener type.
Beast input defaults to listening on both 30004 and 30104.
Drop the FATSV listener entirely (use faup1090 for that)
Ignore --net-beast.
2016-01-24 18:47:58 +00:00
Oliver Jowett 60eab2284f Package changes to support the aircraft DB. 2015-02-25 13:16:54 +00:00
Oliver Jowett ab8c4db85b Fix edge cases when specifying the user to run as.
* check the username fits the format expected by adduser;
 * don't allow root;
 * if the user exists, don't try to create it; usually, this is
   harmless, but it fails if the user exists with a UID outside the
   normal range for system users.

Fixes #24.
2015-02-19 22:41:39 +00:00
Oliver Jowett f9ed7e4a97 More time_t -> milliseconds conversions.
This lets us support fractional net flush times among other things, which is handy.
2015-02-10 22:24:22 +00:00
Oliver Jowett b313834338 Make the is_number regex accept numbers beginning with -0
Also ends up simpler, too - originally I was trying to avoid accepting
e.g. "+0" or "-0" but that's not really a big deal.

Fixes #14
2015-02-08 22:44:02 +00:00
Oliver Jowett 62ec7796d0 Require that the JSON refresh interval is at least 1, as it is used
to control the webmap refresh rate even if JSON files are not being written.
2015-01-14 01:15:54 +00:00
Oliver Jowett fefce7b4bd Add --max-range parameter. Use it for relative position limits, and to discard bad position results.
(cherry picked from commit 0d725508f78cb2fd7759efbb66b45b867d6f7722)
2015-01-13 21:53:12 +00:00
Oliver Jowett a9ca260e76 Add support for LOG_DECODED_MESSAGES option to log all messages (disables --quiet). 2014-12-30 16:40:15 +00:00
Oliver Jowett 58dfbdcb6b Add support for controlling the accuracy of the receiver location
written in the JSON metadata used by the webmap.
2014-12-27 20:52:56 +00:00
Oliver Jowett 1cdfe8db27 Rearrange validation so that the user only ever sees errors
*after* providing input.

In particular if the existing config does not validate then we
should just ensure that the problematic question is displayed
without a confusing error message beforehand; the error should
only appear if the newly entered response doesn't validate.
2014-12-10 21:20:31 +00:00
Oliver Jowett 55ecde9d53 Add input validation to most of the config questions.
> Some people, when confronted with a problem, think "I know, I'll use regular expressions."
> Now they have two problems.

Dongle "device index" actually accepts serial numbers too, document that.
2014-12-10 20:26:51 +00:00
Oliver Jowett 660eb08c66 Ask about json interval before json dir. Skip the dir question if
the interval is disabled, it makes more sense that way.
2014-12-10 02:02:19 +00:00
Oliver Jowett 125158b30a Big rearrangement to add debconf support.
/etc/default/dump1090-mutability is now generated in postinst,
if it doesn't exist, from a template in /usr/share/dump1090-mutability.
Subsequently, the config file is updated in place if debconf-driven
changes are made.

Static HTML/javascript have moved to a "html" subdir to avoid exposing
the template via the webserver.
2014-12-09 20:36:24 +00:00