Used Wakatime API
This commit is contained in:
18
README.md
18
README.md
@@ -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>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user