"modified": "_MOATS_",

This commit is contained in:
fred 2024-03-10 15:24:31 +01:00
parent 9569832e75
commit a51542a1e1
3 changed files with 47 additions and 30 deletions

View File

@ -247,34 +247,34 @@ for PLAYER in ${PLAYERONE[@]}; do
############################################################## ##############################################################
echo "##################################################################" echo "##################################################################"
[[ $(echo "$COINS >= 2" | bc -l) -eq 1 ]] \ #~ [[ $(echo "$COINS >= 2" | bc -l) -eq 1 ]] \
&& echo "## Connect_PLAYER_To_Gchange.sh" \ #~ && echo "## Connect_PLAYER_To_Gchange.sh" \
&& ${MY_PATH}/../tools/Connect_PLAYER_To_Gchange.sh "${PLAYER}" \ #~ && ${MY_PATH}/../tools/Connect_PLAYER_To_Gchange.sh "${PLAYER}" \
|| echo "$COINS <= 1 G1 + 10 ẑen : bypass Gchange stars exchange (★★★★★)" #~ || echo "$COINS <= 1 G1 + 10 ẑen : bypass Gchange stars exchange (★★★★★)"
############################################################## #~ ##############################################################
# G1PalPay - 2 G1 mini -> Check for G1 TX incoming comments # #~ # G1PalPay - 2 G1 mini -> Check for G1 TX incoming comments #
############################################################## #~ ##############################################################
if [[ $(echo "$COINS >= 2" | bc -l) -eq 1 ]]; then #~ if [[ $(echo "$COINS >= 2" | bc -l) -eq 1 ]]; then
############################################################## #~ ##############################################################
# G1PalPay.sh # #~ # G1PalPay.sh #
############################################################## #~ ##############################################################
echo "## RUNNING G1PalPay Wallet Monitoring " #~ echo "## RUNNING G1PalPay Wallet Monitoring "
${MY_PATH}/G1PalPay.sh ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html "${PLAYER}" #~ ${MY_PATH}/G1PalPay.sh ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html "${PLAYER}"
############################################################## #~ ##############################################################
# VOEUX.create.sh # #~ # VOEUX.create.sh #
############################################################## #~ ##############################################################
${MY_PATH}/VOEUX.create.sh ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html "${PLAYER}" "${G1PUB}" #~ ${MY_PATH}/VOEUX.create.sh ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html "${PLAYER}" "${G1PUB}"
############################################################## #~ ##############################################################
# VOEUX.refresh.sh # #~ # VOEUX.refresh.sh #
############################################################## #~ ##############################################################
${MY_PATH}/VOEUX.refresh.sh "${PLAYER}" "${MOATS}" ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html #~ ${MY_PATH}/VOEUX.refresh.sh "${PLAYER}" "${MOATS}" ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html
else #~ else
echo "> ZenCard not activated ($ZEN ZEN)" #~ echo "> ZenCard not activated ($ZEN ZEN)"
fi #~ fi
##################################################################### #####################################################################
# (RE)MAKE "CESIUM" TIDDLER # (RE)MAKE "CESIUM" TIDDLER
@ -357,16 +357,32 @@ for PLAYER in ${PLAYERONE[@]}; do
echo "Insert New ${FPLAYER^^}.json" echo "Insert New ${FPLAYER^^}.json"
cat ~/.zen/tmp/${MOATS}/${FPLAYER^^}.json | jq cat ~/.zen/tmp/${MOATS}/${FPLAYER^^}.json | jq
INPUTPLAYERS+=(" --import ${HOME}/.zen/tmp/${MOATS}/${FPLAYER^^}.json 'application/json' ") # Append to the array tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
[[ $ORIGINH != $INSIDEH ]] \ --import ${HOME}/.zen/tmp/${MOATS}/${FPLAYER^^}.json 'application/json' \
&& echo "ORIGINH Update" \ --output ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER} \
&& INPUTPLAYERS+=(" --import ${HOME}/.zen/tmp/${MOATS}/${FPLAYER}.json 'application/json' ") --render "$:/core/save/all" "newindex.html" "text/plain"
[[ -s ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html ]] \
&& cp ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
&& rm ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html \
|| echo "ERROR - CANNOT CREATE TW NEWINDEX - ERROR"
if [[ $ORIGINH != $INSIDEH ]]; then
echo "ORIGINH Update"
rm -f ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
--import ${HOME}/.zen/tmp/${MOATS}/${FPLAYER}.json 'application/json' \
--output ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER} \
--render "$:/core/save/all" "newindex.html" "text/plain"
[[ -s ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html ]] \
&& cp ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
&& rm ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html \
|| echo "ERROR - CANNOT CREATE TW NEWINDEX - ERROR"
fi
fi fi
done done
## FRIENDS TW FLUX TO IMPORT ## FRIENDS TW FLUX TO IMPORT
echo "${INPUTPLAYERS[@]}"
##################################################################### #####################################################################
## GET $:/moa Tiddlers ####################################### END ## GET $:/moa Tiddlers ####################################### END
##################################################################### #####################################################################
@ -406,7 +422,6 @@ for PLAYER in ${PLAYERONE[@]}; do
--import ~/.zen/tmp/${MOATS}/GPS.json "application/json" \ --import ~/.zen/tmp/${MOATS}/GPS.json "application/json" \
--import ~/.zen/tmp/${MOATS}/CESIUM.json "application/json" \ --import ~/.zen/tmp/${MOATS}/CESIUM.json "application/json" \
--import ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json "application/json" \ --import ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json "application/json" \
"${INPUTPLAYERS[@]}" \
--import ~/.zen/tmp/${MOATS}/lightbeam-name.json "application/json" \ --import ~/.zen/tmp/${MOATS}/lightbeam-name.json "application/json" \
--import ~/.zen/tmp/${MOATS}/lightbeam-key.json "application/json" \ --import ~/.zen/tmp/${MOATS}/lightbeam-key.json "application/json" \
--output ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER} --render "$:/core/save/all" "newindex.html" "text/plain" --output ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER} --render "$:/core/save/all" "newindex.html" "text/plain"

View File

@ -1,6 +1,7 @@
[ [
{ {
"created": "_MOATS_", "created": "_MOATS_",
"modified": "_MOATS_",
"text": "_SECTORTW_", "text": "_SECTORTW_",
"tags": "load-external _PLAYER_ $:/tags/load-external-content", "tags": "load-external _PLAYER_ $:/tags/load-external-content",
"title": "_SECTOR_.NEWS", "title": "_SECTOR_.NEWS",

View File

@ -1,6 +1,7 @@
[ [
{ {
"created": "_MOATS_", "created": "_MOATS_",
"modified": "_MOATS_",
"title": "_UPPERFPLAYER_", "title": "_UPPERFPLAYER_",
"text": "\\procedure loadMyWiki()\n\\import [[$:/plugins/sq/ExternalContent/loadWikiActions]]\n<$transclude\n $variable=\"loadWikiActions\"\n wikiURL={{!!wikiURL}}\n contentFilter={{!!filter}}\n deseralizer=\"text/html\"\n />\n\\end\n\n<details open=\"yes\">\n <summary>_UPPERFPLAYER_ TW:</summary>\n <div>\n\n<$edit size=60 field=\"wikiURL\"/> ⬅︎ TW <br>\n<$edit size=50 field=\"filter\"/> ⬅︎ Filtration\n\n<<hspace>><$button actions=<<loadMyWiki>> > _UPPERFPLAYER_ TW </$button>\n\n </div>\n </details>\n\n[[EXTERNAL|EXTERNAL]]\n \n", "text": "\\procedure loadMyWiki()\n\\import [[$:/plugins/sq/ExternalContent/loadWikiActions]]\n<$transclude\n $variable=\"loadWikiActions\"\n wikiURL={{!!wikiURL}}\n contentFilter={{!!filter}}\n deseralizer=\"text/html\"\n />\n\\end\n\n<details open=\"yes\">\n <summary>_UPPERFPLAYER_ TW:</summary>\n <div>\n\n<$edit size=60 field=\"wikiURL\"/> ⬅︎ TW <br>\n<$edit size=50 field=\"filter\"/> ⬅︎ Filtration\n\n<<hspace>><$button actions=<<loadMyWiki>> > _UPPERFPLAYER_ TW </$button>\n\n </div>\n </details>\n\n[[EXTERNAL|EXTERNAL]]\n \n",
"tags": "_PLAYER_ $:/tags/load-external-content", "tags": "_PLAYER_ $:/tags/load-external-content",