hey TW Tones,
that's very useful indeed. Thanks!
On Monday, 29 June 2020 01:27:12 UTC+1, TW Tones wrote:
>
> Sebastian,
>
> Good to see you progressing here. Latest can be stored anywhere you want
> but I like the idea of it being stored in the same dataset.
>
> When using data tiddlers you tend to use indexes and getindex etc... but
> in many cases ## replaces the !! that provides a text reference to a field.
> So in many cases an index is almost a fieldname in a data tiddler, and in
> many cases you can use filters as if they were fields.
>
> I Just build a small set of examples here, as much to clarify for my self.
> Try it on tiddlywiki.com
>
> ;Tiddlywiki.com has the tiddler $:/config/OriginalTiddlerPaths which is a
> large data set for experiments
>
>
> Last {{{ [[$:/config/OriginalTiddlerPaths]indexes[]sort[]last[]] }}}
> <hr>
>
>
> First {{{ [[$:/config/OriginalTiddlerPaths]indexes[]sort[]first[]] }}}
> <hr>
>
>
> 6th {{{ [[$:/config/OriginalTiddlerPaths]indexes[]sort[]nth[6]] }}}
> <hr>
>
>
> <$list filter="[range[10,20]]" variable=row>
> <<row>>: {{{ [[$:/config/OriginalTiddlerPaths]indexes[]sort[]nth<row>]
> }}}<br>
> </$list>
> <hr>
>
>
> ;All
>
>
> {{{ [[$:/config/OriginalTiddlerPaths]indexes[]sort[]] }}}
>
>
> Regards
> TW Tones
>
> On Sunday, June 28, 2020 at 8:32:45 PM UTC+10, Sebastian Ovide wrote:
>>
>> getting there.
>>
>> <$edit-text tiddler="weight" index="tmp" tag="input" type="number"/>
>> <$button>
>> <$action-listops $tiddler="weight" $index="latest"
>> $filter={{weight##tmp}}/>
>> <$action-listops $tiddler="weight" $index=<<now YYYY0MM0DD0hh0mm0ss>>
>> $filter={{weight##tmp}}/>record
>> </$button>
>>
>> weight -> {{weight}}
>> weight##latest -> {{weight##latest}}
>>
>>
>> probably the key "latest" is not required. But needs a simple way to
>> access the latest value. I guess that it could be done with an filter but
>> probably harder compared to {{weight##latest}}
>>
>> On Sunday, 28 June 2020 10:44:17 UTC+1, Sebastian Ovide wrote:
>>>
>>> good ideas in the thread.
>>>
>>> Just trying to implement in the most TW friendly way.
>>>
>>> TW Tones suggestion of using data tiddlers seems good. That means 1
>>> tiddler for each "variable" that I want to keep history of, key would be
>>> just a timestamp and perhaps the latest value could have its own key
>>> "latest". So for example the tiddler *weight* would have something like
>>> this
>>>
>>> latest:80
>>> 20200622:80
>>> 20200612:83
>>> 20200601:86
>>>
>>> as TW supports datatiddler out of the box it would allows me to do
>>> {{weight##latest}} to get the latest value and with some macro (perhaps JS)
>>> I could just parse {{weight}}
>>>
>>> just trying to get my head around (still cannot think 100% in TW) about
>>> using a filter, macro or widget for this ?
>>>
>>> I guess that. a filter could retrieve the latest value or a series of
>>> values (??), and perhaps a macro (or widget?) can save a value...
>>>
>>>
>>>
>>>
>>>
>>> On Sunday, 28 June 2020 08:42:00 UTC+1, Jed Carty wrote:
>>>>
>>>> I made a plugin for simple time series plots, you can see it demoed
>>>> here: https://ooktech.com/TiddlyWiki/ScatterPlot/
>>>>
>>>> Somewhere I have a setup for gathering data like you describe, I will
>>>> look for it.
>>>>
>>>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/c53f4440-ae2c-4b93-ba9c-2f48ca4b1d05o%40googlegroups.com.