From b3233d66c4407f3fed2d85396cd5cedb265950da Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Fri, 1 Nov 2024 14:09:15 +0100 Subject: [PATCH] add option to write traces this was ofc possible before via extra args but now it's simpler --- README.md | 1 + rootfs/etc/s6-overlay/scripts/readsb | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index eceeaa9..3aedaa5 100644 --- a/README.md +++ b/README.md @@ -537,6 +537,7 @@ Note - due to design limitations of `readsb`, the `tar1090` graphical interface | `TAR1090_IMAGE_CONFIG_TEXT` | Text to display for the config link | `null` | | `TAR1090_DISABLE` | Set to `true` to disable the web server and all websites (including the map, `graphs1090`, `heatmap`, `pTracks`, etc.) | Unset | | `READSB_ENABLE_HEATMAP` | Set to `true` or leave unset to enable the HeatMap function available at `http://myip/?Heatmap`; set to `false` to disable the HeapMap function | `true` (enabled) | +| `READSB_ENABLE_TRACES` | Save detailed globe history traces (1 gzip compressed json file per day and airframe, use MAX_GLOBE_HISTORY so you don't run out of inodes / diskspace) | `false` | | `TAR1090_AISCATCHER_SERVER` | If you want to show vessels from your AIS-Catcher instance on the map, put the (externally reachable) URL of your AIS-Catcher or ShipFeeder website in this parameter (incl. `https://`). Note - if you are using "barebones" AIS-Catcher you should add `GEOJSON on` after the `-N` parameter on the `AIS-Catcher` command line. If you use [docker-shipfeeder](https://github.com/sdr-enthusiasts/docker-shipfeeder), no change is needed for that container | Empty | | `TAR1090_AISCATCHER_REFRESH` | Refresh rate (in seconds) of reading vessels from your AIS-Catcher instance. Defaults to 15 (secs) if omitted | `15` | diff --git a/rootfs/etc/s6-overlay/scripts/readsb b/rootfs/etc/s6-overlay/scripts/readsb index a147d5e..d852b30 100755 --- a/rootfs/etc/s6-overlay/scripts/readsb +++ b/rootfs/etc/s6-overlay/scripts/readsb @@ -113,6 +113,10 @@ if chk_enabled "${READSB_ENABLE_HEATMAP:-true}"; then READSB_CMD+=("--heatmap=${READSB_HEATMAP_INTERVAL:-15}") fi +if chk_enabled "${READSB_ENABLE_TRACES}"; then + READSB_CMD+=("--write-globe-history=/var/globe_history") +fi + if ! chk_enabled "$READSB_NET_SBS_DISABLE_REDUCE"; then READSB_CMD+=("--net-sbs-reduce") fi