This is possible as long as the TiddlyWiki document remains open in the
browser.
Try this macro:
http://fnd.lewcid.org/svn/TiddlyWiki/plugins/PeriodicUploadsMacro.js
It's largely untested, so make sure you create a backup first.
You can find the required data in your [[TspotControls]] shadow tiddler.
There's a macro call like this:
<<upload http://foo.tiddlyspot.com/store.cgi index.html . . foo>>
(with "foo" being your site ID)
Just change "<<upload" to "<<periodicUpload 300" (this additional
parameter specifies the interval in seconds).
You will still have to enter your password in the respective field, of
course.
HTH.
-- F.
Yes; Tiddlyspot uses the UploadPlugin*, which can be made to work anywhere.
Also see this page on the community wiki:
http://www.tiddlywiki.org/wiki/Server-Side_Solutions
> Is there a way, that a simple tag would prevent the macro from uploading
> a tiddler? Say for example, a Journal Keeper wanted some tiddlers to be
> uploaded, for public consumption; and others not to be uploaded.
That's something BidiX (the UploadPlugin's author) would have to answer.
-- F.
On Fri, Feb 15, 2008 at 11:10 PM, Rafiki Cai <rafi...@gmail.com> wrote:
> Is there a way, that a simple tag would prevent the macro from uploading
> a tiddler? Say for example, a Journal Keeper wanted some tiddlers to be
> uploaded, for public consumption; and others not to be uploaded.
Glad to hear that! I've now changed the status from experimental to beta.
-- F.
I had thought about that, but dismissed it because it can be quite
dangerous to automatically start uploading.
Nevertheless, I've updated the macro to add an option for the interval:
http://fnd.lewcid.org/svn/TiddlyWiki/plugins/PeriodicUploadsMacro.js
However, because this is such a potentially dangerous thing, I've
changed the status back to experimental until I can figure out a way to
take care of these issues (see the plugin's To Do section).
-- F.
Yeah, that was why I wasn't at all happy with the solution.
I have reverted to v0.5 (now considered stable) and will write a
separate, though more complex plugin that does this differently.
I hope to be done by tomorrow, but you never know, I might run into
problems and lose interest...
-- F.
Here's the first version:
http://fnd.lewcid.org/svn/TiddlyWiki/plugins/PeriodicUploadsPlugin.js
There's a lot of room for improvement, but it seems to do the job.
It's also not as lightweight as the PeriodicUploadsMacro and requires
TiddlyWiki v2.2 (due to the backstage integration), which is why I won't
retire the macro version.
-- F.
Sorry, my bad; I forgot to remove all debugging calls. It should work now.
-- F.
That's the location; I just removed a console.log() call from the
initOption() function.
-- F.
Actually, I'm hating myself - for some reason (copy & paste error?) I
was accessing the wrong object there (optionsDesc rather than options).
> TypeError: this.firstChild has no properties
Yeah, there was a small logical error there.
Both of these issues should be fixed now:
http://fnd.lewcid.org/svn/TiddlyWiki/plugins/PeriodicUploadsPlugin.js
(I haven't updated the version number though, as the previous versions
were non-functional - so consider this the first proper release then)
Now I'm curious to see what other bugs you can find...
-- F.
Well, I've only tested it by emulating the UploadPlugin - which worked
fine - but I guess I'll have to dig deeper.
However, time might be tight the next few days. Keep reminding me though
if I haven't responded after a week or so.
> if I create multiple <<periodicUploads>> triggers (say, one in
> SidebarOptions and one in Mainmenu, as an example), toggling one from
> Start to Stop does is not reflected on the others...
I'm aware of that - but I don't think there's a lot I can do there,
other than searching the entire document for those buttons.
Since you'd normally only have a single button outside the backstage
area anyway, I don't think that warrants the effort, code bloat and
performance hit.
-- F.
Had I let this slip for a week, I probably would've had a hard time
motivating myself again. So get v0.6 here:
http://fnd.lewcid.org/svn/TiddlyWiki/plugins/PeriodicUploadsPlugin.js
Turns out that UploadPlugin itself already provides configuration
options since v3.1.0, so I could remove quite a bit of unnecessary code
and simplify the whole process.
Since I'm also making use of the existing backstage tab, you'll need
UploadPlugin v4.1.0 or greater.
I've tested this with a local setup, and it seems to work fine. Let me
know if you encounter any more issues.
BidiX, if you're reading this, got any suggestions on how this plugin's
options could be better integrated with the UploadPlugin's backstage
tab? It looks kinda ugly/haphazard right now...
-- F.
Not sure what the problem might be here - it worked fine when I tested it.
However, I'm afraid I can't focus on this kind of thing right now; it
might take a week or more until I'm back in action - so remind me again
then.
-- F.