Skip to content

Commit

Permalink
Update aiscatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t authored May 28, 2024
1 parent 8c13951 commit 832ef36
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rootfs/etc/s6-overlay/scripts/aiscatcher
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ then
[[ -n "$feeds" ]] && FEEDSTRING+=("-u ${feeds//:/ }")
done
fi
if [[ -n "$TCP_FEEDS" ]]
then
readarray -d "," -t feedsarray <<< "$TCP_FEEDS"
for feeds in "${feedsarray[@]}"
do
[[ -n "$feeds" ]] && FEEDSTRING+=("-P ${feeds//:/ }")
done
fi

# get gain
VALID_GAINS=(0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6)
Expand Down Expand Up @@ -160,6 +168,10 @@ if [[ -n "$MARINETRAFFIC_UDP_PORT" ]]; then
if ! grep -q ":" <<< "$MARINETRAFFIC_UDP_PORT"; then MARINETRAFFIC_UDP_PORT="5.9.207.224:$MARINETRAFFIC_UDP_PORT"; fi
aiscatcher_command+=("-u ${MARINETRAFFIC_UDP_PORT/:/ }")
fi
if [[ -n "$MARINETRAFFIC_TCP_PORT" ]]; then
if ! grep -q ":" <<< "$MARINETRAFFIC_TCP_PORT"; then MARINETRAFFIC_TCP_PORT="5.9.207.224:$MARINETRAFFIC_TCP_PORT"; fi
aiscatcher_command+=("-P ${MARINETRAFFIC_TCP_PORT/:/ }")
fi

# MyShipTracking:
MYSHIPTRACKING_UDP_PORT="${MYSHIPTRACKING_UDP_PORT:-$MYSHIPTRACKER_UDP_PORT}" # bug fix - originally wrote wrongly MYSHIPTRACKER_UDP_PORT, now we need to keep this for backward compatibility
Expand Down

0 comments on commit 832ef36

Please sign in to comment.