Used Wakatime API

This commit is contained in:
athul
2020-07-10 00:58:46 +05:30
parent 50bc9e60c7
commit 74594fa648
2 changed files with 43 additions and 12 deletions

View File

@@ -2,18 +2,28 @@
[Wakatime](https://wakatime.com) Weekly Metrics on your Profile Readme
## Update your Readme
Add a comment to your README like the follows
```md
<!--START_SECTION:waka-->
<!--END_SECTION:waka-->
```
The lines will be our entrypoints for our metrics.
## How to get it
**You Need to Have [waka-box](https://github.com/matchai/waka-box) in your Repo**
> *This maybe temporary and will be updated soon as I'll update this to an Action*
- Clone the Repo
- Install the dependencies `pip install -r requirements.txt`
- Get a GitHub Access Token with a `repo` scope
- Get a GitHub Access Token with a `repo` scope.
- Get your Wakatime API Key.
- Load env vars like
```text
GH_TOKEN = <ghtoken>
GIST_ID = <gist_id of the waka-box gist>
WAKATIME_API_KEY = <your wakatime API Key>
USERNAME = <github_username>
```