From 2bcaaf95bc583c7477206501689925676648ba2d Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 28 Mar 2024 18:32:03 +0100 Subject: [PATCH] UPlanet Zine generator & UPlanet swarm.key forge wish --- ASTROBOT/G1NewUplanet.sh | 16 ++++++++++++ RUNTIME/PLAYER.refresh.sh | 23 ++++++++-------- RUNTIME/VISA.new.sh | 2 +- templates/UPlanetZine/sans titre | 45 ++++++++++++++++++++++++++++++++ 4 files changed, 74 insertions(+), 12 deletions(-) create mode 100644 ASTROBOT/G1NewUplanet.sh create mode 100644 templates/UPlanetZine/sans titre diff --git a/ASTROBOT/G1NewUplanet.sh b/ASTROBOT/G1NewUplanet.sh new file mode 100644 index 00000000..d7712f98 --- /dev/null +++ b/ASTROBOT/G1NewUplanet.sh @@ -0,0 +1,16 @@ +#!/bin/bash +######################################################################## +# Version: 0.1 +# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/) +######################################################################## +MY_PATH="`dirname \"$0\"`" # relative +MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized +ME="${0##*/}" + +. "${MY_PATH}/../tools/my.sh" + +## IT MAKES WISH WALLET MASTER OF NEW UPLANET +## IT MAKES swarm.key as UPLANETNAME +## SAME WISH BE CONNECTED TO THE PRIVATE IPFS MADE FIRST + +exit 0 diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh index bc323966..6727e807 100755 --- a/RUNTIME/PLAYER.refresh.sh +++ b/RUNTIME/PLAYER.refresh.sh @@ -151,7 +151,7 @@ for PLAYER in ${PLAYERONE[@]}; do --output ~/.zen/tmp/${MOATS} \ --render '.' 'GPS.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'GPS' ## GPS Tiddler [[ ! -s ~/.zen/tmp/${MOATS}/GPS.json || $(cat ~/.zen/tmp/${MOATS}/GPS.json) == "[]" ]] \ - && echo "${PLAYER} GPS : BAD TW (☓‿‿☓) " && continue + && msg="${PLAYER} GPS : BAD TW (☓‿‿☓) " && err="(☓‿‿☓)" ############################################################# ## CHECK MadeInZion @@ -160,7 +160,7 @@ for PLAYER in ${PLAYERONE[@]}; do --render '.' 'MadeInZion.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion' ## MadeInZion Tiddler [[ ! -s ~/.zen/tmp/${MOATS}/MadeInZion.json || $(cat ~/.zen/tmp/${MOATS}/MadeInZion.json) == "[]" ]] \ - && echo "${PLAYER} MadeInZion : BAD TW (☓‿‿☓) " && continue + && msg="${PLAYER} MadeInZion : BAD TW (☓‿‿☓) " && err="(☓‿‿☓)" player=$(cat ~/.zen/tmp/${MOATS}/MadeInZion.json | jq -r .[].player) ############################################################# @@ -176,12 +176,6 @@ for PLAYER in ${PLAYERONE[@]}; do --render '.' 'TWsign.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '$:/config/NewTiddler/Tags' ## $:/config/NewTiddler/Tags Tiddler signature=$(cat ~/.zen/tmp/${MOATS}/TWsign.json | jq -r .[].text) echo "${player} SIGNATURE = $signature" - ############################################################ BAD TW SIGNATURE - [[ ${player} != ${PLAYER} || ${PLAYER} != ${signature} ]] \ - && echo "> (☓‿‿☓) BAD PLAYER=$player in TW (☓‿‿☓)" \ - && ${MY_PATH}/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}" "ALL" \ - && continue \ - || echo "${PLAYER} OFFICIAL TW - (⌐■_■) -" ############################################################# ## CHECK "Astroport" TIDDLER @@ -189,7 +183,14 @@ for PLAYER in ${PLAYERONE[@]}; do --output ~/.zen/tmp/${MOATS} \ --render '.' 'Astroport.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'Astroport' ## Astroport Tiddler [[ ! -s ~/.zen/tmp/${MOATS}/Astroport.json || $(cat ~/.zen/tmp/${MOATS}/Astroport.json) == "[]" ]] \ - && echo "${PLAYER} Astroport : BAD TW (☓‿‿☓) " && continue + && msg="${PLAYER} Astroport : BAD TW (☓‿‿☓) " && err="(☓‿‿☓)" + + ############################################################ BAD TW SIGNATURE + [[ ( ${player} != ${PLAYER} || ${PLAYER} != ${signature} || "${err}" == "(☓‿‿☓)" ) && ${PLAYER} != ${CURRENT} ]] \ + && echo "> (☓‿‿☓) BAD PLAYER=$player in TW (☓‿‿☓) $msg" \ + && ${MY_PATH}/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}" "ALL" \ + && continue \ + || echo "${PLAYER} OFFICIAL TW - (⌐■_■) -" BIRTHDATE=$(cat ~/.zen/tmp/${MOATS}/Astroport.json | jq -r .[].birthdate) ASTROPORT=$(cat ~/.zen/tmp/${MOATS}/Astroport.json | jq -r .[].astroport) ## ZenStation IPNS address @@ -322,7 +323,7 @@ for PLAYER in ${PLAYERONE[@]}; do fi ( ## REFRESH LOCAL PLAYER CACHE with FRIEND ACTUAL TW (&) will be used TOMORROW - ipfs --timeout 480s cat ${FTW} > ~/.zen/game/players/${PLAYER}/FRIENDS/${FPLAYER}/index.html + ipfs --timeout 480s cat --progress=false ${FTW} > ~/.zen/game/players/${PLAYER}/FRIENDS/${FPLAYER}/index.html ) & ## CHECK ALREADY IN ${FPLAYER^^} IHASH @@ -357,7 +358,7 @@ for PLAYER in ${PLAYERONE[@]}; do && rm ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html \ || echo "ERROR - CANNOT CREATE TW NEWINDEX - ERROR" - if [[ $ORIGINH != $INSIDEH ]]; then + if [[ $ORIGINH != $INSIDEH && $ORIGINH != "" ]]; then echo "ORIGINH Update" rm -f ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \ diff --git a/RUNTIME/VISA.new.sh b/RUNTIME/VISA.new.sh index c88e9909..18bd8dbf 100755 --- a/RUNTIME/VISA.new.sh +++ b/RUNTIME/VISA.new.sh @@ -39,7 +39,7 @@ YOU=$(myIpfsApi); #~ TWMODEL="/ipfs/bafybeid7xwuqkgyiffehs77x3wky3dghjncxepr5ln6dewapgvbwrqi7n4" #~ # ipfs cat $TWMODEL > templates/twdefault.html TWUPLANET="/ipfs/bafybeigpwapdih24vnakummoyj6vodxiem4i6ezp5hxa35yt3paxpqz53y" ## WITH LIGHTBEAMS SAVER -TWUPLANET="/ipfs/bafybeigynmmvvtsmdtfegddhtjx4cwrk7vewohpoi7hc6xhaqu36lyqyxu" ## WITH IPFS SAVER +TWUPLANET="/ipfs/bafybeicku4z2diasnkc4tch45bcbuvkfqhsic7747uuecwoullts5ehwk4" ## WITH IPFS SAVER # ipfs cat $TWUPLANET > templates/twuplanet.html ################################################################################ diff --git a/templates/UPlanetZine/sans titre b/templates/UPlanetZine/sans titre new file mode 100644 index 00000000..9500ca50 --- /dev/null +++ b/templates/UPlanetZine/sans titre @@ -0,0 +1,45 @@ + + + + +[Astroport Pass Card] + + + + + + + + + + + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +