This commit is contained in:
qo-op 2021-07-06 19:30:48 +02:00
parent b41efb8551
commit 7074e8ae1c
2 changed files with 13 additions and 2 deletions

View File

@ -28,7 +28,7 @@ G1PUB=$(cat ~/.zen/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
########################################################################
echo "## FRIENDS IPFS PINGing"
for g1pub in $(ls -t ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/); do [[ $g1pub ]] && ipfs ping --timeout=7s -n 5 /ipfs/$(~/.zen/astrXbian/zen/tools/g1_to_ipfs.py $g1pub 2>/dev/null) 2>/dev/null; done
for g1pub in $(ls -t ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/); do [[ $g1pub ]] && ipfs ping --timeout=7s -n 3 /ipfs/$(~/.zen/astrXbian/zen/tools/g1_to_ipfs.py $g1pub 2>/dev/null) 2>/dev/null; done
########################################################################
# ACTIVATE TO CONTROL SWARM STATION SAME CODE VERSION
@ -97,7 +97,7 @@ do
<body>
<header>
<h5>
<a href=\"$LOCALTUBELINK\"><span>Lancez la lecture depuis Astroport/KODI de $TITLE </span></a>!
<a href=\"$LOCALTUBELINK\"><span>Accelérez le réseau! Lancez la lecture IPFS depuis une Station Astroport</span></a>!
</h5>
<h6>
<a href='https://astroport.com'><span>ASTROPORT/KODI</span> × <span> DEMO</span></a>

View File

@ -0,0 +1,11 @@
#!/bin/bash
################################################################################
echo "## IPFS PINGing MY FRIENDS"
for g1pub in $(ls -t ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/); do
if [[ $g1pub ]]; then
friendipfsnodeid=$(~/.zen/astrXbian/zen/tools/g1_to_ipfs.py $g1pub 2>/dev/null)
ipfs ping --timeout=7s -n 3 /ipfs/$friendipfsnodeid 2>/dev/null;
[[ $? == 0 ]] && ipfs cat /ipns/$friendipfsnodeid/.$friendipfsnodeid/_xbian.zuid && ipfs cat /ipns/$friendipfsnodeid/.$friendipfsnodeid/G1SSB/_g1.gchange_title
echo "###########################################"
fi
done