I had at first thought of doing it by class name but I don't know how to 
insert a class name into:

[img[/path/to/file.png]]

is it as simple as

[img class=5min [/path/to/file.png]]

?

On Sunday, September 16, 2018 at 1:10:33 PM UTC-4, Jed Carty wrote:
>
> I think that the easiest way to do it would be to give each image a unique 
> class name, or each group that is supposed to be updated on a specific 
> interval the same class name, then use getElementsByClassName instead of by 
> tag.
>
> I think that an alternative method for doing this that may be a bit more 
> flexible for your future plans is to make a daemon process in a startup 
> module that triggers once ever n minutes and then runs a script then. The 
> startup actions in the core is an example and the trigger actions plugin I 
> made does a similar thing but the trigger is a change to a tiddler instead 
> of a timer.
>

My trigger actions plugin is here if you want it as a reference 
> https://ooktech.com/jed/ExampleWikis/TriggerActions/
> I am not sure if there is a way to use it directly. Eventually I need to 
> rewrite it using the same logic as the startup actions in the core, but it 
> works.
>
> If the data comes from server-side components that you can access than you 
> could use websockets to update it but that may take a bit more work. It 
> would give you much more control over how and when things up date though.
>

I will look into the startup action once I've got a macro working. That 
does sound like a better idea.

Websockets would be good, but that will require that I figure out how to 
make websockets work.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/ad2b2bb7-59ad-47c7-a6a3-7c7f2e35bb92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to