Hi Danielo > > Tasker is an android application that allows you to control your phone > progragmatically: > > https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=es >
Great stuff, thanks for the explanation. This is a wonderful area for experimentation and I shall be very interested to see what you come up with. > Here is the syncadaptor that I have created: > https://gist.github.com/danielo515/44c9e12c76b4ef83dd09 > > I just copied it into an empty tw5 file and I have uploaded it to my > phone. It want to focus first on saving tiddlers. It works just partially: > the storyList tiddler is saved to the sdcard, and the first draft I create > is saved also, but after that nothing else is working, and no error is > displayed. Could you let me know why? > Reading the code I don't see anything obviously wrong, I'm afraid. A likely cause would be that one of the functions in your syncadaptor isn't correctly calling the appropriate callback function, but I don't see any obvious signs of that. I'd suggest adding a console.log to the top of each of your functions so that you can see what is being called. I notice that the deleteTiddler() method is commented out, and that it doesn't call the callback; if it is in fact being called by the syncer then that would be a problem. > Regarding the error I get when I try to build the wiki file using node js, > is basically that the functions defined at [1] are not available. Seems > that node tries to "execute" or use the syncadaptor even when I just try to > "build" the offline file. > I suspect that will be because TW is attempting to run the syncadaptor on the server as well as in the browser. The fix is to only export your syncadaptor in the browser: if($tw.browser) { exports.adaptorClass = FileSystemAdaptor; } Best wishes Jeremy. -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/CAPKKYJZYD0DVNs0b1ZM2FkTNMoCVdLwKDSMB-WTc%3DeBEKsmApA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
