Laptop + Mobile access = TiddlyServer?

233 views
Skip to first unread message

Glenn D

unread,
Oct 2, 2017, 11:39:44 AM10/2/17
to TiddlyWiki
If I want to view and edit from multiple devices would the server be the best implementation?

If I install it on my Raspberry Pi, would I be able to edit using TiddlyDesktop on my laptop? Or would it be better to stick w/ TiddlyFox?

Jed Carty

unread,
Oct 2, 2017, 12:17:29 PM10/2/17
to TiddlyWiki
I am working on getting this set up right now.

From what I have done so far the setup you are going to want is the Raspberry Pi running TiddlyServer https://github.com/Arlen22/TiddlyServer

At the moment setup is manual and ensuring that you don't try to edit the same wiki from two devices at the same time is up to you. I am exploring options for configuration and possibly a multi-user (or concurrent device) set-up.

Jed Carty

unread,
Oct 2, 2017, 12:18:25 PM10/2/17
to TiddlyWiki
If you are using TiddlyServer than you don't need anything like TiddlyFox or TiddlyDesktop, you just visit the URL for the server and saving is handled by the server.

@TiddlyTweeter

unread,
Oct 2, 2017, 12:19:26 PM10/2/17
to TiddlyWiki
Do you want ONE TW that you can edit from different devices? In so, maybe look to Noteself that handles the syncing well. https://noteself.github.io/

Best wishes
Josiah

Lost Admin

unread,
Oct 2, 2017, 12:57:22 PM10/2/17
to TiddlyWiki
If you are going to the extent of putting a server on a Raspberry Pi, why not setup a proper web server? Apache with either webdav (for the dav saver) or mod_php for the store.php used by tiddlyspot (it's on Github) will give you a lot more flexibility. 

You can even have ssl/tls if you register a domain. You can use Letsencrypt for the certificate for free with readily available scripts.

Arlen Beiler

unread,
Oct 2, 2017, 1:31:59 PM10/2/17
to TiddlyWiki
If using DAV saver, TiddlyServer will prevent overwriting the server with a stale copy if you are working on more than one device. Apache is supposed to do this, but we were having trouble with it, so I'm not sure where it stands.


--
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.
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/1febf956-0b1d-45ee-82a8-d1582eca44af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Glenn D

unread,
Oct 2, 2017, 2:16:29 PM10/2/17
to TiddlyWiki
What if one of my devices is my iPhone running Firefox?

Glenn D

unread,
Oct 2, 2017, 2:18:07 PM10/2/17
to TiddlyWiki
I already have a Kirby blog, miniflux and wallabag running on my Pi via Apache and PHP.

Mat

unread,
Oct 2, 2017, 3:40:57 PM10/2/17
to tiddl...@googlegroups.com
...you are going to want is the Raspberry Pi running TiddlyServer https://github.com/Arlen22/TiddlyServer

Off topic, but may I ask how well TW performs on standard Raspi? Loading time, editing tids, etc?

edit: Using TiddlyServer, that is.

<:-)

Jed Carty

unread,
Oct 2, 2017, 3:57:17 PM10/2/17
to TiddlyWiki
It should run just fine on a raspberry pi. I haven't tried it with tiddlyserver yet because I am trying to get everything configured on my desktop first, but the normal tiddlywiki server runs just fine on a raspberry pi and tiddlyserver shouldn't take much more power.

Glenn D

unread,
Oct 2, 2017, 4:15:24 PM10/2/17
to TiddlyWiki
I may be a bit confused here, but -- what is the difference between a 'normal' tiddlywiki server and tiddlyserver?

RichardWilliamSmith

unread,
Oct 2, 2017, 6:18:59 PM10/2/17
to TiddlyWiki
I recently wrote up some notes about how I am running TiddlyServer on my Raspberry Pi. First you install TW, which has a 'single instance per port' server, then you install TS, which can serve lots of wikis. https://www.didaxy.com/tiddlyserver-on-the-raspberry-pi

Regards,
Richard

Glenn D

unread,
Oct 3, 2017, 7:32:04 AM10/3/17
to TiddlyWiki
getting a syntax error when running 'node server' command - an hour of troubleshooting hasn't fixed it. Got the tiddlywiki itself working, just not the server install

RichardWilliamSmith

unread,
Oct 3, 2017, 8:17:11 AM10/3/17
to TiddlyWiki
Hi Glenn,

If you'd like more help, maybe you can post the error that you're getting. If the problem you're having is with Tiddlyserver, I'd wager it's the settings.json file that's not right, so post that too, or comb through it looking for a mismatched brace somewhere.

JSON is hard to debug without a proper editor.

Regards,
Richard

Arlen Beiler

unread,
Oct 3, 2017, 8:26:31 AM10/3/17
to TiddlyWiki
You could try https://jsonlint.com/ and see if that sheds any light.

--
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.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Lost Admin

unread,
Oct 3, 2017, 10:14:00 AM10/3/17
to TiddlyWiki
I've done some pretty thorough testing on this. Where it stands is this:

After you save to the Apache (or ISS) DAV, you need to reload the wiki (press browser reload) and you can continue just fine.

Technical details:

The TiddlyWiki DAV saver uses an HTTP header called eTag. This is a value that indicates the state of the "object" (in this case tiddlywiki file) when it was last received by the browser. When you perform a DAV save operation (a PUT method),  the file changed and so the eTag value changed as well. Apache does not set a new eTag value with the PUT operation because Apache cannot confirm that there was no post processing once the file was saved so it does not send an updated eTag until you issue another GET call.

This is documented and proper behavior. A PUT is only supposed to send an updated eTag in the response if the server knows that the browser version of the data is the same as the server version. While this can be done with a GET operation, Apache is unable to confirm this with a PUT since Apache is not aware of any post-processing that might happen server-side.

I'm still trying to figure out how to force Apache to send an eTag with the response to the PUT, but I haven't yet figured out how.


On Monday, October 2, 2017 at 1:31:59 PM UTC-4, Arlen Beiler wrote:
If using DAV saver, TiddlyServer will prevent overwriting the server with a stale copy if you are working on more than one device. Apache is supposed to do this, but we were having trouble with it, so I'm not sure where it stands.

On Oct 2, 2017 12:57 PM, "Lost Admin" <thelos...@gmail.com> wrote:
If you are going to the extent of putting a server on a Raspberry Pi, why not setup a proper web server? Apache with either webdav (for the dav saver) or mod_php for the store.php used by tiddlyspot (it's on Github) will give you a lot more flexibility. 

You can even have ssl/tls if you register a domain. You can use Letsencrypt for the certificate for free with readily available scripts.

On Monday, October 2, 2017 at 11:39:44 AM UTC-4, Glenn D wrote:
If I want to view and edit from multiple devices would the server be the best implementation?

If I install it on my Raspberry Pi, would I be able to edit using TiddlyDesktop on my laptop? Or would it be better to stick w/ TiddlyFox?

--
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.

Glenn D

unread,
Oct 3, 2017, 12:58:06 PM10/3/17
to TiddlyWiki
Arlen and Richard - thank you both for your assistance. I now have TiddleyServer up and running after having figured out all Node update and syntax issues. Now to experiment!


On Tuesday, October 3, 2017 at 7:26:31 AM UTC-5, Arlen Beiler wrote:
You could try https://jsonlint.com/ and see if that sheds any light.
On Tue, Oct 3, 2017 at 8:17 AM, RichardWilliamSmith <richardwi...@gmail.com> wrote:
Hi Glenn,

If you'd like more help, maybe you can post the error that you're getting. If the problem you're having is with Tiddlyserver, I'd wager it's the settings.json file that's not right, so post that too, or comb through it looking for a mismatched brace somewhere.

JSON is hard to debug without a proper editor.

Regards,
Richard

--
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.
Reply all
Reply to author
Forward
0 new messages