QRG1avatar.png appears in PLAYER Ŋ1Flux

This commit is contained in:
fred 2023-03-16 16:17:21 +01:00
parent 42c0513b91
commit a5130ba926
4 changed files with 20 additions and 7 deletions

View File

@ -67,6 +67,8 @@ if [[ ${QRCODE:0:2} == "G1" && ${AND} == "tw" ]]; then
APPNAME="G1Voeu"
VOEU=${QRCODE}
ASTROPATH=$(grep ${THIS} ~/.zen/game/players/*/.playerns | cut -d ':' -f 1 | rev | cut -d '/' -f 2- | rev 2>/dev/null)
echo $ASTROPATH
## REDIRECT TO G1VOEU IPNS ADDRESS
LINK=$(cat $ASTROPATH/voeux/${QRCODE:2}/*/.link)
echo "#>>> DISPLAY WISHNS >>>> # $VOEU : $LINK"

View File

@ -141,6 +141,10 @@ do
echo
# echo "DEBUG : s~_LIBRA_~$(myIpfsGw)~g s~_G1VOEU_~${WISHNAME}~g s~_PLAYER_~${PLAYER}~g s~_VOEUNS_~${VOEUNS}~g s~_ASTRONAUTENS_~${ASTRONAUTENS}~g"
echo
[[ ! -s ~/.zen/game/players/${PLAYER}/QRG1avatar.dir.ipfs ]] \
&& ipfs add -qrw ~/.zen/game/players/${PLAYER}/QRG1avatar.png | tail -n 1> ~/.zen/game/players/${PLAYER}/QRG1avatar.dir.ipfs
QRLINK=$(cat ~/.zen/game/players/${PLAYER}/QRG1avatar.dir.ipfs)
##################################
cat $MY_PATH/../www/PasseportTerre/index.html \
| sed -e "s~_LIBRA_~$(myIpfsGw)~g" \
@ -148,6 +152,7 @@ do
-e "s~_PLAYER_~${PLAYER}~g" \
-e "s~_VOEUNS_~${VOEUNS}~g" \
-e "s~_ASTRONAUTENS_~${ASTRONAUTENS}~g" \
-e "s~QmWUpjGFuF7NhpXgkrCmx8Tbu4xjcFpKhE7Bsvt6HeKYxu/g1ticket_qrcode.png~${QRLINK}/QRG1avatar.png~g" \
> ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/index.html
### PREPARE WISHNAME index.html
##################################

View File

@ -48,11 +48,11 @@ header {
<body>
<header>
<h6>
<p id="station"><span>BOX</span></p>
<p id="station"><span>BOX</span> <div id='countdown'></div></p>
<div>
<button onclick="homeAstroportStation('/?qrcode=station', '', 9654)">Open Station</button>
<div id="login"><button onclick="promptUser('login')">LOGIN</button><button onclick="promptUser('logout')">LOGOUT</button></div>
</div><div id='countdown'></div>
</div>
<div id="ainfo"></div><div id="debug"></div>
</h6>
</header>

View File

@ -2,7 +2,7 @@
<html>
<head>
<title>_PLAYER_ : _G1VOEU_ ASTROPORT PORTAL : http://astroport.localhost:1234</title>
<title>_PLAYER_ : _G1VOEU_ : http://astroport.localhost:1234</title>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/favicon.ico">
<link rel="stylesheet" href="/ipfs/QmX2K94hw9RBULFHS59uGHgB2HGco3Zp7wAfDjp1ak5aV9/index_fichiers/demo.css">
@ -185,10 +185,16 @@
<div id="description">
<h3>_PLAYER_</h3>
<p id="ainfo">
Prenez le contrôle de votre identité en ligne en créant un TW, registre décentralisé de vos références.
En y diffusant vos "informations favorites", cela valide votre identité en ligne et augmente votre réputation,
ainsi vous pouvez accéder aux personnes les plus dignes de confiance et maximisez votre capacité à bénéficier de la Monnaie Libre.
Plus vous vérifiez votre identité, plus vous aurez d'opportunités de voter et de participer sur Astroport Ŋ1.
Ŋ1Flux de ma clef _G1VOEU_ et portails vers le même Voeu de mes amis >★.
Le réseau ♥BOX actualise ces données à la tombée de chaque jour.
<br>
Chaque synchronisation exécute le code de même nom que le voeu et lui transfert 1 G1.
<br>
TODO:
+ display video with overlay link to grab Tid into my TW.
+ planet map with poster (or gifanime)
+ locations = real friendŊ1flux
</p>
<h2>Install <a href="https://cesium.app">Cesium</a> !</h2>
<p><a href="https://ipfs.copylaradio.com/ipns/_ASTRONAUTENS_">