export PLAYERFEEDS from Gchange stars
This commit is contained in:
parent
58a07acaa5
commit
e463a4d28d
|
@ -119,11 +119,14 @@ isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(
|
|||
|
||||
###########################
|
||||
# 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/${MOATS}/5001.json
|
||||
echo '[{"title":"$:/ipfs/saver/gateway/http/localhost","tags":"$:/ipfs/core $:/ipfs/saver/gateway","text":"https://ipfs.copylaradio.com"}]' > ~/.zen/tmp/${MOATS}/8080.json
|
||||
[[ $isLAN ]] && APIGW="http://ipfs.localhost:5001" && IPFSGW="https://ipfs.copylaradio.com" \
|
||||
|| ( APIGW="https://$(hostname)/api" && IPFSGW="https://ipfs.copylaradio.com" )
|
||||
echo '[{"title":"$:/ipfs/saver/api/http/localhost/5001","tags":"$:/ipfs/core $:/ipfs/saver/api","text":"'$APIGW'"}]' > ~/.zen/tmp/${MOATS}/5001.json
|
||||
echo '[{"title":"$:/ipfs/saver/gateway/http/localhost","tags":"$:/ipfs/core $:/ipfs/saver/gateway","text":"'$IPFSGW'"}]' > ~/.zen/tmp/${MOATS}/8080.json
|
||||
|
||||
## UPDATE LightBeam Plugin Tiddler
|
||||
echo '[{"title":"$:/plugins/astroport/lightbeams/state/subscriptions","tags":"","text":""}]' > ~/.zen/tmp/${MOATS}/friends.json
|
||||
## export PLAYERFEEDS from Gchange stars
|
||||
echo '[{"title":"$:/plugins/astroport/lightbeams/state/subscriptions","text":"'${PLAYERFEEDS}'","tags":""}]' > ~/.zen/tmp/${MOATS}/friends.json
|
||||
|
||||
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/index.html \
|
||||
--import "$HOME/.zen/tmp/${MOATS}/5001.json" "application/json" \
|
||||
|
|
|
@ -177,7 +177,7 @@ do
|
|||
cp -f ~/.zen/game/players/${PLAYER}/ipfs/${FPLAYER}.rss.json ~/.zen/tmp/${IPFSNODEID}/rss/${PLAYER}/${FPLAYER}.rss.json
|
||||
|
||||
## TODO INSERT INTO $:/plugins/astroport/lightbeams/state/subscriptions
|
||||
|
||||
export PLAYERFEEDS="$ASTRONAUTENS\n$PLAYERFEEDS"
|
||||
|
||||
echo "APP=RSS : PLAYER FPLAYER RSS PUBLICATION READY"
|
||||
echo "~/.zen/tmp/${IPFSNODEID}/rss/${PLAYER}/${FPLAYER}.rss.json"
|
||||
|
|
Loading…
Reference in New Issue