From 1763e7a78e3ea84d6febd249e967adda44c58bed Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 14 May 2020 02:59:13 +0200 Subject: [PATCH] myJune --- www/LOVELand/index.html | 4 ++-- zen/ssb_INIT.sh | 15 +++++++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/www/LOVELand/index.html b/www/LOVELand/index.html index 48df941..95b8c4f 100644 --- a/www/LOVELand/index.html +++ b/www/LOVELand/index.html @@ -69,13 +69,13 @@
-

Obtenir une invitation Astroport



+

Envoyer un invitation



- +
diff --git a/zen/ssb_INIT.sh b/zen/ssb_INIT.sh index a6eac68..09bd390 100755 --- a/zen/ssb_INIT.sh +++ b/zen/ssb_INIT.sh @@ -120,13 +120,13 @@ $id : $type : $size bits nodename=$(cat /etc/hostname) extension=$(echo $nodename | cut -d '.' -f 2) if [[ $extension == $nodename ]]; then - nodename=$nodename.local + nodename=$nodename.home fi # OLD ssb-server publish # sbot publish --type about --about $ssbpub --description "[Astroport Node](https://astroport.com) [$ipfsnodeid](http://localhost:8080/ipns/$ipfsnodeid) - Wallet $g1pub - $diskperf" --name "$title" --image "$id" # NEW sbotc publish to oasis -sbotc publish "{\"type\":\"about\",\"about\":\"$ssbpub\",\"description\":\"![QRCode]($qrid)\\n[Astroport #Swarm0 Station](https://astroport.com)\\n - [GChange Market](http://$nodename/gchange/#/app/wot/$g1pub) \\n - [Cesium Wallet](https://$nodename/cesium/#/app/wot/$g1pub/) \\n IPFS NODE ID : [$ipfsnodeid](http://localhost:8080/ipns/$ipfsnodeid) \\n DISK: $sizeAvail = $diskperf\",\"name\":\"$title\",\"image\":\"$id\"}" +sbotc publish "{\"type\":\"about\",\"about\":\"$ssbpub\",\"description\":\"![QRCode]($qrid)\\n[Astroport #Swarm0 Station](https://astroport.com)\\n - [GChange Market](http://$nodename/gchange/#/app/wot/$g1pub) \\n - [Cesium - $myJune -](https://$nodename/cesium/#/app/wot/$g1pub/) \\n IPFS NODE ID : [$ipfsnodeid](http://localhost:8080/ipns/$ipfsnodeid) \\n DISK: $sizeAvail = $diskperf\",\"name\":\"$title\",\"image\":\"$id\"}" ######################################################################## # DUNITER G1 Wallet balance @@ -134,13 +134,20 @@ export LC_ALL=C.UTF-8 #attipix export LANG=C.UTF-8 #attipix DUNITERNODE=$($MY_PATH/tools/duniter_getnode.sh) [[ $DUNITERNODE ]] && g1balance=$(silkaj -p $DUNITERNODE balance $g1pub 2>&1) || g1balance=$(silkaj balance $g1pub 2>&1) +silkajQuantitativeAmountPattern='Total\sQuantitative\s+=\s+(.*)\s+Ğ1' +if [[ $g1balance =~ $silkajQuantitativeAmountPattern ]] +then + myJune="${BASH_REMATCH[1]}" +else + myJune="0 June" +fi # SSB PUBLISH G1 wallet silkaj balance json_escape () { printf '%s' "$1" | python -c 'import json,sys; print(json.dumps(sys.stdin.read()))' } INLINE=$(json_escape "$g1balance") -# TODO FIND WHY THIS ***** COMA , IS EVERYWHERE +# TODO FIND WHY THIS ***** COMA , IS EVERYWHERE NOT PUBLSHING silkaj # [[ $INLINE ]] && sbotc publish '{"type":"post","text":'$INLINE'}' #INLINE="${g1balance@Q}" @@ -159,7 +166,7 @@ $g1balance " # IF no AVATAR, publish message with QRCode if [[ ! $(file "/tmp/_g1.avatar.png" | grep 'PNG') ]]; then -# Published on about document now + sleep 1 # sbotc publish '{"type":"post","text":"![QRCode]('"$qrid"')\n Scan QRCode with [Cesium](https://cesium.app).\n Thank you\n ONE :heart:","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":'"$size"',"type":"'"$type"'"}]}' else # Publish only if new avatar