From 52b7d6f841fe80db9fa1419f31717736d4b8ff94 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 27 Mar 2024 11:15:55 +0100 Subject: [PATCH] variable renaming --- API/UPLANET.sh | 14 +++++++------- RUNTIME/SECTOR.refresh.sh | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/API/UPLANET.sh b/API/UPLANET.sh index a5a4e2f3..1c644b47 100755 --- a/API/UPLANET.sh +++ b/API/UPLANET.sh @@ -55,10 +55,10 @@ PLAYER=${THAT} [[ ${AND} != "zlat" ]] \ && (echo "$HTTPCORS ERROR - BAD PARAMS" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) && echo "(☓‿‿☓) Execution time was "`expr $(date +%s) - $start` seconds. && exit 0 -SALT=${THIS} +LAT=${THIS} -[[ ${SALT} == "0" ]] && SALT="0.00" -input_number=${SALT} +[[ ${LAT} == "0" ]] && LAT="0.00" +input_number=${LAT} if [[ ! $input_number =~ ^-?[0-9]{1,3}(\.[0-9]{1,2})?$ ]]; then (echo "$HTTPCORS ERROR - BAD LAT $LAT" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) && echo "(☓‿‿☓) Execution time was "`expr $(date +%s) - $start` seconds. && exit 0 else @@ -74,13 +74,13 @@ else LAT="${input_number}" fi -PEPPER=${WHAT} +LON=${WHAT} [[ ${APPNAME} != "zlon" ]] \ && (echo "$HTTPCORS ERROR - BAD PARAMS" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) && echo "(☓‿‿☓) Execution time was "`expr $(date +%s) - $start` seconds. && exit 0 -[[ ${PEPPER} == "0" ]] && PEPPER="0.00" -input_number=${PEPPER} +[[ ${LON} == "0" ]] && LON="0.00" +input_number=${LON} if [[ ! $input_number =~ ^-?[0-9]{1,3}(\.[0-9]{1,2})?$ ]]; then (echo "$HTTPCORS ERROR - BAD LON $LON" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) && echo "(☓‿‿☓) Execution time was "`expr $(date +%s) - $start` seconds. && exit 0 else @@ -143,7 +143,7 @@ fi # UPLANET ############################################# ## OCCUPY COMMON CRYPTO KEY CYBERSPACE -## SALT="$LAT" PEPPER="$LON" +## LAT="$LAT" LON="$LON" ###################################################### echo "UMAP = $LAT:$LON" echo "# CALCULATING UMAP G1PUB WALLET" diff --git a/RUNTIME/SECTOR.refresh.sh b/RUNTIME/SECTOR.refresh.sh index 1c48fc70..8625124f 100755 --- a/RUNTIME/SECTOR.refresh.sh +++ b/RUNTIME/SECTOR.refresh.sh @@ -370,7 +370,8 @@ for SECTOR in ${SECTORS[@]}; do mkdir -p ~/.zen/tmp/${IPFSNODEID}/UPLANET/SECTORS/_${RLAT}_${RLON}/_${SLAT}_${SLON} ## CREATING 7 DAYS JSON RSS STREAM tiddlywiki --load ${INDEX} \ - --output ~/.zen/tmp/${IPFSNODEID}/UPLANET/SECTORS/_${RLAT}_${RLON}/_${SLAT}_${SLON} --render '.' "${SECTOR}.week.rss.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[days:created[-7]!is[system]!tag[G1Voeu]]' + --output ~/.zen/tmp/${IPFSNODEID}/UPLANET/SECTORS/_${RLAT}_${RLON}/_${SLAT}_${SLON} \ + --render '.' "${SECTOR}.week.rss.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[days:created[-7]!is[system]!tag[G1Voeu]]' ################################### ## NODE CACHE SECTOR TODATENS