From 3836d90531f30919cd6667980bef925b92c6cdad Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 10 Oct 2022 15:17:30 +0200 Subject: [PATCH] =?UTF-8?q?#=20ASTROBOT=20PROCESS=20#=20tube=20+=20(voeu)?= =?UTF-8?q?=20=3D>=20tube=20(G1Voeu=20G1Tube)=20=3D=20ASTROBOT=20copy=20?= =?UTF-8?q?=C5=8A1=20"(G1Tube)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ASTROBOT/TUBE.copy.sh | 6 +++--- G1VOEUX.sh | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ASTROBOT/TUBE.copy.sh b/ASTROBOT/TUBE.copy.sh index a3a034ea..03987b78 100755 --- a/ASTROBOT/TUBE.copy.sh +++ b/ASTROBOT/TUBE.copy.sh @@ -12,8 +12,8 @@ ME="${0##*/}" # Download video, add to ipfs and import new tiddler # Publish !! -## BEWARE, DO NOT MODIFY TW DURING THIS PROCESS !! -# TODO use crontab to run regularly +# ASTROBOT PROCESS # tube + (voeu) => tube (G1Voeu G1Tube) = ASTROBOT copy Ŋ1 "(G1Tube)" + INDEX="$1" [[ ! $INDEX ]] && echo "Please provide path to source TW index.html" && exit 1 @@ -123,7 +123,7 @@ while read YID; "sec": "'${SEC}'", "ipfs": "'${ILINK}'", "youtubeid": "'${YID}'", - "tags": "'ipfs youtube g1tube ${EXTRATAG} ${MIME}'" + "tags": "'ipfs G1Tube ${EXTRATAG} ${MIME}'" } ] ' > "$HOME/.zen/tmp/$WISHKEY/$YID.TW.json" diff --git a/G1VOEUX.sh b/G1VOEUX.sh index 14973f4d..591048f3 100755 --- a/G1VOEUX.sh +++ b/G1VOEUX.sh @@ -170,7 +170,7 @@ convert -gravity northwest -pointsize 50 -fill black -draw "text 30,300 \"$PEPPE "ipns": "'/ipns/$VOEUXNS'", "ipfs": "'/ipfs/$IVOEUPLAY'", "text": "'$TEXT'", - "tags": "'g1voeu ${PEPPER}'" + "tags": "'G1Voeu G1${PEPPER}'" } ] ' > ~/.zen/game/world/$WISHKEY/${PEPPER}.voeu.json @@ -189,6 +189,8 @@ convert -gravity northwest -pointsize 50 -fill black -draw "text 30,300 \"$PEPPE if [[ -s ~/.zen/tmp/newindex.html ]]; then echo "Mise à jour $INDEX" cp -f ~/.zen/tmp/newindex.html $INDEX + else + echo "ERROR INTO ~/.zen/game/world/$WISHKEY/${PEPPER}.voeu.json" fi # PRINTING @@ -220,11 +222,11 @@ convert -gravity northwest -pointsize 50 -fill black -draw "text 30,300 \"$PEPPE echo $MOATS > ~/.zen/game/world/$WISHKEY/.moats echo - echo "Astronaute Ŋ1 : http://127.0.0.1:8080/ipns/$ASTRONAUTENS" + echo "Astronaute TW : http://127.0.0.1:8080/ipns/$ASTRONAUTENS" + echo "Nouveau G1Voeu : $PEPPER (document de contrôle de copie Ŋ1)" + echo "TW $PEPPER : http://127.0.0.1:8080/ipns/$VOEUXNS" - echo "CAPSULE A REVE $PEPPER : http://127.0.0.1:8080/ipns/$VOEUXNS" - - echo "## Creating Cesium+ Profil #### timeout long ... patience ...." + echo "## TO RECEIVE G1RONDS Creating Cesium+ Profil #### timeout long ... patience ...." $MY_PATH/tools/jaklis/jaklis.py -k ~/.zen/tmp/qrtw.dunikey -n "https://g1.data.presles.fr" set --name "G1Voeu $PEPPER" --avatar "/home/$USER/.zen/Astroport.ONE/images/logojune.jpg" --site "https://astroport.com/ipns/$VOEUXNS" #CESIUM+ [[ ! $? == 0 ]] && echo "CESIUM PROFILE CREATION FAILED !!!!"