amzqr "$myASTROPORT/?qrcode=$G1PUB&sslpassdunikeysec=$PASsec&askpass=$HPass&tw=$ASTRONAUTENS" \

This commit is contained in:
fred 2023-03-04 01:26:30 +01:00
parent 382a10a415
commit 9095333b5c
4 changed files with 18 additions and 47 deletions

View File

@ -48,53 +48,23 @@ ASTRONAUTENS=$(~/.zen/Astroport.ONE/tools/g1_to_ipfs.py ${QRCODE})
&& (echo "$HTTPCORS ERROR - ASTRONAUTENS !!" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) \
&& exit 1
echo ">>> ${QRCODE} g1_to_ipfs $ASTRONAUTENS"
## SEND MESSAGE TO CESIUM+ ACCOUNT (ME or .current)
MYPLAYERKEY=$(grep ${QRCODE} ~/.zen/game/players/*/secret.dunikey | cut -d ':' -f 1)
[[ ! $MYPLAYERKEY ]] && MYPLAYERKEY="$HOME/.zen/game/players/.current/secret.dunikey"
## COUCOU MSG
## CCHANGE +
$MY_PATH/../tools/jaklis/jaklis.py -n $myGCHANGE -k $MYPLAYERKEY send -d "${QRCODE}" -t "CONTACT" -m "Rendez vous
sur https://astroport.copylaradio.com/
Saisissez votre URL Youtube Favorite et un email
Activez votre Capsule IPFS
/ipns/$ASTRONAUTENS"
$MY_PATH/../tools/jaklis/jaklis.py -n $myGCHANGE -k $MYPLAYERKEY send -d "${QRCODE}" -t "COUCOU" -m "Rendez vous sur https://astroport.copylaradio.com/"
## CESIUM +
$MY_PATH/../tools/jaklis/jaklis.py -n $myCESIUM -k $MYPLAYERKEY send -d "${QRCODE}" -t "CONTACT" -m "Rendez vous
sur https://astroport.copylaradio.com/
Saisissez votre URL Youtube Favorite et un email
Activez votre Capsule IPFS
/ipns/$ASTRONAUTENS"
#~ echo "ipfs --timeout 120s cat /ipns/$ASTRONAUTENS > ~/.zen/tmp/${MOATS}/index.html"
#~ ipfs --timeout 120s cat /ipns/$ASTRONAUTENS > ~/.zen/tmp/${MOATS}/index.html
#~ if [[ -s ~/.zen/tmp/${MOATS}/index.html ]]; then
#~ tiddlywiki --load ~/.zen/tmp/${MOATS}/index.html --output ~/.zen/tmp/${MOATS} --render '.' "MadeInZion.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion'
#~ [[ ! -s ~/.zen/tmp/${MOATS}/MadeInZion.json ]] \
#~ && ( echo "~~~ NO /ipns/$ASTRONAUTENS (☓‿‿☓) CREATE A TW ~~~" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 & ) \
#~ && exit 1
#~ GPLAYER=$(cat ~/.zen/tmp/${MOATS}/MadeInZion.json | jq -r .[].player)
#~ REPLACE="https://$myTUBE/ipns/${ASTRONAUTENS}" \
#~ ## REDIRECT TO TW OR GCHANGE PROFILE
#~ sed "s~_TWLINK_~${REPLACE}/~g" ~/.zen/Astroport.ONE/templates/index.302 > ~/.zen/tmp/${MOATS}/index.redirect
#~ echo "url='"${REPLACE}"'" >> ~/.zen/tmp/${MOATS}/index.redirect
#~ (
#~ cat ~/.zen/tmp/${MOATS}/index.redirect | nc -l -p ${PORT} -q 1 > /dev/null 2>&1
#~ ) &
#~ exit 0
#~ fi
$MY_PATH/../tools/jaklis/jaklis.py -n $myCESIUM -k $MYPLAYERKEY send -d "${QRCODE}" -t "COUCOU" -m "Rendez vous sur https://astroport.copylaradio.com/"
###################################################################################################
### amzqr "$myASTROPORT/?qrcode=$G1PUB&sslpassdunikeysec=$PASsec&askpass=$HPass&tw=$ASTRONAUTENS" \
### amzqr "$myASTROPORT/?qrcode=$WISHKEY&sslpassdunikeysec=$PASsec&asksalt=$HPass&flux=$VOEUNS&tw=$ASTRONAUTENS" \
## TODO MAGIC QRCODE RX / TX
###################################################################################################
# API TWO : ?qrcode=G1PUB&url=____&type=____

View File

@ -100,7 +100,7 @@ mkdir -p ~/.zen/tmp/$MOATS
qrencode -s 12 -o $HOME/.zen/game/players/${PLAYER}/QRsec.png $PASsec
## MAKE amzqr WITH astro:// LINK
amzqr "$myASTROPORT/?astro=$WISHKEY&sslpassdunikeysec=$PASsec&hashpass=$HPass&player=$PLAYER&tw=/ipns/$ASTRONAUTENS&g1pub=$G1PUB&flux=/ipns/$VOEUNS" \
amzqr "$myASTROPORT/?qrcode=$WISHKEY&sslpassdunikeysec=$PASsec&asksalt=$HPass&flux=$VOEUNS&tw=$ASTRONAUTENS" \
-d "$HOME/.zen/game/world/$PEPPER/$WISHKEY" \
-l H \
-p ${MY_PATH}/../images/g1magicien.png -c

View File

@ -195,7 +195,7 @@ DISCO="https://astroport.$(myHostName)/?salt=${SALT}&pepper=${PEPPER}&logout=${P
qrencode -s 12 -o $HOME/.zen/game/players/${PLAYER}/QRsec.png $PASsec
## MAKE amzqr WITH astro:// LINK
amzqr "$myASTROPORT/?astro=$G1PUB/?sslpassdunikeysec=$PASsec&hashpass=$HPass&player=$PLAYER&tw=/ipns/$ASTRONAUTENS&g1pub=$G1PUB" \
amzqr "$myASTROPORT/?qrcode=$G1PUB&sslpassdunikeysec=$PASsec&askpass=$HPass&tw=$ASTRONAUTENS" \
-d $HOME/.zen/game/players/${PLAYER} \
-l H \
-p ${MY_PATH}/../images/G1WorldMap.png

View File

@ -108,12 +108,7 @@
<h2>Install <a href="https://cesium.app">Cesium</a> !</h2>
<p><a href="https://ipfs.copylaradio.com/ipns/_ASTRONAUTENS_">
<img src="/ipfs/QmWUpjGFuF7NhpXgkrCmx8Tbu4xjcFpKhE7Bsvt6HeKYxu/g1ticket_qrcode.png" width=65%>
</a></p>
<br>
<p>/ <a href="https://opencollective.com/monnaie-libre/projects/stiits">LaSTI</a> is made by YOU hosting <a href="https://opencollective.com/monnaie-libre/projects/coeurbox">La♥BOX</a>,
<br> IPFS DATA STORAGE 👍 </p>
<p>Powered by <a href="https://github.com/papiche/Astroport.ONE">Astroport.ONE</a></p>
</a>
</div>
<div id="showoff">
@ -217,6 +212,12 @@
});
</script>
</p>
<br>
<br> 👍 IPFS DATA STORAGE 👍 </p>
<p>Powered by <a href="https://github.com/papiche/Astroport.ONE">Astroport.ONE</a></p>
<p>/ <a href="https://opencollective.com/monnaie-libre/projects/stiits">LaSTI</a> / <a href="https://opencollective.com/monnaie-libre/projects/coeurbox">La♥BOX</a> /
</body>
</html>