Skip to content

Week total balance #502

Answered by lauft
miquecg asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend to create a custom report for this. Such a report can be a script or compiled program, it only needs to be able to consume the format of Timewarrior's extension API (see https://timewarrior.net/docs/api/#input-format).

A very simple example for your use case would be the following script (this uses the Python package timew-report, which offers some useful functions for parsing, so you can concentrate on the report itself. See also below):

#!/usr/bin/env python3

import datetime
import sys
from timewreport.parser import TimeWarriorParser

# parse Timewarrior output from stdin
parser = TimeWarriorParser(sys.stdin)

total_budget = datetime.timedelta(hours=40)  # initialize …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by miquecg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants