complex filter for historical data

61 views
Skip to first unread message

Sebastian Ovide

unread,
Jul 20, 2019, 4:05:40 AM7/20/19
to TiddlyWiki
Hi All,

I have these tiddlers:
"my tiddler 1", "my tiddler 2", ... , "my tiddler n".

For each I'd need to save a numerical value in another tiddler that I'll create for each day, like a journal that in a future I could use for generating historical graphs. So I'd should have something like this

title: "tiddle data 2019-11-31"
data_aaa_my_tiddler_1
: 1
data_aaa_my_tiddler_2
: 10
data_aaa_my_tiddler_3
: 2
data_bbb_my_tiddler_1
: 3
data_bbb_my_tiddler_2
: 1
data_bbb_my_tiddler_3
: 0
data_bbb_my_tiddler_1
: 3

Am I thinking in the wrong TiddyWiki way ? (I've spent several hours trying different approaches but I've been blocked always at some different points. So perhaps it should be resolved purely in JS inside a widget ?)

thanks

PMario

unread,
Jul 20, 2019, 5:39:13 AM7/20/19
to TiddlyWiki
Hi Sebastian,

It would be easier for us, if you describe what you want to achieve, instead of how. ...

Creating content in TW should be "natural" workflow. So you create some content (+ some meta data), and then we can see, how we can filter it. ...

Can you answer the following questions.

 - How does your "my tiddler 1" look like. ... some content if possible
 - How should the "historical graph" look like
 - What is the most convenient way to add meta data (eg: connection between your tiddlers.)

have fun!
mario

Sebastian Ovide

unread,
Jul 20, 2019, 5:59:50 AM7/20/19
to TiddlyWiki
Hi Mario

thanks for the answer.

I've forked GSD5 and moving away little bit from the original GTD methodologies. I'm simply adding life areas and human needs as the root of the human decision making in the form of life wheels. Using a "lean" approach applied to human life, I'd like to measure some parameters of my life and eventually see the evolution of it. Perhaps using some charts.


initially I've stored the "areas satisfaction" metric in each areas tiddler. But I've thought it would be hard to keep a daily log of all the metrics. So I'm storing the main KPIs in the tiddler "me" under the form of fields.

I've just discovered that the new tiddlyWiki version will have string operators so I've copy strings.js and now I'm using this:

  <$wikify name="areas" text="""
        <$list filter="[field:gsd_type[area]]" >
          <$list filter="area satisfaction [
<currentTiddler>] +[split[ ]join[_]] " variable="name">
            <$transclude tiddler="me" field=<
<name>>>0</$transclude>
          </$list>
        </$list>      
      """>
    <$wheelChart values=<
<areas>> />
  </$wikify>

it all works... for now... but it took me a big number of hours to it ...

It will take me a while to get my head around TW and think in TW way... so I'm pretty sure I'm doing many things that are probably considered hacks in the TW world...

Cheers

Aidan Grey

unread,
Jul 20, 2019, 3:17:06 PM7/20/19
to tiddl...@googlegroups.com
Why don't you just use a date field as on a journal, and then use the date difference macro to get the number of days since X date? that seems like it would be MUCH easier

--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0eac6122-639b-49e2-a6e6-6e9c6d6c8483%40googlegroups.com.

TonyM

unread,
Jul 21, 2019, 2:39:25 AM7/21/19
to TiddlyWiki
like Mario suggested. I am sure I can give you the answer if I only understood the question.

Tony

Reply all
Reply to author
Forward
0 new messages