Add Personnal PhoneBooth SideBar tiddler

This commit is contained in:
fred 2024-03-13 17:51:53 +01:00
parent 24a2af152e
commit 4a952f84f4
2 changed files with 17 additions and 0 deletions

View File

@ -236,6 +236,13 @@ for PLAYER in ${PLAYERONE[@]}; do
#~ cat ~/.zen/tmp/${MOATS}/GPS.json
echo "SECTOR $SECTOR SECTORTW=/ipns/${TODATESECTORNS}/TW"
# MAKE "ALLO" TIDDLER
cat ${MY_PATH}/../templates/data/ALLO.json \
| sed -e "s~_IPFSNINJA_~${VDONINJA}~g" \
-e "s~_MOATS_~${MOATS}~g" \
-e "s~_PHONEBOOTH_~${PLAYER}~g" \
> ~/.zen/tmp/${MOATS}/ALLO.json
ipfs key rm "temp" >/dev/null 2>&1
## STORE IN PLAYER CACHE
@ -421,6 +428,7 @@ for PLAYER in ${PLAYERONE[@]}; do
## WRITE TIDDLERS IN TW SECTORTW_NEWS.json
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
--import ~/.zen/tmp/${MOATS}/GPS.json "application/json" \
--import ~/.zen/tmp/${MOATS}/ALLO.json "application/json" \
--import ~/.zen/tmp/${MOATS}/CESIUM.json "application/json" \
--import ~/.zen/tmp/${MOATS}/SECTORTW_NEWS.json "application/json" \
--import ~/.zen/tmp/${MOATS}/lightbeam-name.json "application/json" \

9
templates/data/ALLO.json Normal file
View File

@ -0,0 +1,9 @@
[
{
"created": "_MOATS_",
"title": "ALLO",
"text": "<iframe src='_IPFSNINJA_/?room=_PHONEBOOTH_&record' height='480' width='100%'></iframe>",
"tags": "_PLAYER_ $:/tags/SideBar",
"type": "text/vnd.tiddlywiki"
}
]