raspberry pi nextcloud and TW

210 views
Skip to first unread message

kelsang sherab

unread,
Apr 19, 2020, 11:53:23 AM4/19/20
to TiddlyWiki
I am looking for info - resources to learn from on how to create a TW that is accesible remotely using a raspberry pi that has a Nextcloud on it.
Thank you

Jed Carty

unread,
Apr 20, 2020, 4:41:53 AM4/20/20
to TiddlyWiki
I haven't used it myself, but nextcloud supports webdav, and tiddlywiki can use a webdav saver. So that is probably a good place to start looking.

PMario

unread,
Apr 20, 2020, 5:17:17 AM4/20/20
to TiddlyWiki
On Monday, April 20, 2020 at 10:41:53 AM UTC+2, Jed Carty wrote:
I haven't used it myself, but nextcloud supports webdav, and tiddlywiki can use a webdav saver. So that is probably a good place to start looking.

Hi folks,

Nextcoud's WebDav implementation [1] has changed quite a bit since I did have a look at V12 the last time. It's 18+ now.

The first thing the did implement was mounting WebDav folders as external drives to local OS. That's only useful, if you want to use that drive to share TWs with several devices and save the locally.

If you want to use the WebDav saver there are 2 things that need to work.

 1) You need to be able to host sites from WebDav folders. So it has to look like going to tiddlywiki.com. This function is disabled most of the time. .. We need to check the docs here!

 2) You need to be allowed to use the PUT command. Nextcloud needs authorisation for every request. So the mechanism used in nextcloud is fundamentally different, than what TW WebDav Saver uses atm. ... We need to change that.

BUT all of this info needs to be used with a grain of salt, since we need to check the doc first.

have fun!
mario

PMario

unread,
Apr 20, 2020, 5:27:30 AM4/20/20
to TiddlyWiki
Hi,

This may be an option. Using it to mount dirves. https://docs.nextcloud.com/server/15/user_manual/files/access_webdav.html

-m

Sylvain Naudin

unread,
Apr 20, 2020, 7:48:50 AM4/20/20
to TiddlyWiki
FYI, just test mount drives on my local Nexcloud (put in old PC under Docker), under MacOS, and it's seems to work fine like this.

When I open my TW from Finder, it open on Firefox with URL like file:///Volumes/myuser/tiddlywiki.html, and if I save ans reload, the change are effectively save.

If I look under Nextcloud, time is fine about my last record.


Cheers,
Sylvain

kelsang sherab

unread,
Apr 21, 2020, 8:04:38 AM4/21/20
to TiddlyWiki
Thank you all for your replies.

I am not any clearer.
But I suspect it is because I did not explain my end goal clearly enough.

Thank you

PMario

unread,
Apr 21, 2020, 8:44:16 AM4/21/20
to TiddlyWiki
On Tuesday, April 21, 2020 at 2:04:38 PM UTC+2, kelsang sherab wrote:
Thank you all for your replies.

I am not any clearer.
But I suspect it is because I did not explain my end goal clearly enough.

:) .. Then I suggest, that you try to explain, what you want to do.

-m

kelsang sherab

unread,
Apr 22, 2020, 4:42:28 AM4/22/20
to tiddl...@googlegroups.com
Thank you for your patience.
I appreciate it very much.
I often find that because I do not understand the language of a field of knowledge that I can't express my self clearly to those who's help I am asking. Which frustrates both sides.


What I want to achieve is:
Have a TW that me and my friends can access - read, write - from anywhere on devices such as laptop and phone/tablets.

relevant info:

I use Linux OS not Windows.
I have a Nextcloud installation accessible from the outside world
I have RPi 4 with node.js and TW installed.

How did I try to achieve it?

method 1

Since my Nextcloud installation is accessible from anywhere I thought I could just put the TW in a shared folder and use it. But this is not working.

method 2

Node.js and TW - it is installed but not clear what to do nexi?

I will appreciate any advice in a plane language... or being directed to web resources.

Many thanks
Message has been deleted

Jed Carty

unread,
Apr 22, 2020, 6:05:14 AM4/22/20
to TiddlyWiki
If I understand correctly the problem you are having is saving the tiddlywiki when you edit it. 
But it is accessible to the people you want to access it.

If this is the case the responses in this thread do address your problem, but we probably have not been specific enough with instructions.
None of the options are immediately obvious, we are currently putting a lot of effort into documenting them and creating tools to make this all easier.
I am planning on making a similar setup on my home server once I get a real internet connection, unfortunately the installation got cancelled due to the quarantine in France, so I am not sure when that is going to happen. When it does I will be sure to post any tools I make on here.

Single File Wikis

There are browser restrictions that prevent any type of saving other than downloading the modified file unless you have some sort of external helper, there are many options for this. One is a WebDAV saver that you can have in the wikis you are sharing and it can make saving not require any further effort on the part of the people editing it, assuming they can access webdav mounted file systems, this should be possible on any desktop operating system, I am not sure about phones/tablets.
I do not know the details of setting up the WebDAV saver, I believe Mario may be one of the local experts on that.

If the people using the wiki have the next cloud folders with the wikis syncing on their computers there are a number of options for savers. On tiddlywiki.com in the GettingStarted tiddler there is a big list of savers, it is confusing, we are working on it, the ones that are most relevant to what you are doing if everyone editing the wiki has the folder syncing with next cloud are TiddlyFox, tiddlyie, Timimi and the Ruby server depending on what browser you are using and what you are comfortable setting up.

One thing to be aware of is that when saving single file wikis one person saving the wiki can overwrite another persons changes, so you have to be very careful when having single file wikis in a multi-user environment, there has been discussion about different ways to handle this problem, to my knowledge there isn't any definitive answer past 'be very careful'.

Node Wikis

If you want to use Node as the server be aware that you will need to do something so that the wiki server is also accessible from the outside world, and that you should put some sort of security layer on it. We do not have any standard setup for making a wiki accessible to the outside world, my solution was to make a custom express server with proper authentication and security on it and connect that to a dynamic dns provider and use it as a proxy to connect to the wiki, but that is not a straight-forward process and I don't have usable documentation for it.

If the above isn't enough to get you started with the process of getting a server set up that is accessible to the outside world I suggest using one of the single file wiki methods, currently setting up a secure multiuser node server that is accessible online isn't a simple process. I am working on updating the server I made to do this, but it may be a while before I make any significant progress on it.

kelsang sherab

unread,
Apr 22, 2020, 10:47:41 AM4/22/20
to TiddlyWiki
Hi @jed
Thank you very much for your thoughtful reply.

Yeah at the moment people can download the TW and write to it and then they have to save it an re upload it - which is all cumbersom and not accessible to most people.

So I appreciate you are saying things are actually not as strait forwarded as they need to be.

I will continue re-read your message and re read the tw.com for the various option and hopefully I'll finally manage something.

I hoped that through the node.js I could create a server to the world.

Thank you for an honest reply.
Reply all
Reply to author
Forward
0 new messages