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/f73284d5-2481-493c-95c2-190044368f9ao%40googlegroups.com.