Time tracking?

131 views
Skip to first unread message

Scott Kingery

unread,
Nov 9, 2018, 4:25:33 PM11/9/18
to TiddlyWiki
Does anyone have a tiddlywiki they use for time tracking? I dont really need a to-do manager. I want something that I can put in that I just spent an hour on project X and 3 hours on project Y. The goal would be that I could later say how much of my time I spend on project X.

Thanks

Thomas Elmiger

unread,
Nov 12, 2018, 3:07:21 PM11/12/18
to TiddlyWiki
Hi Scott,

It’s not much, I can offer, but here is what I can come up with. I know that Evan Balster, developer of the formulas plugin [1] is using TW for time tracking. I guess you would have to ask him if he would share his solution.

Over the last weekend I extended my own math plugin RPN so it is now able to sum up all values in a defined field in a filtered set of tiddlers, and I helped a colleague to fix a simple time tracking draft ... you can see the result here:

https://tid.li/tw5/plugins.html#rpnDemo:rpnDemo%20Zeiterfassung%20%5B%5BZEIT%3A%20Test%204%5D%5D%20%5B%5BZEIT%3A%20Test%203%5D%5D%20%5B%5BZEIT%3A%20Test%202%5D%5D%20%5B%5BZEIT%3A%20Test%201%5D%5D%20%24%3A%2Fplugins%2Ftelmiger%2Frpn

The tiddler "Zeiterfassung" can be used as a template, like this:
{{||Zeiterfassung}}

– I just copied the above code into the task tiddlers (numberes 1 to 4 and prefixex with "ZEIT"). Nr. 4 ist not "done" yet, you can change that using the displayed button. At the moment, the done button calculates the minutes between the created and the modified timestamps of a tiddler using anoter macro collection [2] I once made and included in my listreveal plugin [3]. The difference (number of minutes) is then saved in a field time_used per tiddler.

WARNING: This works for timestamps from the same day. There might be errors if you try to track time over several days, months, ... so no night shifts please!

So the concept of my colleague is to do these steps all on the same day:
  • Make a new tiddler when you start working on a task (sets the created timestamp)
  • (Comment in the tiddler, what you do)
  • Put the template code in the tiddler (you could do that via conditional view template instead of by hand)
  • Save the tiddler when you are done (sets the modified timestamp)
  • Press the button to save the minutes spent
The rpnDemo tiddler demonstrates how to sum all the minutes ... that’s all I have for now.

On the fields tab of the rpn plugin you will find more info about calculations with fields.

Let us know how it is going. All the best!
Thomas

JWHoneycutt

unread,
Nov 12, 2018, 4:01:12 PM11/12/18
to TiddlyWiki

Here is a dirt simple "manual" solution

In ControlPanel, Info tab, down to Title of new tiddlers, I enter:

<<now "YYYY-0MM-0DD hh12:0mmpm">>

Any new tiddler's title defaults to the machine date and time.  Take notes into the tiddler, give it tags, and manually take note of the time.

JWHoneycutt
Reply all
Reply to author
Forward
0 new messages