Wakamonth - hours reporting tool #580
Replies: 6 comments 19 replies
-
Amazing little project, thanks for sharing! 👏 It's very cool to see tooling evolve around Wakapi. Regarding your question:
When tracking browsing data using the WakaTime Firefox / Chrome plugin, the I tried the tool and it works very well! A few remarks from my side (knowingly, that the tool is, of course, still work in progress):
And, of course, as a disclaimer: coding time tracked by Wakapi is only a rough proxy or indicator of the actual amount of work spent on a project / on a feature. It's only an estimate and definitely not legally binding, so people should keep that in mind when using it for billing reports / invoices. |
Beta Was this translation helpful? Give feedback.
-
Hi @muety, Thanks for the feedback and suggestions! I added the target project as a config directive (forgot about that one) and added a precision parameter (60/30/15) for granularity. The disclaimer was added to the Readme, so people are warned up-front. I tried to use the compat endpoint, but Wakapi crashed after I called the endpoint like:
About the unknown hours; I thought the plugin would only register whitelisted sites; e.g.
Shouldn't it log only hours on project/branch, based on <<LAST_BRANCH>>/<<LAST_PROJECT>>? |
Beta Was this translation helpful? Give feedback.
-
That definitely shouldn't be happening. Could you please post the error message with which the server had crashed?
Yes, you're right! The branch field of a heartbeat sent from the browser plugin will be set to the last branch of that heartbeat's project. This requires a project to be explicitly specified for the site (using the Could you possibly have a look into your database's Also, which version of the browser plugin are you using? Either way, thanks a lot your efforts with wakamonth! |
Beta Was this translation helpful? Give feedback.
-
Alright, I tested the compat endpoint and adapted the data format to the report. Also modified the config a bit, so it is a bit more flexible. Should work with Wakatime as well, but I don't have an account to test with. Basic setup should be as simple now as: wget -O ~/.wakamonthrc https://raw.githubusercontent.com/bitstillery/wakamonth/main/.wakamonthrc.example
npx @bitstillery/wakamonth -y 2024 -m 1 report |
Beta Was this translation helpful? Give feedback.
-
Small blogpost about the whole process: https://bitstillery.com/2024/01/09/wakamonth-hours-reporting-tool/ |
Beta Was this translation helpful? Give feedback.
-
I applied the wakatime.cfg changes, but it seems that it still needs a backend config parameter?
The endpoints are:
Should I use |
Beta Was this translation helpful? Give feedback.
-
Generating declarable hours reports using Wakapi with "Wakamonth"; a simple script that uses the Wakapi API to generate an Excel sheet that lists worked hours grouped per branch. Not sure if it's any good yet, but it is a start :) See https://github.com/bitstillery/wakamonth
Any thoughts about the reliability, improvements or anything else? Somehow it still has a lot of hours grouped on Unknown branch. Any idea how to debug this properly? I'm using the VScode plugin and the browser plugin (Firefox)
Beta Was this translation helpful? Give feedback.
All reactions