Dory - NodeJS / JavaScript

751 views
Skip to first unread message

Arlen Beiler

unread,
Jul 29, 2018, 3:04:29 AM7/29/18
to TiddlyWiki
Dory - NodeJS / JavaScript


I haven't looked into this much but I thought I would let everyone know. This looks a lot simpler than termux but I haven't checked out everything yet. 

It's an app that lets you run JavaScript. It runs TiddlyServer so it should also run TiddlyWiki. I'll explore it more later.

Enjoy!
Arlen

Mark S.

unread,
Jul 29, 2018, 9:19:29 PM7/29/18
to TiddlyWiki
I got dory with tiddly server working with my 6 year old Samsung tablet. It won't run 0.0.0.0 -- claims a EADDRINUSE error. But if I look up the IP and feed that in then other devices can access it. And it actually seems as fast as connecting to the desktop server and maybe faster -- both than the desktop and local files mode (so far only tested single-file instances). Device-to-device communication was slow, but there might be something going on with my also ancient phone.

-- Mark

Arlen Beiler

unread,
Jul 30, 2018, 3:40:43 AM7/30/18
to TiddlyWiki
It only allows two command line arguments after the script file (e.g. tiddlywiki.js), but there are several ways to get around that, including editing tiddlywiki.js to add the server command arguments if the server command is specified. This makes it a lot easier to load a lot of data folders with the same options.

TiddlyServer normally only needs a settings.json file anyway if it isn't in the install directory, so no problem there.

--
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/ecc837d0-bc15-42f7-b6bb-00c812a77706%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

@TiddlyTweeter

unread,
Jul 30, 2018, 5:02:15 AM7/30/18
to TiddlyWiki
Arlen

I don't have the skill to comment on its function.

I do grasp that getting TW functioning more easily on Android is very important--given that its one of the most popular OS on the planet. (For relevant background: https://groups.google.com/d/msg/tiddlywiki/GUnOZYd6_oY/MUQ200NvCgAJ and https://groups.google.com/d/msg/tiddlywiki/OmMiYXhJXKY/oAWYeiMfBgAJ)

I'm interested to hear how it goes!

Best wishes
Josiah

Arlen Beiler

unread,
Jul 30, 2018, 5:15:35 AM7/30/18
to TiddlyWiki
It is definitely a lot easier than the other option -- Termux -- even though it is still a little complicated.

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

Ste Wilson

unread,
Jul 30, 2018, 6:16:23 AM7/30/18
to TiddlyWiki
On a slightly sideways note I ran into the same error trying to get server up on my pi.

AltugOz

unread,
Jul 30, 2018, 6:26:56 AM7/30/18
to TiddlyWiki
Thanks for sharing Arlen. I also find this to be a lot more simpler than using Termux to use on my android phone. This was actually my go-to solution when the termux setup got complicated on me (I finally got it working, but Dory allows you to run Tiddlyserver in the background at startup, while I couldn't get Termux to do the same without the add-on). 

I was going to suggest, maybe it is worth mentioning as an alternative in your getting started guide for Tiddlyserver under android section.


Best wishes,
Altug

@TiddlyTweeter

unread,
Jul 30, 2018, 7:32:09 AM7/30/18
to TiddlyWiki
Ciao Arlen

I'm just thinking out-loud.

One of the good things about TiddlyDesktop is how it wraps the "Run Environment" into the executable. Its is extremely good for users who just want to use TW, not have to deal with setting it up.

I guess I'm thinking "could we have a modern wrapped environment like "TiddlyDesktop" on Android?" What I mean is that Dory is wrapped with your Server in one package.

Not sure if its either legally or technically possible. But worth a thought?

Best wishes
Josiah

Mark S.

unread,
Jul 30, 2018, 11:22:33 PM7/30/18
to TiddlyWiki
I didn't use the command line arguments -- I just adjusted settings.json. The problem is that it generates an EADDRINUSE error if you use 0.0.0.0. Or at least on mine. Does it work differently on your set up?

Thanks!
-- Mark

Arlen Beiler

unread,
Jul 30, 2018, 11:30:04 PM7/30/18
to TiddlyWiki
Usually that error is Address+Port specific. Did you try using a different port?

Mark S.

unread,
Jul 31, 2018, 1:09:41 AM7/31/18
to TiddlyWiki
I did try different ports, though I didn't have the presence of mind to write them down. I remember picking something like 3030 which was unlikely to be in use. What port have you used with 0.0.0.0 successfully?

Thanks!
-- Mark

Arlen Beiler

unread,
Jul 31, 2018, 2:58:26 AM7/31/18
to TiddlyWiki
I get the same error. Interesting. I wonder if I should add a feature to try to bind to all available addresses.

Mark S.

unread,
Jul 31, 2018, 5:19:20 PM7/31/18
to TiddlyWiki
It might be a linux thing. I'm getting the same thing when trying to run with 0.0.0.0 (port 8080) on Linux desktop. It runs ok with 127.0.0.1:8080 and 192.168.1.100:8080. but gives the EADDRINUSE error for 0.0.0.0. I was able to run 0.0.0.0 on the same machine under Windows.

-- Mark

quest...@gmail.com

unread,
Aug 1, 2018, 6:23:18 AM8/1/18
to TiddlyWiki
don't know where you got the idea of 0.0.0.0 from - that this wrong anway. This address generally means "All network interfaces on this host" - not what you mean.  This is not really an IP address and more of a placeholder for certain configuration files.

the address - 127.0.0.1 however is defined in /etc/hosts as the "loopback" address - meaning it is a real (but fake) network interface addressable from that machine only.

--Fabl

Arlen Beiler

unread,
Aug 1, 2018, 12:12:46 PM8/1/18
to TiddlyWiki
So if one ip address is bound, does that render 0.0.0.0 inoperative, or does it just listen on all the others, I wonder. 

You should try searching this online, because it's probably a pretty common thing. 

Arlen

Mark S.

unread,
Aug 1, 2018, 12:50:09 PM8/1/18
to TiddlyWiki
0.0.0.0 has been used with TW on node to make the instance available to everyone on the local network. I'm pretty sure it worked with tiddlyserver on Windows (I'll need to reboot to check) and certainly with Bob -- which is why Jed has these warnings about using it in a coffee-shop environment.

Having to look up your assigned IP and then re-edit the settings file is a bit of a hassle.

-- Mark

Arlen Beiler

unread,
Aug 1, 2018, 1:03:31 PM8/1/18
to TiddlyWiki
Does termux have the same problem on the same device?

Mark S.

unread,
Aug 1, 2018, 1:14:46 PM8/1/18
to TiddlyWiki
Unfortunately, termux won't run on my device.

TonyM

unread,
Aug 1, 2018, 8:05:30 PM8/1/18
to TiddlyWiki
Arlen


On Thursday, 2 August 2018 03:03:31 UTC+10, Arlen Beiler wrote:
Does termux have the same problem on the same device?

I used Termux, purchased the add on for the load on restart but never got it to auto-load. Limits of my bash script knowledge I expect. I only used the node version not tiddlyserver.

I did however use 0.0.0.0 when needed and left it to default to 127.0.0.1 on occasion and it behaved as expected on my local lan where I used the devices IP address to access the wiki from my desktop, I observed issues once on an alternate network after starting the server (the IP Address had changed) but never bothered to learn what to do beyond reloading the wiki.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages