Commit graph

219 commits

Author SHA1 Message Date
Oliver Jowett 577fe9b52e Remove --aggressive from config options as the standard build will ignore it. 2016-02-16 10:12:22 +00:00
Oliver Jowett 20effc8cb8 Turn off --stats-every 2016-02-07 19:22:16 +00:00
Oliver Jowett c510adbc94 $a is a literal sed command, avoid shell var expansion. 2016-01-25 15:23:59 +00:00
Oliver Jowett f9aa0398e5 Avoid creating a config file with all blank values if postinst configure fails. 2016-01-25 15:16:41 +00:00
Oliver Jowett 4711eaf741 Remove reference to net-fatsv-port in postinst.
Fixes #92.
2016-01-25 15:13:51 +00: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 b433a521bf Start trimming dump1090-mutability down for use in piaware. 2016-01-13 00:00:08 +00:00
Dan Schaper 72e511594d Add nginx configs to packaging. 2015-10-25 10:23:51 -07:00
Dan Schaper a6cb388eef Add nginx config file 2015-10-25 09:20:22 -07:00
Oliver Jowett 05c8bc5d9f Merge pull request #45 from saiarcot895/add-curl-recommends
Add curl as recommends.
2015-08-31 22:59:52 +01:00
Raphael Geissert 5eaa62d59c Use invoke-rc.d to restart lighttpd as per Debian policy 2015-08-08 13:47:05 +02:00
Oliver Jowett 12a7d45e75 Mlat synthetic message detection.
Notice synthetic mlat messages by looking for messages with a magic
timestamp value. If they arrive, tag the derived data as mlat-derived.

Don't include mlat-derived output in FATSV output to avoid loops.
2015-06-28 20:04:09 +01:00
Oliver Jowett 4f861f653a Track age of heading/speed/altitude; use this when deciding what to emit in FATSV format. 2015-06-15 23:13:04 +01:00
Oliver Jowett f58ff14d7c Fix queueing/resending very old Mode A/C messages.
Fixes #47.
2015-06-07 23:00:24 +01:00
Saikrishna Arcot 05469fbff8
Add curl as recommends. 2015-05-04 11:11:06 -05:00
Oliver Jowett e9378fb1c5 Fix endian issues in timestamp input/output.
This affected Beast input/output, and AVR output in --mlat mode.

Works on a little-endian host, should work on a big-endian host but
I don't have one to test with.

Probably fixes #44.
2015-04-18 11:05:12 +01:00
Oliver Jowett 15ea5ba3da Rearrangements to the receive thread.
Magnitude conversion now happens immediately when sample data is
received, so there is no risk of newly received data clobbering old
data under CPU overload.
2015-04-09 18:51:31 +01:00
Oliver Jowett e6c81251bf Fix timestamp correction when sample blocks are dropped.
(Fixes #43)
2015-04-08 19:13:40 +01:00
Oliver Jowett 6148a05cef Raspbian doesn't do ${python:Depends} 2015-02-25 13:51:47 +00:00
Oliver Jowett 89ac9ad107 Mark this version as ~dev. 2015-02-25 13:17:20 +00:00
Oliver Jowett 60eab2284f Package changes to support the aircraft DB. 2015-02-25 13:16:54 +00:00
Oliver Jowett 87bd16812a Add formatter.js to conffiles. 2015-02-22 17:03:47 +00:00
Oliver Jowett 7fbdde156a Change map icon based on aircraft category.
This only has different icons for the "rotorcraft" and "light"
categories at the moment - all others are the default plane icon
at different scales.
2015-02-22 17:02:23 +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 f391bf4b22 Release changelog. 2015-02-19 19:41:44 +00:00
Oliver Jowett f6d2f3dfff More CPR stats. 2015-02-19 18:53:11 +00:00
Oliver Jowett 46ad97da15 More changelogging. 2015-02-19 12:11:30 +00:00
Oliver Jowett 65e7d32390 Mark all HTML/Javascript as conffiles.
Closes #15.
2015-02-19 12:05:53 +00:00
Oliver Jowett 8fa7209aa1 Changelog updates for 1.14. 2015-02-19 12:02:45 +00:00
Oliver Jowett aee837c903 Start with --nicelevel -5 to reduce the chance of dropped buffers, except in --net-only mode.
Closes #19.
2015-02-11 21:20:31 +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 07a39331c9 Changelog mostly to bump the version to reduce confusion. 2015-02-08 23:11:50 +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 02f07ac7bf Release changelog. 2015-01-25 16:45:05 +00:00
Oliver Jowett 4b0bc4cee9 Make 2.4MHz sampling the default for new installs. 2015-01-25 16:11:34 +00:00
Oliver Jowett 09b6b3aa8c Fix some lintian warnings. 2015-01-24 01:08:05 +00:00
Oliver Jowett c1ac4d1036 Update GPL coverage. 2015-01-24 01:04:45 +00:00
Oliver Jowett 5ac90e30a8 Changelog. 2015-01-23 21:26:57 +00:00
Oliver Jowett af3eb3df2b Move to a simpler versioning scheme (the one derived from upstream
is going to break the ordering that Debian expects very soon).

When building from source not via debian/rules, derive a version from
git describe.
2015-01-22 13:19:15 +00:00
Oliver Jowett e02a2cdd44 GPL. 2015-01-20 16:49:01 +00:00
Oliver Jowett 721412dc9b Changelog. 2015-01-19 23:29:07 +00:00
Oliver Jowett 881cb8167d Release changelog. 2015-01-17 21:04:10 +00:00
Oliver Jowett 971e5754ff Try to work around a libusb crash on exit after SIGINT. 2015-01-17 19:23:57 +00:00
Oliver Jowett d1f274d469 Avoid a (rare) divide-by-zero crash in 2MHz --phase-enhance. 2015-01-17 18:26:06 +00:00
Oliver Jowett 4a66a31839 Changelog. 2015-01-17 12:31:52 +00:00
Oliver Jowett 8f1b8566d4 Update changelog. 2015-01-16 20:37:55 +00:00
Oliver Jowett e54b290601 Release changelog. 2015-01-14 01:17:57 +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 dc92cfb927 Restart lighttpd on package upgrade if we changed its config files. 2015-01-14 00:34:06 +00:00
Oliver Jowett 371f6bb5d4 Changelog. 2015-01-13 22:02:39 +00:00
Oliver Jowett 41d8a79041 Changelog. 2015-01-13 21:53:48 +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 8b56cd104f Changelog. 2015-01-13 21:41:23 +00:00
Oliver Jowett 2627933963 Changelog. 2015-01-12 16:31:22 +00:00
Oliver Jowett 2febe75ce7 Changelog. 2015-01-12 01:19:43 +00:00
Oliver Jowett 0b5aac47c4 Change plane color if we have not seen a recent position update
(previously, any type of message was enough).
2015-01-11 12:15:54 +00:00
Oliver Jowett 55a10e6685 Changelog. 2015-01-11 12:12:58 +00:00
Oliver Jowett 2f2803a775 Fix UTC clock display in non-UTC timezones. 2015-01-11 11:54:17 +00:00
Oliver Jowett 35e5088529 Fix initial map centering thinkos. 2015-01-07 23:54:54 +00:00
Oliver Jowett 4a04e4d46d Changelog updates. 2015-01-07 21:42:57 +00:00
Oliver Jowett 0f1c0778f2 Disable lighttpd's stat cache in the sample config. 2015-01-07 19:01:56 +00:00
Oliver Jowett 1f06abf67d WIP webmap cleanup 2015-01-05 23:20:03 +00:00
Oliver Jowett 99bca13844 Release changelog. 2015-01-04 20:23:30 +00:00
Oliver Jowett 43ec58c78e Remove dead tracking code related to the removed PlanePlotter feed. 2015-01-04 20:09:38 +00:00
Oliver Jowett 76474f58ab Fix warnings. Add -Werror so they break the build in future. 2015-01-04 20:08:33 +00:00
Oliver Jowett 14a8e71629 Version bump to reflect upstream version. 2015-01-04 12:32:36 +00:00
Oliver Jowett 66c088fa70 Release changelog. 2015-01-02 22:53:58 +00:00
Oliver Jowett 69532b3c53 Center the webmap on the receiver location.
Mark config.js as a conffile, so user changes won't get overwritten.
2015-01-02 22:48:27 +00:00
Oliver Jowett 07bc762055 Notice if we lose the RTLSDR device and reconnect.
Fix some of the more glaring pthread bugs.
2015-01-02 22:29:29 +00:00
Oliver Jowett 5dd1c39710 Release changelog. 2014-12-30 17:09:44 +00:00
Oliver Jowett 9d0df29dbb Fix postinst handling of LOG_DECODED_MESSAGES. 2014-12-30 17:08:55 +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 6e3238d303 Release changelog. 2014-12-30 00:01:58 +00:00
Oliver Jowett 9356c899ad Add Provides: fatsv-data-source 2014-12-29 22:59:47 +00:00
Oliver Jowett 0fa383f633 Release changelog. 2014-12-27 22:24:51 +00:00
Oliver Jowett 2aa37f06da Link to github from the webmap. 2014-12-27 21:40:18 +00:00
Oliver Jowett 2db9d62c1c Warn if --modeac is used together with --oversample. 2014-12-27 21:25:32 +00:00
Oliver Jowett 727a59e8eb Oversampling is now less scary. 2014-12-27 21:22:43 +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 bbcfbb8279 Changelog update. 2014-12-27 20:21:36 +00:00
Oliver Jowett 48986c48cc Remove half-implemented --no-decode option. 2014-12-27 20:11:10 +00:00
Oliver Jowett ff027f009a Release changelog. 2014-12-10 21:58:26 +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 3af0fb51b5 Raspbian's dpkg-changelog doesn't understand -S, use some sed magic instead. 2014-12-10 21:07:45 +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 9fa09e0e92 receiver.json support, internal webserver cleanup.
Add data/receiver.json (generated once) and support for it in script.js.

Internal webserver rearrangement to support multiple json files.
2014-12-10 17:05:22 +00:00
Oliver Jowett f707f2cdce More version reporting tweaks. 2014-12-10 12:44:00 +00:00
Oliver Jowett c6077b1e6c Use the package version as the version number compiled into the binary. 2014-12-10 12:25:43 +00:00
Oliver Jowett 890d1afbf1 Be much more cautious about missing config settings so we don't explode
so badly if something is omitted.
2014-12-10 02:03:57 +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 2a2306ff57 Probably time for another release - release changelog. 2014-12-10 01:07:26 +00:00
Oliver Jowett 0305eb25e5 Update Build-Depends based on glitches found building under pbuilder. 2014-12-09 21:41:14 +00:00
Oliver Jowett 02c0f618e6 Re-enable sedscript cleanup now that I'm done testing it. 2014-12-09 20:45:00 +00:00
Oliver Jowett 47e70a96fe Changelog update. 2014-12-09 20:37:52 +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
Oliver Jowett 2dcc8e3524 Add direct support for FATSV-format output.
This is adapted from the FlightAware fork, with some cleanup and
modifications needed to work with the net-cleanup changes.

Inclusion of "verbatim" TSV data read from an AVR-format input
connection is not supported.
2014-12-08 19:56:45 +00:00
Oliver Jowett 66849e1096 Changelog update. 2014-12-07 14:14:51 +00:00
Oliver Jowett 2c374503f0 Release changelog. 2014-12-06 23:07:16 +00:00
Oliver Jowett fcf31a164a More sensible NET_OUTPUT_SIZE / NET_BUFFER defaults. 2014-12-06 22:54:40 +00:00
Oliver Jowett 129655625c Fix typo in oversampling config check. 2014-12-06 22:50:55 +00:00
Oliver Jowett 127bf0cbc2 Lock down the default config - no remote connections, no HTTP server.
The user can reconfigure if they want a more open setup.

Add Suggests: lighttpd and recommend that as the way to run the map interface.
2014-12-06 22:23:13 +00:00
Oliver Jowett e5931cbd50 Various packaging bugfixes found while testing the package. 2014-12-06 22:22:02 +00:00
Oliver Jowett 034fcee8fa Remove a spurious dependency on net-tools. 2014-12-06 22:20:50 +00:00
Oliver Jowett 796ca80db8 Increase the priority of the lighttpd config file to work around an
odd ordering problem with the default debian-doc configuration which
would mangle the alias list when accessing from localhost.
2014-12-06 22:19:24 +00:00
Oliver Jowett aa4aadbccc Can't make up my mind about versions! 2014-12-06 21:51:08 +00:00
Oliver Jowett b4b1c0b920 Update packaging to build a -mutability package. 2014-12-06 21:47:46 +00:00
Oliver Jowett d88c9d6ab3 Release changelog. 2014-12-06 18:37:36 +00:00
Oliver Jowett 786dd622ee Update changelog for recent changes. 2014-12-06 16:08:42 +00:00
Oliver Jowett 3242fcaf29 Add support for configuring --stats-every (defaults to hourly) 2014-12-06 16:08:17 +00:00
Oliver Jowett 977fc07c39 Pass --name and --user during daemon start so that existing processes can be correctly identified. 2014-12-06 16:07:44 +00:00
Oliver Jowett 2e189633da Add a logrotate configuration. 2014-12-06 16:07:02 +00:00
Oliver Jowett 7a3a9f500f Add logging support. 2014-12-06 16:06:39 +00:00
Oliver Jowett b7ee4009e4 Release changelog. 2014-12-05 22:56:14 +00:00
Oliver Jowett b1e1878054 Fix some stray colons. Report failure if daemon isn't configured to start. 2014-12-05 22:55:04 +00:00
Oliver Jowett 373ac8ef0c Add init script, defaults from /etc/default/, postinst to create a user to run as. 2014-12-05 22:37:33 +00:00
Oliver Jowett 77912fb087 Install binaries with -mr suffix. 2014-12-05 21:36:51 +00:00
Oliver Jowett 35a382e3ce Set HTMLPATH correctly when compiling.
Put static files in /usr/share/dump1090-mr not /usr/share/dump1090
2014-12-05 21:36:02 +00:00
Oliver Jowett 0ae1d72e83 Initial work on raspbian packaging. 2014-12-05 20:18:57 +00:00