Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
/ waka-box Public archive

๐Ÿ“Š Update a pinned gist to contain your weekly WakaTime stats by Python

License

Notifications You must be signed in to change notification settings

yuu-eguci/waka-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

waka-box

๐Ÿ“Š Update a pinned gist to contain your weekly WakaTime stats

Actions Status GitHub

Description

  • Python script
  • Converts WakaTime stats to bar charts and publishes on specified gist
  • Intended to run by GitHub Actions

Use on your own GitHub overview

  1. Register WakaTime account at https://wakatime.com/.
  2. Install WakaTime plugins into your editors following plugin install instructions.
  3. Create your own waka-box repository by pushing Use this template button at waka-box top page.
    • GitHub Actions workflow automatically runs and it shows EnvNotFoundError this time.
  4. Register three env variables as repository secrets.
    • WAKATIME_SECRET_API_KEY: Get your WakaTime Secret API Key from your account page.
    • GIST_ID: Create a public gist with a file named file and get the gist id. https://gist.github.com/username/[gist id]
    • GITHUB_ACCESS_TOKEN: Create a token from GitHub Settings > Developer settings > Personal access tokens > Generate new token > Check gist and generate
    • Set them as repository secrets - Repository settings > Secrets
  5. Pin the gist on your GitHub overview.
  6. Open Actions tab > Open your workflow result > build > Re-run jobs
    • It is possible that it shows EmptyWakaTimeDataError because WakaTime API data can be empty for a while after registration.
  7. After that, the jobs automatically run by every 12 hours.

Installation

On local

Create .env and run.

WAKATIME_SECRET_API_KEY=***
GIST_ID=***
GITHUB_ACCESS_TOKEN=***
pipenv install
pipenv run python main.py

On GitHub Actions

Register env variables and run by GitHub Actions.

secrets

Gist

https://gist.github.com/yuu-eguci/10a7031088fb0e783dc92e721c6443c3

What I learned this time

what-i-learned

About

๐Ÿ“Š Update a pinned gist to contain your weekly WakaTime stats by Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages