From 88305b5534878629eb305e3a4cffda71127b72fb Mon Sep 17 00:00:00 2001 From: qo-op Date: Fri, 29 Jan 2021 00:07:25 +0100 Subject: [PATCH] xbian style (ASTROPORT/KODI) create XZUID pseudo for gchange --- MAKE_G1BILLET.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/MAKE_G1BILLET.sh b/MAKE_G1BILLET.sh index f685e90..3ab564f 100755 --- a/MAKE_G1BILLET.sh +++ b/MAKE_G1BILLET.sh @@ -68,9 +68,18 @@ esac # Add June LOGO to Billet composite -compose Over -gravity NorthEast -geometry +50+25 -dissolve 90% "/tmp/g1billet/${UNIQID}/g1.png" "/tmp/${BILLETNAME}.jpg" "/tmp/${BILLETNAME}.jpg" +# xbian style (ASTROPORT/KODI) +if [[ "${STYLE}" == "xbian" ]] +then + # CREATE PSEUDO for Gchange.fr + XZUID=$(${MY_PATH}/diceware.sh 1 | xargs)${RANDOM:0:2}$(${MY_PATH}/diceware.sh 1 | xargs) +else + XZUID="G1 BILLET" +fi + convert -font 'Liberation-Sans' \ -pointsize 120 -fill black -draw 'text 330,250 "'"$MONTANT DU"'"' \ --pointsize 40 -fill black -draw 'text 75,50 "'"G1 BILLET"'"' \ +-pointsize 40 -fill black -draw 'text 75,50 "'"$XZUID"'"' \ -pointsize 30 -draw 'text 50,100 "'"Identifiant: $NUMERO"'"' \ -pointsize 22 -fill black -draw 'text 50,130 "'"Code Secret: $SECRET"'"' \ -pointsize 25 -fill black -draw 'text 150,440 "'"Porte Monnaie Libre!! Utilisez avec https://cesium.app"'"' \