jason0x43 / alfred-toggl

Alfred Workflow for interacting with the Toggl time tracking service
MIT License
367 stars 16 forks source link

The value in status report. #43

Open levinside opened 7 years ago

levinside commented 7 years ago

My total spent time for today is 22 min 30 sec.

But tgs tells me: «Total time for today 0:14»

What it means?

jason0x43 commented 7 years ago

That's tricky to say without data, but we can try this: download and install the copy of the workflow at http://d.pr/f/vSG3W (remove or disable your existing install). Open Alfred's preferences, select Workflows, select the newly installed Toggl workflow, and click the "debug" icon in the upper right corner (looks like a bug). This will open a debug pane under the workflow diagram. Run tgr today and look for comments like adding x.y to total for timer 'some timer' (12345) in project 'some project'. The x.y number in these comments is the fractional hour time spent for that timer (e.g., 0.25 == 15 minutes, 0.18 == 11 minutes, etc.). These fractional hours should add up to your expected total time for the day. The workflow then converts the resulting fractional time to your desired output (fractional or hh:mm).

If you try this, let me know if the math seems wrong or if timers you think should be included aren't being included.

Another option is to pull your cached data out of /Users/you/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.jason0x43.alfred-toggl/cache.json, clean out any personal info, and post it somewhere I can take a look at it.