hox / wakatime-api

Edits data inside a gist to show your public WakaTime information.

Home Page:https://gist.github.com/hox/119334d522f3785186796b1e82390826

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wakatime API Gist Updater

Featured on my github profile, you can use this project and all you need to fill out is the .env and then you can put the gist on your profile! Thanks for coming by!

Release

The absolute first step to running this project on your own is downloading the source code, master may potentially have bugs so download this project from one of the released versions here.

Setup

  1. Create a Personal Access Token with Github here, you will need the scope gist. Once you have your new Personal Access Token set that as an environment variable under GITHUB_TOKEN.

  2. Create a Public Github Gist here, once created you will be redirected to a url formatted like https://gist.github.com/username/{GIST_ID}. Copy the gist id from the url and set that as an environment variable under GIST_ID.

  3. Create an account on Wakatime's website here, or if you already have an account skip this step.

  4. Navigate to the Share > Embed section of Wakatime's website here, and create an Embeddable Code with the default settings except for the following:

  • Format: JSON
  • Chart Type: Coding Activity
  1. Under the output you will see a url: https://wakatime.com/share/@{SHARE_ID}, copy the share id from the url and set that as an environment vairable under TIMES_PATH formatted like share/@xxxxxxxxxx/xxxxxxxxxx.

  2. Repeat steps 4 & 5 but instead of Chart Type: Coding Activity you want Chart Type: Languages, and set that as the environment vairable LANGS_PATH with the same formatting.

  3. Run the command npm install to install all of the required dependencies for the updater to run.

  4. Start the updater with the command npm start.

Congratulations, you are done! Enjoy the gist updater and please consider leaving a ⭐ on this repo if you enjoy. If you have any questions or need help with something please create an Issue or contact me via twitter.

Docker

Docker image available at ghcr.io/hox/wakatime-api:latest.

About

Edits data inside a gist to show your public WakaTime information.

https://gist.github.com/hox/119334d522f3785186796b1e82390826


Languages

Language:TypeScript 85.3%Language:Dockerfile 8.2%Language:Shell 6.4%