sudo npm install -g tiddlywikitiddlywiki mynewwiki --init server
tiddlywiki mynewwiki --server 8080 $:/core/save/all text/plain text/html "" "" 192.168.0.117
sudo apt-get install python-setuptools
sudo easy_install pip
sudo pip install -U tiddlyweb tiddlywebplugins.status tiddlywebplugins.corse...
home/pi/TiddlyWeb
vars/www
$ twanager bag mybag < /dev/null
ErrorTraceback (most recent call last): File "/usr/local/bin/twanager", line 19, in <module> handle(args) File "/usr/local/lib/python2.7/dist-packages/tiddlyweb/manage.py", line 66, in handle from tiddlyweb.config import config File "/usr/local/lib/python2.7/dist-packages/tiddlyweb/config.py", line 221, in <module> read_config(config) File "/usr/local/lib/python2.7/dist-packages/tiddlyweb/util.py", line 80, in read_config from tiddlywebconfig import config as custom_config File "/home/pi/TiddlyWeb/tiddlywebconfig.py", line 1 config = { ^IndentationError: unexpected indent
$ echo "/bags/mybag/tiddlers" | twanager recipe myrecipe
I Ran the above command even though I had the error above just to see. I received I think the same error.
Traceback (most recent call last): File "/usr/local/bin/twanager", line 19, in <module> handle(args) File "/usr/local/lib/python2.7/dist-packages/tiddlyweb/manage.py", line 66, in handle from tiddlyweb.config import config File "/usr/local/lib/python2.7/dist-packages/tiddlyweb/config.py", line 221, in <module> read_config(config) File "/usr/local/lib/python2.7/dist-packages/tiddlyweb/util.py", line 80, in read_config from tiddlywebconfig import config as custom_config File "/home/pi/TiddlyWeb/tiddlywebconfig.py", line 1 config = { ^IndentationError: unexpected indent
$ git clone git@github.com:Jermolene/TiddlyWiki5.git
Error
pi@raspberrypi ~ $ git clone git@github.com:Jermolene/TiddlyWiki5.git
Cloning into 'TiddlyWiki5'...
The authenticity of host 'github.com (192.30.252.128)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'github.com,192.30.252.128' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
pi@raspberrypi ~ $ sudo git clone g...@github.com:Jermolene/TiddlyWiki5.git
Cloning into 'TiddlyWiki5'...
The authenticity of host 'github.com (192.30.252.128)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.128' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Modify "editions/tw5tank/tiddlers/system/tiddlyweb-host.tid" to
change '/' to 'http://0.0.0.0:8080/'.
Modify 'plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js' to reflect
the changes in the diff kept here:
https://tank.peermore.com/tanks/cdent/twadaptor.diff
pi@raspberrypi ~/TiddlyWeb/TiddlyWiki5 $ bin/tankbld.sh-bash: bin/tankbld.sh: Permission deniedpi@raspberrypi ~/TiddlyWeb/TiddlyWiki5 $ sudo bin/tankbld.shsudo: bin/tankbld.sh: command not found
$ bin/tankbld.sh
Create at least one bag and one recipe[3] with the following commands.
Make sure you do this in the same directory as tiddlywebconfig.py:
$ twanager bag mybag < /dev/null
$ echo "/bags/mybag/tiddlers" | twanager recipe myrecipe
(Recipe mybag and myrecipe with whatever names you like.)
pi@raspberrypi ~/TiddlyWeb/TiddlyWiki5 $ chmod 755 bin/tankbld.shpi@raspberrypi ~/TiddlyWeb/TiddlyWiki5 $ bin/tankbld.sh-bash: bin/tankbld.sh: /bin/bash^M: bad interpreter: No such file or directory
pi@raspberrypi ~/TiddlyWeb/TiddlyWiki5/bin $ twanager server &[1] 3146pi@raspberrypi ~/TiddlyWeb/TiddlyWiki5/bin $ starting wsgi server at http://0.0.0.0:8080 bin/tankbld.sh-bash: bin/tankbld.sh: No such file or directorypi@raspberrypi ~/TiddlyWeb/TiddlyWiki5/bin $ cd ../pi@raspberrypi ~/TiddlyWeb/TiddlyWiki5 $ bin/tankbld.sh-bash: bin/tankbld.sh: /bin/bash^M: bad interpreter: No such file or directorypi@raspberrypi ~/TiddlyWeb/TiddlyWiki5 $
Now create some TiddlyWiki5 HTML files. Clone a copy of the TiddlyWiki5 repo:
$ git clone g...@github.com:Jermolene/TiddlyWiki5.git $ cd TiddlyWiki5
Modify "editions/tw5tank/tiddlers/system/tiddlyweb-host.tid" to change '/' to 'http://0.0.0.0:8080/'.
Modify 'plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js' to reflect the changes in the diff kept here: https://tank.peermore.com/tanks/cdent/twadaptor.diff
That is, change this.recipe to have a value of 'myrecipe' (or whatever name you used for your recipe) and export the adaptor class, even when loading from 'file:'.
And then build your HTML file by running the command:
$ bin/tankbld.sh
pi@raspberrypi ~/tiddlyweb/TiddlyWiki5 $ bin/tankbld.shbin/tankbld.sh: line 9: node: command not found
pi@raspberrypi ~/tiddlyweb/TiddlyWiki5 $ bin/tankbld.shError executing boot module $:/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js:SyntaxError: Unexpected token ) at $tw.utils.evalSandboxed (/home/pi/tiddlyweb/TiddlyWiki5/boot/boot.js:440:5) at Object.$tw.modules.execute (/home/pi/tiddlyweb/TiddlyWiki5/boot/boot.js:689:15) at /home/pi/tiddlyweb/TiddlyWiki5/boot/boot.js:712:30 at $tw.utils.each (/home/pi/tiddlyweb/TiddlyWiki5/boot/boot.js:77:13) at Object.$tw.modules.forEachModuleOfType (/home/pi/tiddlyweb/TiddlyWiki5/boot/boot.js:711:12) at Object.exports.startup ($:/core/modules/startup.js:67:14) at $tw.boot.executeNextStartupTask (/home/pi/tiddlyweb/TiddlyWiki5/boot/boot.js:1844:10) at $tw.boot.executeNextStartupTask (/home/pi/tiddlyweb/TiddlyWiki5/boot/boot.js:1848:21) at $tw.boot.executeNextStartupTask (/home/pi/tiddlyweb/TiddlyWiki5/boot/boot.js:1848:21) at $tw.boot.startup (/home/pi/tiddlyweb/TiddlyWiki5/boot/boot.js:1810:11)
+//if($tw.browser && document.location.protocol.substr(0,4) === "http" ) {
This will create a file 'tmp/app.html'. Open that file in your browser of choice. Create a new tiddler, it should automatically save to TiddlyWeb. You can confirm that it did in a variety of ways:
Yep I messed the code up missed the //
+//if($tw.browser && document.location.protocol.substr(0,4) === "http" ) {
Once I added those in it worked correctly.What is this full url that you write hereThis will create a file 'tmp/app.html'. Open that file in your browser of choice. Create a new tiddler, it should automatically save to TiddlyWeb. You can confirm that it did in a variety of ways:Here is something I tried that didn't work http://0.0.0.0:8080/tmp/app.html
Boot log:
Startup task: load-modules
Startup task: info after: load-modules before: startup
Startup task: startup after: load-modules
Startup task: story after: startup
Startup task: commands platforms: node after: story
Executing command: output tmp
Executing command: rendertiddler $:/core/save/all app.html text/plain
syncer-browser - 18:38:16 22 1 2015XMLHttpRequest error code: 0