From e4d02adc55d4d1362e519455ceee53c3af4c90f3 Mon Sep 17 00:00:00 2001 From: marcel Date: Thu, 27 Jan 2022 16:58:38 +0100 Subject: [PATCH] first character of first value field of telemetry was missing for some reason --- aprs_utils/process_aprs_messages.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aprs_utils/process_aprs_messages.sh b/aprs_utils/process_aprs_messages.sh index 71fce1c..f6c6d2b 100755 --- a/aprs_utils/process_aprs_messages.sh +++ b/aprs_utils/process_aprs_messages.sh @@ -180,7 +180,10 @@ while read LINE TIME="$(echo $LINE | cut -b 12-16)" # get telemetry fields and remove empty spaces and optional acknowledge message if it is present - TELEMETRY="$(echo $LINE | cut -b 65- | sed 's/{.*//' | tr -d "[:blank:]")" + TELEMETRY="$(echo $LINE | cut -b 64- | sed 's/{.*//' | tr -d "[:blank:]")" + + echo $LINE + echo $TELEMETRY #Datafiled should have comma as field seperator, so asume this and put values in array for later testing if data is valid IFS=',' read -r -a array <<< "$TELEMETRY"