This commit is contained in:
fred 2024-03-20 22:57:52 +01:00
parent 727e67ab23
commit 8925e199d4
4 changed files with 28 additions and 11 deletions

View File

@ -112,9 +112,8 @@ for SECTOR in ${SECTORS[@]}; do
echo "_____SECTOR${SECTOR} GET time was "`expr $end - $start` seconds.
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
### ZEN
### SHOW ${SECTOR}
mkdir -p ~/.zen/tmp/${MOATS}/${SECTOR}/${SECTOR}
## CONTROL CHAIN TIME
ZCHAIN=$(cat ~/.zen/tmp/${MOATS}/${SECTOR}/CHAIN/_chain | rev | cut -d ':' -f 1 | rev 2>/dev/null)
ZMOATS=$(cat ~/.zen/tmp/${MOATS}/${SECTOR}/CHAIN/_moats 2>/dev/null)
@ -201,7 +200,7 @@ for SECTOR in ${SECTORS[@]}; do
cp -rf ~/.zen/tmp/swarm/12D*/UPLANET/__/_*_*/_${SLAT}_${SLON}/_*_*/TW/* \
~/.zen/tmp/${MOATS}/${SECTOR}/TWz
cp -rf ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_*_*/_${SLAT}_${SLON}/_*_*/TW/* \
~/.zen/tmp/${MOATS}/${SECTOR}/TWz
~/.zen/tmp/${MOATS}/${SECTOR}/TWz 2>/dev/null
## GET ALL RSS json's AND Feed SECTOR TW with it
RSSNODE=($(ls ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_*_*/_${SLAT}_${SLON}/_*_*/RSS/*.rss.json 2>/dev/null))
@ -236,7 +235,6 @@ for SECTOR in ${SECTORS[@]}; do
echo ${ZEN} > ~/.zen/tmp/${MOATS}/${SECTOR}/ZEN
echo "Number of RSS : "${TOTL}
rm ~/.zen/tmp/${MOATS}/${SECTOR}/N_RSS* ## TODO REMOVE
echo ${TOTL} > ~/.zen/tmp/${MOATS}/${SECTOR}/N
###########################################################################################

View File

@ -55,9 +55,8 @@ if [[ -s ~/.zen/tmp/${MOATS}/${REGION}.g1history.json ]]; then
if [[ $ipfs_pop ]]; then
g1pub=$(jq -r '.[] | select(.comment | test("UPLANET:'"${SECTOR}"'")) | .pubkey' ~/.zen/tmp/${MOATS}/${REGION}.g1history.json | tail -n 1)
echo "INFO :: $g1pub Memory updater"
[[ "$todate" == "$YESTERDATE" ]] \
&& ipfs --timeout 180s get -o ~/.zen/tmp/${MOATS}/${SECTOR} $ipfs_pop \
|| echo "$ipfs_pop ERROR ... not from $YESTERDATE ... "
ipfs --timeout 180s get -o ~/.zen/tmp/${MOATS}/${SECTOR} $ipfs_pop \
|| echo "$ipfs_pop ERROR ... "
else
echo "WARNING cannot revover any memory !!"
fi

View File

@ -60,9 +60,8 @@ if [[ -s ~/.zen/tmp/${MOATS}/${SECTOR}.g1history.json ]]; then
echo "FOUND $todate MEMORY SLOT"
g1pub=$(jq -r '.[] | select(.comment | test("UPLANET:'"${UMAP}"'")) | .pubkey' ~/.zen/tmp/${MOATS}/${SECTOR}.g1history.json | tail -n 1)
[[ "$g1pub" != "$G1PUB" ]] && echo "INFO :: $g1pub Memory updater"
[[ "$todate" == "$YESTERDATE" ]] \
&& ipfs --timeout 180s get -o ~/.zen/tmp/${MOATS}/${UMAP} $ipfs_pop \
|| echo "$ipfs_pop ERROR ... not from $YESTERDATE ... "
ipfs --timeout 180s get -o ~/.zen/tmp/${MOATS}/${UMAP} $ipfs_pop \
|| echo "$ipfs_pop ERROR ... "
else
echo "WARNING cannot revover any memory !!"
fi

View File

@ -105,7 +105,28 @@ input[name="uplanet"] {
</style>
<!-- Astro API JS LIB -->
<script src="http://127.0.0.1:8080/ipfs/Qmae5v9zydax9u6C9ceDijURu5PYdd5avmv4NkenCw7RFv/astro.js"></script>
<script>
// Function to detect the browser language
function detectBrowserLanguage() {
// Check if the browser supports navigator.language
if (navigator.language) {
return navigator.language;
}
// For browsers that don't support navigator.language, fallback to navigator.browserLanguage
else if (navigator.browserLanguage) {
return navigator.browserLanguage;
}
// If neither is supported, return a default language
else {
return 'en'; // default to English if no language information is available
}
}
// Call the function and display the detected language
var browserLanguage = detectBrowserLanguage();
console.log("Browser Language:", browserLanguage);
// You can use browserLanguage variable wherever you want to utilize the detected language
</script>
<script>
function toggleConsole() {
const console = document.getElementById('console');