diff --git a/.gitignore b/.gitignore index b91616d2..5352a05d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .env *.pyc __pycache__ +tiddlywiki.html diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh index 0bd0c9aa..3d64a12e 100755 --- a/RUNTIME/PLAYER.refresh.sh +++ b/RUNTIME/PLAYER.refresh.sh @@ -132,8 +132,8 @@ for PLAYER in ${PLAYERONE[@]}; do TW LOADING TIMEOUT" > ~/.zen/tmp/result echo "
------------------------------------------------" >> ~/.zen/tmp/result echo "
" >> ~/.zen/tmp/result - echo "
TW[-1]: /ipfs/${LASTCHAIN}" >> ~/.zen/tmp/result - echo "
TW[0]: /ipfs/${NOWCHAIN}" >> ~/.zen/tmp/result + echo "
[yesterday]: /ipfs/${LASTCHAIN}" >> ~/.zen/tmp/result + echo "
[today]: /ipfs/${NOWCHAIN}" >> ~/.zen/tmp/result echo "
" >> ~/.zen/tmp/result echo "
%%% WARNING %%% $try TRY LEFT %%%" >> ~/.zen/tmp/result echo "
------------------------------------------------" >> ~/.zen/tmp/result diff --git a/RUNTIME/TW/ForemostPoets-Moonraker.json b/RUNTIME/TW/ForemostPoets-Moonraker.json new file mode 100644 index 00000000..748a9ad2 --- /dev/null +++ b/RUNTIME/TW/ForemostPoets-Moonraker.json @@ -0,0 +1,7 @@ +[ + { + "title": "/TEST/ForemostPoets-Moonraker.mp3", + "text": "", + "tags": "mp3" + } +] diff --git a/RUNTIME/TW/delete_tiddler.sh b/RUNTIME/TW/delete_tiddler.sh index 17bec205..a7cf3ceb 100755 --- a/RUNTIME/TW/delete_tiddler.sh +++ b/RUNTIME/TW/delete_tiddler.sh @@ -22,9 +22,11 @@ if [[ -s ~/.zen/tmp/${MOATS}.html ]]; then echo "Tiddler deleted successfully." cp ~/.zen/tmp/${MOATS}.html ${TW} rm ~/.zen/tmp/${MOATS}.html - echo "Updated TiddlyWiki: ${TW}" + echo "Updated TiddlyWiki: + ${TW}" else - echo "ERROR: Cannot delete $TITLE from $TW" + echo "ERROR: Cannot delete $TITLE from + $TW" exit 1 fi diff --git a/RUNTIME/TW/import_tiddler.sh b/RUNTIME/TW/import_tiddler.sh index 6f6ae5ce..7ceca8b1 100755 --- a/RUNTIME/TW/import_tiddler.sh +++ b/RUNTIME/TW/import_tiddler.sh @@ -28,10 +28,9 @@ if [[ -s /tmp/${MOATS}.html ]]; then cp /tmp/${MOATS}.html ${TW} rm /tmp/${MOATS}.html rm "${TIDDLER}.tmp" - echo "Updated TiddlyWiki: ${TW}" - echo "Temporary file: /tmp/${MOATS}.html" + echo "Updated TiddlyWiki: + ${TW}" else - echo "ERROR: Unable to import ${TIDDLER} into ${TW}" exit 1 fi diff --git a/RUNTIME/TW/readme.md b/RUNTIME/TW/readme.md index e73d8cbb..1628f0cf 100644 --- a/RUNTIME/TW/readme.md +++ b/RUNTIME/TW/readme.md @@ -1,9 +1,19 @@ -provide elemental TW interactions +TiddlyWiki acts as a distributed object database + +this scripts provides elemental TW interactions + +* Import a Tiddler (json) in a TiddliWiki + +```./import_tiddler.sh tiddlywiki.html ForemostPoets-Moonraker.json``` -* import_tiddler.sh TW TIDDLER https://talk.tiddlywiki.org/t/how-to-add-extract-modify-tiddlers-from-command-line-to-do-ipfs-media-transfer/4345?u=papiche -* delete_tiddler.sh TW QUERY +* Delete a Tiddler (title) from a TiddliWiki + +```./delete_tiddler.sh tiddlywiki.html "/TEST/ForemostPoets-Moonraker.mp3"``` + https://talk.tiddlywiki.org/t/how-to-filter-and-delete-multiple-tiddlers/4950 -add more complex queries .... + +you can add more complex queries .... + diff --git a/RUNTIME/TW/twsector.html b/RUNTIME/TW/twsector.html new file mode 100644 index 00000000..9f361d6f --- /dev/null +++ b/RUNTIME/TW/twsector.html @@ -0,0 +1,3149 @@ + + + + + + + + + + + + + + + + + + + + +UPlanet Sector _SECTOR_ TW — Distributed Information System + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + +