[days:created[-120]tag[copylaradio]!tag[humour]]

This commit is contained in:
fred 2022-11-07 01:07:33 +01:00
parent dd4c2cd13f
commit 57fea71ef5
7 changed files with 51 additions and 21 deletions

View File

@ -7,7 +7,7 @@ MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
ME="${0##*/}"
start=`date +%s`
echo "20H12 (♥‿‿♥) $(hostname)"
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
[[ ! $myIP ]] && myIP="127.0.1.1"

View File

@ -151,7 +151,7 @@ while read YID;
--output ~/.zen/tmp/$WISHKEY --render "$:/core/save/all" "newindex.html" "text/plain"
if [[ -s ~/.zen/tmp/$WISHKEY/newindex.html ]]; then
echo "Updating $INDEX"
echo "$$$ Mise à jour $INDEX"
cp ~/.zen/tmp/$WISHKEY/newindex.html $INDEX
else
echo "Problem with tiddlywiki command. Missing ~/.zen/tmp/$WISHKEY/newindex.html"

View File

@ -209,7 +209,7 @@ convert -gravity northwest -pointsize 50 -fill black -draw "text 30,300 \"$PEPPE
echo "PLAYER TW Update..."
if [[ -s ~/.zen/tmp/newindex.html ]]; then
echo "Mise à jour $INDEX"
echo "$$$ Mise à jour $INDEX"
cp -f ~/.zen/tmp/newindex.html $INDEX
else
echo "ERROR INTO ~/.zen/game/world/$WISHKEY/${PEPPER}.voeu.json"

View File

@ -93,11 +93,11 @@ do
rm -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/${PLAYER}.tiddlers.json
echo "TRY EXPORT [tag[G1${WISHNAME}]] FROM $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
[[ $(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 ?
# Remove G1${WISHNAME} with WISHNAME Initial TIDDLER
@ -110,7 +110,7 @@ do
--output ~/.zen/tmp --render "$:/core/save/all" "${ASTRONAUTENS}.newindex.html" "text/plain"
if [[ -s ~/.zen/tmp/${ASTRONAUTENS}.newindex.html ]]; then
echo "Updating $INDEX"
echo "$$$ Mise à jour $INDEX"
cp ~/.zen/tmp/${ASTRONAUTENS}.newindex.html $INDEX
else
echo "Problem with tiddlywiki command. Missing ~/.zen/tmp/${ASTRONAUTENS}.newindex.html"

View File

@ -8,7 +8,7 @@ Content-Type: text/html; charset=UTF-8
<!doctype html>
<html>
<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>
#reduce42 {
width:42%;
@ -24,6 +24,19 @@ Content-Type: text/html; charset=UTF-8
input[type=submit] {
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>
<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>
<h2>Astronaute<br> - TW Astroport Ŋ1 -</h2>
<div id="yellow">
<h3><a href="http://127.0.0.1:12345"> >>> (◕‿‿◕) <<< </a></h3>
</div>
<script>
const el = document.getElementById('yellow');
setTimeout(() => {
el.style.visibility = 'visible';
}, 3000); // 👈️ delay in milliseconds
</script>
<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>
@ -54,8 +58,10 @@ setTimeout(() => {
<h2>
Phrase Une : <input name=salt 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='[(♥‿‿♥)]'>
</h2>
</form>
<br>
@ -64,5 +70,30 @@ setTimeout(() => {
</p>
</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>
</html>

View File

@ -47,8 +47,8 @@ html {
<b>Associez vos phrases clefs et votre adresse email</b></br></br>
Phrase Une ("identifiant") <input name=salt value=''></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>
Email : <input name=email value=''></br></br>
Inscription au bitswap Ŋ1 de 20h12 : <input type="checkbox" id="g1pub" name="g1pub" checked></br>
- Email -</br><input name=email value=''></br></br>
<input type='submit' value='(☼‿‿☼)'>
</form>
</h2>

View File

@ -26,8 +26,7 @@ PSEUDO=$(cat ~/.zen/game/players/${PLAYER}/.pseudo 2>/dev/null)
## REFRESH ASTRONAUTE TW
ASTRONAUTENS=$(ipfs key list -l | grep ${PLAYER} | cut -d ' ' -f1)
[[ ! $ASTRONAUTENS ]] && echo "WARNING No ${PLAYER} in keystore --" && ASTRONAUTENS=$ASTRONS
[[ ! $ASTRONAUTENS ]] && echo "Missing ${PLAYER} IPNS KEY - CONTINUE --" && exit 1
[[ ! $ASTRONAUTENS ]] && echo "WARNING No ${PLAYER} in keystore -- EXIT" && exit 1
mkdir -p ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/