Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add wakatime integration #10

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

kcoderhtml
Copy link

@kcoderhtml kcoderhtml commented Oct 10, 2024

I wanted to have some sweet wakatime stats on my GitHub profile but didn't want to deal with another tool, so I added it to this!

Lmk if you need anything changed or moved around :) (btw love charmbracelet stuff in general, y'all are great)

Closes #11

@kcoderhtml
Copy link
Author

I fully tested the new integration and all additions to the README have been verified to work :)

@kcoderhtml
Copy link
Author

The new bar format can be run on any of these:

💬 Languages:
{{ wakatimeData.Languages | wakatimeCategoryBar 5 }}

📜 Categories:
{{ wakatimeData.Categories | wakatimeCategoryBar 5 }}

🔭 Projects:
{{ wakatimeData.Projects | wakatimeCategoryBar 5 }}

🔧 Editors:
{{ wakatimeData.Editors | wakatimeCategoryBar 5 }}

💻 Operating Systems:
{{ wakatimeData.OperatingSystems | wakatimeCategoryBar 5 }}

👷 Machines:
{{ wakatimeData.Machines | wakatimeCategoryBar 5 }}

📦 Dependencies:
{{ wakatimeData.Dependencies | wakatimeCategoryBar 5 }}

And it outputs the following:

💬 Languages:
TypeScript   5h 6m 42s    █░░░░░░░░░░░░░░░░░░░░░░░░  42.76%
Go           3h 50m 33s   █░░░░░░░░░░░░░░░░░░░░░░░░  32.15%
Astro        53m 35s      █░░░░░░░░░░░░░░░░░░░░░░░░  7.47%
Markdown     38m 2s       █░░░░░░░░░░░░░░░░░░░░░░░░  5.30%
Bash         25m 51s      █░░░░░░░░░░░░░░░░░░░░░░░░  3.60%
📜 Categories:
coding   11h 57m 28s   █░░░░░░░░░░░░░░░░░░░░░░░░  100.00%
🔭 Projects:
markscribe        3h 24m 2s    █░░░░░░░░░░░░░░░░░░░░░░░░  28.44%
crushDB           2h 51m 32s   █░░░░░░░░░░░░░░░░░░░░░░░░  23.91%
hours-in-public   1h 46m 42s   █░░░░░░░░░░░░░░░░░░░░░░░░  14.87%
hackatime         1h 11m 26s   █░░░░░░░░░░░░░░░░░░░░░░░░  9.96%
high-seas         1h 6m 27s    █░░░░░░░░░░░░░░░░░░░░░░░░  9.26%
🔧 Editors:
Vscode   11h 57m 28s   █░░░░░░░░░░░░░░░░░░░░░░░░  100.00%
💻 Operating Systems:
Linux   11h 57m 28s   █░░░░░░░░░░░░░░░░░░░░░░░░  100.00%
👷 Machines:
moonlark   11h 57m 28s   █░░░░░░░░░░░░░░░░░░░░░░░░  100.00%
📦 Dependencies:

@kcoderhtml
Copy link
Author

"Dependencies" is empty simply because I don't have any in my wakatime data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add wakatime support
1 participant