From 12f2231a55834de9b48ac6068afd2908abd2708e Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 31 Aug 2022 18:02:06 +0200 Subject: [PATCH] echo "LANCEZ curl "'"$G1BARRE"'" " --- G1VOEUX.sh | 3 +-- tools/PLAYER.refresh.sh | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/G1VOEUX.sh b/G1VOEUX.sh index 7e91ae4d..8ec077d7 100755 --- a/G1VOEUX.sh +++ b/G1VOEUX.sh @@ -154,8 +154,7 @@ composite -compose Over -gravity NorthWest -geometry +320+280 /tmp/MIZLOGO.png / convert -gravity northwest -pointsize 28 -fill black -draw "text 32,350 \"Ğ1 VOEU\"" /tmp/two.png /tmp/pep.png convert -gravity northwest -pointsize 50 -fill black -draw "text 30,300 \"$PEPPER\"" /tmp/pep.png /tmp/voeu.png - - # IMAGE DASN IPFS + # IMAGE DANS IPFS IVOEUPLAY=$(ipfs add -Hq /tmp/player.png | tail -n 1) IVOEU=$(ipfs add -Hq /tmp/voeu.png | tail -n 1) diff --git a/tools/PLAYER.refresh.sh b/tools/PLAYER.refresh.sh index 5bccffa2..e5c916d2 100755 --- a/tools/PLAYER.refresh.sh +++ b/tools/PLAYER.refresh.sh @@ -45,6 +45,21 @@ for PLAYER in $(ls ~/.zen/game/players/); do fi fi +########################## +# Generate Corwdfunding Bars for each wish +for g1wish in $(ls ~/.zen/game/players/$PLAYER/voeux/); do + wishname=$(cat ~/.zen/game/players/$PLAYER/voeux/$g1wish/.title) + echo "VOEU $wishname : $g1wish" + # TOTO Install g1barre on localhost !! + G1BARRE="https://g1sms.fr/g1barre/image.php?pubkey=$g1wish&target=1000&title=$wishname&node=g1.duniter.org&start_date=2022-08-01&display_pubkey=true&display_qrcode=true&progress_color=ff07a4" + echo "LANCEZ curl "'"$G1BARRE"'" " + +done + + +############################ + + MOATS=$(date -u +"%Y%m%d%H%M%S%4N") [[ $DIFF ]] && cp ~/.zen/game/players/$PLAYER/ipfs/moa/.chain ~/.zen/game/players/$PLAYER/ipfs/moa/.chain.$MOATS