diff --git a/README.md b/README.md index c40661c..11d9ce3 100644 --- a/README.md +++ b/README.md @@ -1042,7 +1042,7 @@ docker exec -it ultrafeeder /usr/local/bin/viewadsb --cpr-focus 3D3ED0 If you want to use `ultrafeeder` *only* as a SDR decoder but without any mapping or stats/graph websites, without MLAT connections or MLAT-hub, etc., for example to minimize CPU and RAM needs on a low CPU/memory single board computer, then do the following: - in the `ULTRAFEEDER_CONFIG` parameter, remove any entry that starts with `mlat` or `mlathub`. This will prevent any `mlat-client`s or `mlathub` instances to be launched. If you still want to connect the `mlat-client`(s) to external MLAT servers but you don't want to run the overhead of a MLATHUB, you can leave any entries starting with `mlat` in the `ULTRAFEEDER_CONFIG` parameter, and set `MLATHUB_DISABLE=true` -- Set the parameter `TAR1090_DISABLE=true`. This will prevent the `nginx` webserver and any websites to be launched and no `collectd` (graphs1090) or `rrd` (ADSB message history) data to be collected or retained. +- Set the parameter `TAR1090_DISABLE=true`. This will prevent the `nginx` webserver and any websites to be launched and no graphs1090 or heatmap data to be collected. - Make sure to use `ghcr.io/sdr-enthusiasts/docker-adsb-ultrafeeder:latest` and specifically NOT the `ghcr.io/sdr-enthusiasts/docker-adsb-ultrafeeder:telegraf` label as Telegraf adds a LOT of resource use to the container ## Offline maps diff --git a/rootfs/etc/s6-overlay/scripts/readsb b/rootfs/etc/s6-overlay/scripts/readsb index cd1c9d4..940ce02 100755 --- a/rootfs/etc/s6-overlay/scripts/readsb +++ b/rootfs/etc/s6-overlay/scripts/readsb @@ -76,8 +76,10 @@ if [ -n "${UUID}" ]; then fi READSB_CMD+=("--write-json=/run/readsb") -READSB_CMD+=("--write-state=/var/globe_history") -READSB_CMD+=("--json-trace-interval=15") +# no need to write state when tar1090_disable is used for a minimal setup +if ! chk_enabled "${TAR1090_DISABLE}"; then + READSB_CMD+=("--write-state=/var/globe_history") +fi READSB_CMD+=("--json-reliable=1") READSB_CMD+=("--net-json-port=30047") READSB_CMD+=("--net-ri-port=30001") @@ -110,9 +112,11 @@ READSB_CMD+=("--net-api-port=$ports") ######################### -if chk_enabled "${READSB_ENABLE_HEATMAP:-true}"; then - READSB_CMD+=("--heatmap-dir=/var/globe_history") - READSB_CMD+=("--heatmap=${READSB_HEATMAP_INTERVAL:-15}") +if ! chk_disabled "${READSB_ENABLE_HEATMAP}"; then + if chk_enabled "${READSB_ENABLE_HEATMAP}" || ! chk_enabled "${TAR1090_DISABLE}"; then + READSB_CMD+=("--heatmap-dir=/var/globe_history") + READSB_CMD+=("--heatmap=${READSB_HEATMAP_INTERVAL:-15}") + fi fi if chk_enabled "${READSB_ENABLE_TRACES}"; then @@ -200,9 +204,7 @@ if [[ -n "$READSB_NET_BEAST_REDUCE_FILTER_DIST" ]]; then READSB_CMD+=("--net-beast-reduce-filter-dist=$READSB_NET_BEAST_REDUCE_FILTER_DIST") fi -if [[ -n "$READSB_JSON_TRACE_INTERVAL" ]]; then - READSB_CMD+=("--json-trace-interval=$READSB_JSON_TRACE_INTERVAL") -fi +READSB_CMD+=("--json-trace-interval=${READSB_JSON_TRACE_INTERVAL:-15}") if [[ -n "$READSB_NET_BEAST_REDUCE_FILTER_ALT" ]]; then READSB_CMD+=("--net-beast-reduce-filter-alt=$READSB_NET_BEAST_REDUCE_FILTER_ALT")