[tw5] export tiddler automatically

Hi ,

i know the answer is no , but will ask any ways .

Is there way to export a particular tiddler automatically, so as in some scheduled task in the background, that lets say every 30 minutes would trigger a command to export a specific tiddler in a particular local

It would be cool if you could just crontab a wget to get the JSON:


wget http://localhost:4001/export/#my-tiddler-title

TiddlyTools/Time/AutoSaver

Displays a countdown timer in the SideBar that triggers a periodic “file save” and/or “export tiddlers” action.
Requires: TiddlyTools/Time/CountDown, TiddlyTools/Time/Ticker, TiddlyTools/Time/action-timeout.js
Optional: TiddlyTools/Time/Setup, $:/config/TiddlyTools/Time

Copy the above tiddlers into your document and then save-and-reload (so the action-timeout widget is defined). The AutoSaver interface is automatically added to the Sidebar.

From the sidebar, press the AutoSaver “gear” button to open a settings popup. Clear the “save the file” checkbox if you don’t want to autosave the entire file and check the “export tiddlers” checkbox, then select the desired tiddler titles from the listbox (use ctrl-click and/or shift-click to select multiple tiddler titles). The default output file will be named “tiddlers.json”.

Press the “done” button to set the countdown timer (default is 30 minutes). When the timer reaches zero, you will be ask to confirm “OK to autosave?” Then press “save” to initiate the “export tiddlers” action.

enjoy,

-e

1 Like

Addendum:
After you press “done” to set the countdown timer, you will need to press “start” to actually start the countdown.
Note that after the autosave is triggered, the countdown timer automatically resets and starts counting down again.
You can press “pause” to suspend the current countdown, or “stop” to halt the countdown.

-e

Wow,

That was such a pleasant surprise , I was really not expecting this , it is exactly what i need :slight_smile:

thank you very much Eric ,

I just posted an update to TiddlyTools/Time/AutoSaver:

  • improved “settings” popup interface (better layout and “reset” handling for defaults)
  • added startup() macro and $:/tags/StartupAction/Browser so countdown duration is initialized when file is loaded

Get the update here: TiddlyTools/Time/AutoSaver

-e

Another update to TiddlyTools/Time/AutoSaver…

added “export changes” setting and handler:

  • saves all tiddlers that have changed since the TiddlyWiki was loaded, except for the following tiddlers:
    [prefix[$:/boot]] [[$:/build]] [[$:/core]] [[$:/HistoryList]] [[$:/Import]] [[$:/library/sjcl.js]] [[$:/StoryList]] [[$:/temp/info-plugin]] and [prefix[$:/temp/time]]

  • default filename/format is “changes.json”

Get the update here: TiddlyTools/Time/AutoSaver

-e