[days:created[-120]tag[copylaradio]!tag[humour]]
This commit is contained in:
parent
dd4c2cd13f
commit
57fea71ef5
|
@ -7,7 +7,7 @@ MY_PATH="`dirname \"$0\"`" # relative
|
||||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||||
ME="${0##*/}"
|
ME="${0##*/}"
|
||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
|
echo "20H12 (♥‿‿♥) $(hostname)"
|
||||||
|
|
||||||
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
|
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
|
||||||
[[ ! $myIP ]] && myIP="127.0.1.1"
|
[[ ! $myIP ]] && myIP="127.0.1.1"
|
||||||
|
|
|
@ -151,7 +151,7 @@ while read YID;
|
||||||
--output ~/.zen/tmp/$WISHKEY --render "$:/core/save/all" "newindex.html" "text/plain"
|
--output ~/.zen/tmp/$WISHKEY --render "$:/core/save/all" "newindex.html" "text/plain"
|
||||||
|
|
||||||
if [[ -s ~/.zen/tmp/$WISHKEY/newindex.html ]]; then
|
if [[ -s ~/.zen/tmp/$WISHKEY/newindex.html ]]; then
|
||||||
echo "Updating $INDEX"
|
echo "$$$ Mise à jour $INDEX"
|
||||||
cp ~/.zen/tmp/$WISHKEY/newindex.html $INDEX
|
cp ~/.zen/tmp/$WISHKEY/newindex.html $INDEX
|
||||||
else
|
else
|
||||||
echo "Problem with tiddlywiki command. Missing ~/.zen/tmp/$WISHKEY/newindex.html"
|
echo "Problem with tiddlywiki command. Missing ~/.zen/tmp/$WISHKEY/newindex.html"
|
||||||
|
|
|
@ -209,7 +209,7 @@ convert -gravity northwest -pointsize 50 -fill black -draw "text 30,300 \"$PEPPE
|
||||||
|
|
||||||
echo "PLAYER TW Update..."
|
echo "PLAYER TW Update..."
|
||||||
if [[ -s ~/.zen/tmp/newindex.html ]]; then
|
if [[ -s ~/.zen/tmp/newindex.html ]]; then
|
||||||
echo "Mise à jour $INDEX"
|
echo "$$$ Mise à jour $INDEX"
|
||||||
cp -f ~/.zen/tmp/newindex.html $INDEX
|
cp -f ~/.zen/tmp/newindex.html $INDEX
|
||||||
else
|
else
|
||||||
echo "ERROR INTO ~/.zen/game/world/$WISHKEY/${PEPPER}.voeu.json"
|
echo "ERROR INTO ~/.zen/game/world/$WISHKEY/${PEPPER}.voeu.json"
|
||||||
|
|
|
@ -93,11 +93,11 @@ do
|
||||||
rm -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/${PLAYER}.tiddlers.json
|
rm -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/${PLAYER}.tiddlers.json
|
||||||
echo "TRY EXPORT [tag[G1${WISHNAME}]] FROM $FRIENDTW"
|
echo "TRY EXPORT [tag[G1${WISHNAME}]] FROM $FRIENDTW"
|
||||||
tiddlywiki --load $FRIENDTW \
|
tiddlywiki --load $FRIENDTW \
|
||||||
--output ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME} --render '.' ${PLAYER}'.tiddlers.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[G1'${WISHNAME}']!tag[G1Voeu]]'
|
--output ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME} --render '.' ${PLAYER}'.tiddlers.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[days:created[-1]tag[G1'${WISHNAME}']!tag[G1Voeu]]'
|
||||||
[[ ! -s ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/${PLAYER}.tiddlers.json ]] && echo "NO ${WISHNAME} - CONTINUE -" && continue
|
[[ ! -s ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/${PLAYER}.tiddlers.json ]] && echo "NO ${WISHNAME} - CONTINUE -" && continue
|
||||||
[[ $(cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/${PLAYER}.tiddlers.json) == "[]" ]] && echo "EMPTY ${WISHNAME} - CONTINUE -" && continue
|
[[ $(cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/${PLAYER}.tiddlers.json) == "[]" ]] && echo "EMPTY ${WISHNAME} - CONTINUE -" && continue
|
||||||
|
|
||||||
echo "## WISHES FOUND ;) MIAM "
|
echo "## WISHES FOUND ;) MIAM >>> (◕‿‿◕) <<<"
|
||||||
######################################
|
######################################
|
||||||
## TODO ADD EXTRA TAG ?
|
## TODO ADD EXTRA TAG ?
|
||||||
# Remove G1${WISHNAME} with WISHNAME Initial TIDDLER
|
# Remove G1${WISHNAME} with WISHNAME Initial TIDDLER
|
||||||
|
@ -110,7 +110,7 @@ do
|
||||||
--output ~/.zen/tmp --render "$:/core/save/all" "${ASTRONAUTENS}.newindex.html" "text/plain"
|
--output ~/.zen/tmp --render "$:/core/save/all" "${ASTRONAUTENS}.newindex.html" "text/plain"
|
||||||
|
|
||||||
if [[ -s ~/.zen/tmp/${ASTRONAUTENS}.newindex.html ]]; then
|
if [[ -s ~/.zen/tmp/${ASTRONAUTENS}.newindex.html ]]; then
|
||||||
echo "Updating $INDEX"
|
echo "$$$ Mise à jour $INDEX"
|
||||||
cp ~/.zen/tmp/${ASTRONAUTENS}.newindex.html $INDEX
|
cp ~/.zen/tmp/${ASTRONAUTENS}.newindex.html $INDEX
|
||||||
else
|
else
|
||||||
echo "Problem with tiddlywiki command. Missing ~/.zen/tmp/${ASTRONAUTENS}.newindex.html"
|
echo "Problem with tiddlywiki command. Missing ~/.zen/tmp/${ASTRONAUTENS}.newindex.html"
|
||||||
|
|
|
@ -8,7 +8,7 @@ Content-Type: text/html; charset=UTF-8
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="refresh" content="20; url='http://127.0.0.1:12345'" />
|
<meta http-equiv="refresh" content="30; url='http://127.0.0.1:12345'" />
|
||||||
<style>
|
<style>
|
||||||
#reduce42 {
|
#reduce42 {
|
||||||
width:42%;
|
width:42%;
|
||||||
|
@ -24,6 +24,19 @@ Content-Type: text/html; charset=UTF-8
|
||||||
input[type=submit] {
|
input[type=submit] {
|
||||||
width: 12em; height: 4em;
|
width: 12em; height: 4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#countdown {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
color: #0e2c4c;
|
||||||
|
font-size: 20px;
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
background-color: #e7d9fc;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<title>[Astroport](_HOSTNAME_) - IPFS BIOS - Interplanetray File System + Basic Input Output System + Scuttlebut Confidence Layer Ŋ1 </title>
|
<title>[Astroport](_HOSTNAME_) - IPFS BIOS - Interplanetray File System + Basic Input Output System + Scuttlebut Confidence Layer Ŋ1 </title>
|
||||||
|
@ -33,18 +46,9 @@ Content-Type: text/html; charset=UTF-8
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
<h2>Astronaute<br> - TW Astroport Ŋ1 -</h2>
|
<h2>Astronaute<br> - TW Astroport Ŋ1 -</h2>
|
||||||
|
|
||||||
<div id="yellow">
|
<div id="yellow">
|
||||||
<h3><a href="http://127.0.0.1:12345"> >>> (◕‿‿◕) <<< </a></h3>
|
<h3><a href="http://127.0.0.1:12345"> >>> (◕‿‿◕) <<< </a></h3>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
|
||||||
const el = document.getElementById('yellow');
|
|
||||||
|
|
||||||
setTimeout(() => {
|
|
||||||
el.style.visibility = 'visible';
|
|
||||||
}, 3000); // 👈️ delay in milliseconds
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a href="http://127.0.0.1:8080/ipns/_IPFSNODEID_" target="json" alt="Station Stomac"><img width=320 height=240 src='http://127.0.0.1:8080/ipfs/QmYjPCvbwTcvEpjvrcryCAAE1Ui73rsbJGbtZXpniddKDj' id='API'/></a>
|
<a href="http://127.0.0.1:8080/ipns/_IPFSNODEID_" target="json" alt="Station Stomac"><img width=320 height=240 src='http://127.0.0.1:8080/ipfs/QmYjPCvbwTcvEpjvrcryCAAE1Ui73rsbJGbtZXpniddKDj' id='API'/></a>
|
||||||
|
@ -54,8 +58,10 @@ setTimeout(() => {
|
||||||
<h2>
|
<h2>
|
||||||
Phrase Une : <input name=salt value=''></br>
|
Phrase Une : <input name=salt value=''></br>
|
||||||
Phrase Deux : <input name=pepper value=''></br>
|
Phrase Deux : <input name=pepper value=''></br>
|
||||||
( TW officiel <input type="checkbox" id="official" name="official"> - Visiteur <input type="checkbox" id="g1pub" name="g1pub" checked> )</br></br>
|
( TW officiel <input type="checkbox" id="official" name="official"> - Visiteur <input type="checkbox" id="g1pub" name="g1pub" checked> )</br>
|
||||||
|
<div id="countdown"></div></br>
|
||||||
<input type='submit' value='[(♥‿‿♥)]'>
|
<input type='submit' value='[(♥‿‿♥)]'>
|
||||||
|
|
||||||
</h2>
|
</h2>
|
||||||
</form>
|
</form>
|
||||||
<br>
|
<br>
|
||||||
|
@ -64,5 +70,30 @@ setTimeout(() => {
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const el = document.getElementById('yellow');
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
el.style.visibility = 'visible';
|
||||||
|
}, 3000); // 👈️ delay in milliseconds
|
||||||
|
|
||||||
|
var timeLeft = 30;
|
||||||
|
var elem = document.getElementById('countdown');
|
||||||
|
var timerId = setInterval(countdown, 1000);
|
||||||
|
|
||||||
|
function countdown() {
|
||||||
|
if (timeLeft == -1) {
|
||||||
|
clearTimeout(timerId);
|
||||||
|
doSomething();
|
||||||
|
} else {
|
||||||
|
elem.innerHTML = timeLeft + ' s';
|
||||||
|
timeLeft--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -47,8 +47,8 @@ html {
|
||||||
<b>Associez vos phrases clefs et votre adresse email</b></br></br>
|
<b>Associez vos phrases clefs et votre adresse email</b></br></br>
|
||||||
Phrase Une ("identifiant") <input name=salt value=''></br>
|
Phrase Une ("identifiant") <input name=salt value=''></br>
|
||||||
Phrase Deux ("mot de passe") <input name=pepper value=''></br></br>
|
Phrase Deux ("mot de passe") <input name=pepper value=''></br></br>
|
||||||
Inscription au bitswap Ŋ1 de 20h12 : <input type="checkbox" id="g1pub" name="g1pub" checked></br></br>
|
Inscription au bitswap Ŋ1 de 20h12 : <input type="checkbox" id="g1pub" name="g1pub" checked></br>
|
||||||
Email : <input name=email value=''></br></br>
|
- Email -</br><input name=email value=''></br></br>
|
||||||
<input type='submit' value='(☼‿‿☼)'>
|
<input type='submit' value='(☼‿‿☼)'>
|
||||||
</form>
|
</form>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
|
@ -26,8 +26,7 @@ PSEUDO=$(cat ~/.zen/game/players/${PLAYER}/.pseudo 2>/dev/null)
|
||||||
|
|
||||||
## REFRESH ASTRONAUTE TW
|
## REFRESH ASTRONAUTE TW
|
||||||
ASTRONAUTENS=$(ipfs key list -l | grep ${PLAYER} | cut -d ' ' -f1)
|
ASTRONAUTENS=$(ipfs key list -l | grep ${PLAYER} | cut -d ' ' -f1)
|
||||||
[[ ! $ASTRONAUTENS ]] && echo "WARNING No ${PLAYER} in keystore --" && ASTRONAUTENS=$ASTRONS
|
[[ ! $ASTRONAUTENS ]] && echo "WARNING No ${PLAYER} in keystore -- EXIT" && exit 1
|
||||||
[[ ! $ASTRONAUTENS ]] && echo "Missing ${PLAYER} IPNS KEY - CONTINUE --" && exit 1
|
|
||||||
|
|
||||||
mkdir -p ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/
|
mkdir -p ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue