From 636a920160ce214a97dc8a50f2ea537f458091f5 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 19 Mar 2024 15:01:15 +0100 Subject: [PATCH] LAT=$(makecoord ${ZLAT}) LON=$(makecoord ${ZLON}) --- RUNTIME/PLAYER.refresh.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh index 0e9bf151..586e9784 100755 --- a/RUNTIME/PLAYER.refresh.sh +++ b/RUNTIME/PLAYER.refresh.sh @@ -221,11 +221,13 @@ for PLAYER in ${PLAYERONE[@]}; do ###################################### #### UPLANET GEO COORD EXTRACTION ## GET "GPS" TIDDLER - 0.00 0.00 (if empty: null) - LAT=$(cat ~/.zen/tmp/${MOATS}/GPS.json | jq -r .[].lat) - [[ $LAT == "null" || $LAT == "" ]] && LAT="0.00" - LON=$(cat ~/.zen/tmp/${MOATS}/GPS.json | jq -r .[].lon) - [[ $LON == "null" || $LON == "" ]] && LON="0.00" + ZLAT=$(cat ~/.zen/tmp/${MOATS}/GPS.json | jq -r .[].lat) + [[ $ZLAT == "null" || $ZLAT == "" ]] && ZLAT="0.00" + ZLON=$(cat ~/.zen/tmp/${MOATS}/GPS.json | jq -r .[].lon) + [[ $ZLON == "null" || $ZLON == "" ]] && ZLON="0.00" + LAT=$(makecoord ${ZLAT}) + LON=$(makecoord ${ZLON}) SLAT="${LAT::-1}" SLON="${LON::-1}" RLAT="$(echo ${LAT} | cut -d '.' -f 1)"