Discussion:
[tw5] Adding a new tiddler file to my tiddler folder while using Node
(too old to reply)
SteveH
2018-12-07 04:05:51 UTC
Permalink
Hi Everyone,


I've just upgraded TW to the latest version (using Firefox on Win 10).

The TW5 documentation says "The best, most general way to interact with a
running wiki is via the HTTP or JavaScript API, rather than manipulating
the file store directly".

https://tiddlywiki.com/#:%5B%5BTiddlyWiki%20on%20Node.js%5D%5D


If I add the following Test.tid to my Tiddlers directory

title: Test
modifier: someone

What node command; HTTP or Javascript API action do I need to do to update
the wiki (and then refresh the browser to reflect a new tiddler having been
added)?



Regards

Steve H


https://tiddlywiki.com/#:%5B%5BTiddlyWiki%20on%20Node.js%5D%5D
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/75f48277-5ed4-451b-8966-156beb6685f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
SteveH
2018-12-07 04:17:03 UTC
Permalink
Sorry - I've just found this to try:-

Anonymous Access


The web server is started with the ListenCommand
<https://tiddlywiki.com/#ListenCommand> (which supersedes the older
ServerCommand <https://tiddlywiki.com/#ServerCommand>). All the
NamedCommandParameters <https://tiddlywiki.com/#NamedCommandParameters> are
optional, so the simplest form is:

tiddlywiki mywikifolder --listen


Visit http://127.0.0.1:8080/ to access the wiki. Access is anonymous, so
anyone can read or write to the wiki.

This will typically be available only to users on the local machine. For
information on how to open the instance to the local network see the Web
Server host <https://tiddlywiki.com/#WebServer%20Parameter%3A%20host>
parameter entry.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/39b5bc43-0092-48a3-9cab-aac873e57c29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeremy Ruston
2018-12-07 08:17:50 UTC
Permalink
Hi Steve
Post by SteveH
I've just upgraded TW to the latest version (using Firefox on Win 10).
The TW5 documentation says "The best, most general way to interact with a running wiki is via the HTTP or JavaScript API, rather than manipulating the file store directly".
https://tiddlywiki.com/#:%5B%5BTiddlyWiki%20on%20Node.js%5D%5D
If I add the following Test.tid to my Tiddlers directory
title: Test
modifier: someone
What node command; HTTP or Javascript API action do I need to do to update the wiki (and then refresh the browser to reflect a new tiddler having been added)?
That tiddler is trying to tell you that a new file manually added directly to the tiddler folder will only be recognised when the wiki is restarted. If you want to insert a tiddler from the server without restarting you’ll need to use the HTTP API:

https://tiddlywiki.com/#WebServer%20API

Best wishes

Jeremy
Post by SteveH
Regards
Steve H
https://tiddlywiki.com/#:%5B%5BTiddlyWiki%20on%20Node.js%5D%5D
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
Visit this group at https://groups.google.com/group/tiddlywiki <https://groups.google.com/group/tiddlywiki>.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/75f48277-5ed4-451b-8966-156beb6685f6%40googlegroups.com <https://groups.google.com/d/msgid/tiddlywiki/75f48277-5ed4-451b-8966-156beb6685f6%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/30EA0A80-53C5-4E25-A60D-A32C190F3A54%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
SteveH
2018-12-08 02:41:25 UTC
Permalink
Thank you for the link Jeremy, and thank you for all your TW work.

The Webserver Guide Tag referred to the TiddlyWeb JSON tiddler format.
Should I
be working with JSON files, not Tid files in my folder?

How do I use the API to 'get' a tiddler? The 'Webserver API Get Tiddler'
says

GET /recipes/default/tiddlers/{title} to get the raw fields of a tiddler.

I can't see work out whether I issue the a command such as this via Node or somehow within the browser window.

Regards

Steve



be TiddlyWeb JSON tiddler format
Post by Jeremy Ruston
Hi Steve
I've just upgraded TW to the latest version (using Firefox on Win 10).
The TW5 documentation says "The best, most general way to interact with a
running wiki is via the HTTP or JavaScript API, rather than manipulating
the file store directly".
https://tiddlywiki.com/#:%5B%5BTiddlyWiki%20on%20Node.js%5D%5D
If I add the following Test.tid to my Tiddlers directory
title: Test
modifier: someone
What node command; HTTP or Javascript API action do I need to do to update
the wiki (and then refresh the browser to reflect a new tiddler having been
added)?
That tiddler is trying to tell you that a new file manually added directly
to the tiddler folder will only be recognised when the wiki is restarted.
If you want to insert a tiddler from the server without restarting you’ll
https://tiddlywiki.com/#WebServer%20API
Best wishes
Jeremy
Regards
Steve H
https://tiddlywiki.com/#:%5B%5BTiddlyWiki%20on%20Node.js%5D%5D
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/75f48277-5ed4-451b-8966-156beb6685f6%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/75f48277-5ed4-451b-8966-156beb6685f6%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d895fcb7-acbb-4a39-9e14-c469156c3365%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
SteveH
2018-12-08 04:06:00 UTC
Permalink
I guess a related question to adding a new tidder is that of changing the
content of a tiddler file and 'asking' the browser to recognise the
'event' of the change/revision.

I came across the following in the DEV documentation.

"Macro Behaviour

Macros are just used to return a chunk of wikitext for further processing.
They should not make modifications to tiddlers in the wiki store. The
reason is that you cannott control when the macro is called; it may be
called repeatedly as part of refresh processing. So it is important that
macros do not have any other side effects beyond generating their text."


I also came across this (ie the precursor to Bob):-


The multiuser plugin allows you to create or edit tiddlers for a wiki
running in node.js and the changes are immediately synced to the browser.
The plugin git repo is here: https://github.com/OokTech/TW5-MultiUser

at https://groups.google.com/forum/#!msg/tiddlywiki/CWZX3qKugOI/av9PlSDgAQAJ


I'm trying 'Bob' out, but have not quite been able to 'point' it to my
folder containing the tiddlers... So I'll persist along those lines.


Regards
Steve
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c24a5260-cc98-4be8-8c09-a7c298d63f12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...