Creating tiddlers outside of TW5

157 views
Skip to first unread message

Paul Hemans

unread,
Nov 28, 2017, 2:40:55 AM11/28/17
to TiddlyWiki
Very much a noob, but this is a smashing project.

I am running tiddlywiki with the server option. I would like to create tiddlers through an external process and then display them in the browser. That has been successful.

Now I need the page to refresh in the browser to pick up the new tiddlers. Is there a way to do this where TW could monitor the directory for changes? Otherwise I could force it to restart on every change but that seems a little draconian and could cause problems for anyone interacting with the UI.

Thanks.

Jeremy Ruston

unread,
Nov 28, 2017, 5:12:24 AM11/28/17
to tiddl...@googlegroups.com
Hi Paul

Very much a noob, but this is a smashing project.

Thanks!

I am running tiddlywiki with the server option. I would like to create tiddlers through an external process and then display them in the browser. That has been successful.

Now I need the page to refresh in the browser to pick up the new tiddlers. Is there a way to do this where TW could monitor the directory for changes? Otherwise I could force it to restart on every change but that seems a little draconian and could cause problems for anyone interacting with the UI.

It sounds like you are creating your tiddlers by writing directly to the file system. As you've discovered, TiddlyWiki won't pick up the changes.

A better approach is to use the HTTP API to write your tiddlers (eg with curl or wget). Then they will be automatically saved to the filing system and propagated to all connected browsers.

By default, the browsers only fetch updates from the server every 60 seconds. Users can fetch updates immediately in the "Server” tab of control panel.

Best wishes

Jeremy



Thanks.

--
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 tiddl...@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/67c19980-1c87-42cf-a72c-66aa1ec38563%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Hemans

unread,
Nov 28, 2017, 5:52:51 AM11/28/17
to tiddl...@googlegroups.com
Thanks I'll check it out.

On Tue, Nov 28, 2017 at 9:12 PM, Jeremy Ruston <jeremy...@gmail.com> wrote:
Hi Paul

Very much a noob, but this is a smashing project.

Thanks!

I am running tiddlywiki with the server option. I would like to create tiddlers through an external process and then display them in the browser. That has been successful.

Now I need the page to refresh in the browser to pick up the new tiddlers. Is there a way to do this where TW could monitor the directory for changes? Otherwise I could force it to restart on every change but that seems a little draconian and could cause problems for anyone interacting with the UI.

It sounds like you are creating your tiddlers by writing directly to the file system. As you've discovered, TiddlyWiki won't pick up the changes.

A better approach is to use the HTTP API to write your tiddlers (eg with curl or wget). Then they will be automatically saved to the filing system and propagated to all connected browsers.

By default, the browsers only fetch updates from the server every 60 seconds. Users can fetch updates immediately in the "Server” tab of control panel.

Best wishes

Jeremy



Thanks.

--
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+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/_LQ4g5NFn1Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Paul Hemans

unread,
Nov 28, 2017, 6:26:12 AM11/28/17
to tiddl...@googlegroups.com
Hi Jeremy, where can I find the docs on the HTTP API?

Jeremy Ruston

unread,
Nov 28, 2017, 6:34:51 AM11/28/17
to tiddl...@googlegroups.com
Hi Paul

Hi Jeremy, where can I find the docs on the HTTP API?

Embarrassingly, there’s no decent documentation. The API is a subset of the TiddlyWeb API, which is documented here:


Sadly, the best way to see the routes that are actually implemented is to look at the source:


Or, you can use browser developer tools to observe network traffic as you interactively create and delete tiddlers.

Best wishes

Jeremy.


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 tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Paul Hemans

unread,
Nov 28, 2017, 9:56:31 AM11/28/17
to tiddl...@googlegroups.com
That's ok about the docs, I understand. I think the suggestion about using devtools is a really good one that should be enough to get me going.

On Tue, Nov 28, 2017 at 10:34 PM, Jeremy Ruston <jeremy...@gmail.com> wrote:
Hi Paul

Hi Jeremy, where can I find the docs on the HTTP API?

Embarrassingly, there’s no decent documentation. The API is a subset of the TiddlyWeb API, which is documented here:


Sadly, the best way to see the routes that are actually implemented is to look at the source:


Or, you can use browser developer tools to observe network traffic as you interactively create and delete tiddlers.

Best wishes

Jeremy.


On Tue, Nov 28, 2017 at 9:52 PM, Paul Hemans <paul_hemans@laberg.com.au> wrote:
Thanks I'll check it out.

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/_LQ4g5NFn1Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

TonyM

unread,
Nov 28, 2017, 4:25:23 PM11/28/17
to TiddlyWiki
Paul,

Checkout the discussion https://groups.google.com/forum/#!searchin/tiddlywiki/multiuser%7Csort:date/tiddlywiki/BJ5I2CqX_Ho/SIQ0zs7bBgAJ which is a development process to build features in this area, Warning it is a bit of a rabbit hole.

Needs NodeJS server.

Regards
Tony
Hi Paul

Hi Paul
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

-- 
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/_LQ4g5NFn1Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

-- 
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 tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/_LQ4g5NFn1Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Paul Hemans

unread,
Nov 29, 2017, 1:14:44 AM11/29/17
to tiddl...@googlegroups.com
Thanks Tony it does look a little deep from my perspective. What I need to do is hopely fairly simple. Maybe a little later ...

To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Jed Carty

unread,
Nov 29, 2017, 9:08:41 AM11/29/17
to TiddlyWiki
The Gatekeeper part of the multi-user wiki work I made pushes changes to the file system to the browser immediately. It is a bit rough right now but it works. https://github.com/OokTech/TW5-Gatekeeper
Reply all
Reply to author
Forward
0 new messages