This commit is contained in:
parent
3040a8eff0
commit
5044400869
14
12345.sh
14
12345.sh
|
@ -43,8 +43,8 @@ Server: Astroport.ONE
|
||||||
Content-Type: text/html; charset=UTF-8
|
Content-Type: text/html; charset=UTF-8
|
||||||
|
|
||||||
"
|
"
|
||||||
echo "_________________________________________________________"
|
echo "_________________________________________________________ $(date)"
|
||||||
echo "LAUNCHING Astroport API Server - TUBE : $TUBE - "
|
echo "LAUNCHING Astroport API Server - TUBE : $LIBRA - "
|
||||||
echo
|
echo
|
||||||
echo "OPEN GCHANGE ${myHTTP}${myHOST}:1234/?salt=totodu56&pepper=totodu56&g1pub"
|
echo "OPEN GCHANGE ${myHTTP}${myHOST}:1234/?salt=totodu56&pepper=totodu56&g1pub"
|
||||||
echo "VISA.new ${myHTTP}${myHOST}:1234/?salt=totodu56&pepper=totodu56&g1pub=on&email=totodu56@yopmail.com"
|
echo "VISA.new ${myHTTP}${myHOST}:1234/?salt=totodu56&pepper=totodu56&g1pub=on&email=totodu56@yopmail.com"
|
||||||
|
@ -486,7 +486,7 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh
|
||||||
echo "$HTTPCORS - <meta http-equiv='refresh' content='3; url=\"http://"${myHOST}":8080/ipns/"$ASTRONAUTENS"\"'/>
|
echo "$HTTPCORS - <meta http-equiv='refresh' content='3; url=\"http://"${myHOST}":8080/ipns/"$ASTRONAUTENS"\"'/>
|
||||||
<h1>BOOTING - ASTRONAUT $PSEUDO </h1> IPFS FORMATING - [$SALT + $PEPPER] (${WHAT})
|
<h1>BOOTING - ASTRONAUT $PSEUDO </h1> IPFS FORMATING - [$SALT + $PEPPER] (${WHAT})
|
||||||
<br>- TW - http://${myHOST}:8080/ipns/$ASTRONAUTENS <br> - GW - /ipns/$IPFSNODEID" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &
|
<br>- TW - http://${myHOST}:8080/ipns/$ASTRONAUTENS <br> - GW - /ipns/$IPFSNODEID" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &
|
||||||
echo "(☓‿‿☓) Execution time was "`expr $end - $start` seconds.
|
|
||||||
continue
|
continue
|
||||||
else
|
else
|
||||||
# ASTRONAUT EXISTING ${WHAT}
|
# ASTRONAUT EXISTING ${WHAT}
|
||||||
|
@ -556,14 +556,14 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh
|
||||||
"title": "'${MOATS}'",
|
"title": "'${MOATS}'",
|
||||||
"type": "'text/vnd.tiddlywiki'",
|
"type": "'text/vnd.tiddlywiki'",
|
||||||
"text": "'$(urldecode $wsource)'",
|
"text": "'$(urldecode $wsource)'",
|
||||||
"tags": "'CopierYoutube ${${WHAT}}'"
|
"tags": "'CopierYoutube ${WHAT}'"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
' > ~/.zen/tmp/${${WHAT}}.${MOATS}.import.json
|
' > ~/.zen/tmp/${WHAT}.${MOATS}.import.json
|
||||||
|
|
||||||
## TODO ASTROBOT "G1AstroAPI" READS ~/.zen/tmp/${${WHAT}}.${MOATS}.import.json
|
## TODO ASTROBOT "G1AstroAPI" READS ~/.zen/tmp/${WHAT}.${MOATS}.import.json
|
||||||
|
|
||||||
(echo "$HTTPCORS OK - ~/.zen/tmp/${${WHAT}}.${MOATS}.import.json WORKS IF YOU MAKE THE WISH voeu 'AstroAPI'" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) && continue
|
(echo "$HTTPCORS OK - ~/.zen/tmp/${WHAT}.${MOATS}.import.json WORKS IF YOU MAKE THE WISH voeu 'AstroAPI'" | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 &) && continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -57,8 +57,7 @@ isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(
|
||||||
echo "Getting latest online TW..."
|
echo "Getting latest online TW..."
|
||||||
YOU=$(ipfs swarm peers >/dev/null 2>&1 && echo "$USER" || ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1);
|
YOU=$(ipfs swarm peers >/dev/null 2>&1 && echo "$USER" || ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1);
|
||||||
LIBRA=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 2)
|
LIBRA=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 2)
|
||||||
echo "$LIBRA/ipns/$ASTRONAUTENS"
|
echo "($YOU) /ipns/$ASTRONAUTENS $LIBRA"
|
||||||
echo "http://$myIP:8080/ipns/$ASTRONAUTENS ($YOU)"
|
|
||||||
[[ $YOU ]] && ipfs --timeout 30s cat /ipns/$ASTRONAUTENS > ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/index.html \
|
[[ $YOU ]] && ipfs --timeout 30s cat /ipns/$ASTRONAUTENS > ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/index.html \
|
||||||
|| curl -m 30 -so ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/index.html "$LIBRA/ipns/$ASTRONAUTENS"
|
|| curl -m 30 -so ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/index.html "$LIBRA/ipns/$ASTRONAUTENS"
|
||||||
|
|
||||||
|
@ -143,7 +142,7 @@ isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(
|
||||||
###########################
|
###########################
|
||||||
# Modification Tiddlers de contrôle de GW & API
|
# Modification Tiddlers de contrôle de GW & API
|
||||||
echo '[{"title":"$:/ipfs/saver/api/http/localhost/5001","tags":"$:/ipfs/core $:/ipfs/saver/api","text":"http://ipfs.localhost:5001"}]' > ~/.zen/tmp/5001.json
|
echo '[{"title":"$:/ipfs/saver/api/http/localhost/5001","tags":"$:/ipfs/core $:/ipfs/saver/api","text":"http://ipfs.localhost:5001"}]' > ~/.zen/tmp/5001.json
|
||||||
echo '[{"title":"$:/ipfs/saver/gateway/http/localhost","tags":"$:/ipfs/core $:/ipfs/saver/gateway","text":"http://'$TUBE':8080"}]' > ~/.zen/tmp/8080.json
|
echo '[{"title":"$:/ipfs/saver/gateway/http/localhost","tags":"$:/ipfs/core $:/ipfs/saver/gateway","text":"https://ipfs.copylaradio.com"}]' > ~/.zen/tmp/8080.json
|
||||||
|
|
||||||
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/index.html \
|
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/index.html \
|
||||||
--import "$HOME/.zen/tmp/MadeInZion.json" "application/json" \
|
--import "$HOME/.zen/tmp/MadeInZion.json" "application/json" \
|
||||||
|
|
14
README.md
14
README.md
|
@ -48,9 +48,18 @@ Trouvez le moyen d'accéder à votre "Station Astroport" en explorant les enviro
|
||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
# https://ipfs.copylaradio.com/ipns/support.qo-op.com.localhost.copylaradio.com : IPNS : TW index du PLAYER support@qo-op.com
|
Plus de connexion officielle.
|
||||||
|
L'UTILISATEUR devient un JOUEUR, en semant son propre IPFS, en utilisant un Docker sur un nœud Astroport géré par un autre JOUEUR.
|
||||||
|
|
||||||
# USAGE
|
Ainsi, les AMIS peuvent héberger d'autres AMIS.
|
||||||
|
|
||||||
|
# RESULTAT
|
||||||
|
|
||||||
|
TW du PLAYER support@qo-op.com
|
||||||
|
|
||||||
|
https://ipfs.copylaradio.com/ipns/support.qo-op.com.localhost.copylaradio.com
|
||||||
|
|
||||||
|
# TW
|
||||||
|
|
||||||
Selon le modèle de votre TW,
|
Selon le modèle de votre TW,
|
||||||
|
|
||||||
|
@ -149,7 +158,6 @@ Exemple pour l'application "G1Voeu" https://ipfs.copylaradio.com/ipns/12D3KooWL2
|
||||||
Application "messaging"
|
Application "messaging"
|
||||||
http://tube.copylaradio.com:1234/?salt=toto&pepper=toto&messaging=on
|
http://tube.copylaradio.com:1234/?salt=toto&pepper=toto&messaging=on
|
||||||
|
|
||||||
|
|
||||||
Pour écrire une application on pourra utiliser "jsipfs"
|
Pour écrire une application on pourra utiliser "jsipfs"
|
||||||
|
|
||||||
https://js.ipfs.tech/
|
https://js.ipfs.tech/
|
||||||
|
|
|
@ -36,13 +36,12 @@ alias espeak='espeak 1>&2>/dev/null'
|
||||||
PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null)
|
PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null)
|
||||||
|
|
||||||
[[ ${PLAYER} == "" ]] \
|
[[ ${PLAYER} == "" ]] \
|
||||||
&& espeak "PLEASE RUN START AND CONNECT PLAYER" \
|
&& espeak "YOU MUST CONNECT A PLAYER" \
|
||||||
&& OUTPUT=$(zenity --forms --width 480 --title="CONNEXION" --text="Vos Clés ?" --separator="~" --add-entry="Phrase 1" --add-entry="Phrase 2") \
|
&& OUTPUT=$(zenity --forms --width 480 --title="CONNEXION" --text="Ecrivez la formule magique" --separator="~" --add-entry="Phrase 1" --add-entry="Phrase 2") \
|
||||||
&& SALT=$(awk -F '~' '{print $1}' <<<$OUTPUT) \
|
&& SALT=$(awk -F '~' '{print $1}' <<<$OUTPUT) \
|
||||||
&& PEPPER=$(awk -F '~' '{print $2}' <<<$OUTPUT) \
|
&& PEPPER=$(awk -F '~' '{print $2}' <<<$OUTPUT) \
|
||||||
&& PLAYER=$(zenity --entry --width 300 --title "PLAYER" --text "Indiquez votre email" --entry-text="")
|
&& PLAYER=$(zenity --entry --width 300 --title "PLAYER" --text "Indiquez votre email" --entry-text="user@domain.tld") \
|
||||||
|
&& ${MY_PATH}/tools/VISA.new.sh "$SALT" "$PEPPER" "$PLAYER"
|
||||||
[[ ${PLAYER} == "" ]] && espeak "Who are you?" && exit 1
|
|
||||||
|
|
||||||
PSEUDO=$(cat ~/.zen/game/players/${PLAYER}/.pseudo 2>/dev/null)
|
PSEUDO=$(cat ~/.zen/game/players/${PLAYER}/.pseudo 2>/dev/null)
|
||||||
espeak "Hello $PSEUDO"
|
espeak "Hello $PSEUDO"
|
||||||
|
@ -119,6 +118,12 @@ if [[ $1 == "on" ]]; then
|
||||||
REP=$(${MY_PATH}/tools/cron_VRFY.sh ON) && zenity --warning --width 600 --text "$REP"
|
REP=$(${MY_PATH}/tools/cron_VRFY.sh ON) && zenity --warning --width 600 --text "$REP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
###
|
||||||
|
# IS THERE ANY RUNNING IPFS ADD
|
||||||
|
ISADDING=$(ps auxf --sort=+utime | grep -w 'ipfs add' | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)
|
||||||
|
ISPUBLISHING=$(ps auxf --sort=+utime | grep -w 'ipfs name publish' | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)
|
||||||
|
[[ $ISADDING || $ISPUBLISHING ]] \
|
||||||
|
&& espeak "I P F S progressing. Please try again later" && exit 1
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
espeak "restart I P F S daemon"
|
espeak "restart I P F S daemon"
|
||||||
|
|
|
@ -150,7 +150,7 @@ do
|
||||||
|
|
||||||
## AUCUN VISA ASTRONAUTE ENVOYER UN MESSAGE PAR GCHANGE
|
## AUCUN VISA ASTRONAUTE ENVOYER UN MESSAGE PAR GCHANGE
|
||||||
echo "AUCUN TW ACTIF. ENVOYONS LUI UN MESSAGE..."
|
echo "AUCUN TW ACTIF. ENVOYONS LUI UN MESSAGE..."
|
||||||
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://data.gchange.fr" send -d "${liking_me}" -t "BRO !" -m ">>> (◕‿‿◕) <<< https://astroport.copylaradio.com >>> (◕‿‿◕) <<<"
|
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://data.gchange.fr" send -d "${liking_me}" -t "HEY BRO !" -m ">>> (◕‿‿◕) <<< https://ipfs.copylaradio.com/ipns/$ASTRONAUTENS >>> (◕‿‿◕) <<< ACTIVE TON TW ICI : https://astroport.copylaradio.com"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
|
@ -258,9 +258,12 @@ then
|
||||||
echo "----------------- GETTING METADATA ----------------------"
|
echo "----------------- GETTING METADATA ----------------------"
|
||||||
CAT=$(echo "$type" | sed -r 's/\<./\U&/g' | sed 's/ //g') # CapitalGluedWords
|
CAT=$(echo "$type" | sed -r 's/\<./\U&/g' | sed 's/ //g') # CapitalGluedWords
|
||||||
GENRE=$(cat ~/Astroport/${TyPE}/${REFERENCE}/${MOATS}_ajouter_video.txt | cut -d ';' -f 6 | sed 's/|/ /g' | jq -r '@csv' | sed 's/ /_/g' | sed 's/,/ /g' | sed 's/\"//g' )
|
GENRE=$(cat ~/Astroport/${TyPE}/${REFERENCE}/${MOATS}_ajouter_video.txt | cut -d ';' -f 6 | sed 's/|/ /g' | jq -r '@csv' | sed 's/ /_/g' | sed 's/,/ /g' | sed 's/\"//g' )
|
||||||
|
YEAR=$(cat ~/Astroport/${TyPE}/${REFERENCE}/${MOATS}_ajouter_video.txt | cut -d ';' -f 3 )
|
||||||
|
|
||||||
## Adapt TMDB url for season & tag naming
|
## Adapt TMDB url for season & tag naming
|
||||||
[[ $CAT == "Film" ]] && H1="<h1><a target='tmdb' href='https://www.themoviedb.org/movie/"${REFERENCE}"'>"${TITLE}"</a></h1>" \
|
[[ $CAT == "Film" ]] \
|
||||||
|
&& TITLE="$TITLE ($YEAR)"
|
||||||
|
&& H1="<h1><a target='tmdb' href='https://www.themoviedb.org/movie/"${REFERENCE}"'>"${TITLE}"</a></h1>" \
|
||||||
&& FILETAG="$CapitalGluedTitle"
|
&& FILETAG="$CapitalGluedTitle"
|
||||||
|
|
||||||
[[ $CAT == "Serie" ]] && H1="<h1><a target='tmdb' href='https://www.themoviedb.org/tv/"${REFERENCE}"'>"${TITLE}"</a></h1>" \
|
[[ $CAT == "Serie" ]] && H1="<h1><a target='tmdb' href='https://www.themoviedb.org/tv/"${REFERENCE}"'>"${TITLE}"</a></h1>" \
|
||||||
|
@ -302,7 +305,7 @@ then
|
||||||
echo '[
|
echo '[
|
||||||
{
|
{
|
||||||
"text": "'${TEXT}'",
|
"text": "'${TEXT}'",
|
||||||
"title": "'${CapitalGluedTitle}'",
|
"title": "'${TITLE}'",
|
||||||
"season": "'${SAISON}'",
|
"season": "'${SAISON}'",
|
||||||
"created": "'${MOATS}'",
|
"created": "'${MOATS}'",
|
||||||
"resolution": "'${RES}'",
|
"resolution": "'${RES}'",
|
||||||
|
|
Loading…
Reference in New Issue