xbian style (ASTROPORT/KODI) create XZUID pseudo for gchange

This commit is contained in:
qo-op 2021-01-29 00:07:25 +01:00
parent e86473de27
commit 88305b5534
1 changed files with 10 additions and 1 deletions

View File

@ -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"'"' \