The best example of a daemon in the core is the favicon handling in $:/core/modules/startup/favicon.js. It's a startup module that automatically updates the DOM's favicon link every time the tiddler $:/favicon.ico changes.
You could use it as a starting point for a daemon that takes actions in response to changes to tiddler values. In a tiddler change event you are free to modify other tiddlers. Best wishes Jeremy. On Sat, Jan 10, 2015 at 9:10 PM, Tobias Beer <[email protected]> wrote: > I would like to be able to create something that has the same >> functionality as the widgets in the MathyThing plugin that doesn't require >> a user action to update. >> > > However, you'd potentialy running into the same problems. Only just > slightly less forcefully. > > >> Jeremy suggested I create a daemon that runs in the background and >> updates the outputs when appropriate. >> > > When appropriate is the key here. It shouldn't run on a timer but rather > hook into certain events... hooks that may not exist yet. > > >> I was hoping that someone could point me in the direction of an example >> of a daemon used in tiddlywiki before I start poking the code trying to >> learn how without an example. >> > > You might want to come to terms with how you envision that process to > (safely) work... and then as that specific question with respect to what > precisely your daemon is supposed to achieve (and above all WHY). > > I have found some examples of generic javascript daemons, but I am not >> familiar enough with javascript to implement them in tiddlywiki without a >> lot of trial and error, which is what I would like to avoid if possible. >> > > Understandably... but you might just be headed towards mostly unexplored > waters. > > Best wishes, Tobias. > > -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- 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. For more options, visit https://groups.google.com/d/optout.
