### ⏰ WakaTime plugin The *wakatime* plugin displays statistics from your [WakaTime](https://wakatime.com) account.
đŸ’Ŧ Obtaining a WakaTime token Create a [WakaTime account](https://wakatime.com) and retrieve your API key in your [Account settings](https://wakatime.com/settings/account). ![WakaTime API token](/.github/readme/imgs/plugin_wakatime_token.png) Then setup [WakaTime plugins](https://wakatime.com/plugins) to be ready to go!
#### âžĄī¸ Available options | Option | Type *(format)* **[default]** *{allowed values}* | Description | | ------ | -------------------------------- | ----------- | | `plugin_wakatime` | `boolean` **[no]** | Display WakaTime stats | | `plugin_wakatime_token` 🔐 | `token` **[]** | WakaTime API token | | `plugin_wakatime_days` | `string` **[7]** *{"7", "30", "180", "365"}* | WakaTime time range | | `plugin_wakatime_sections` | `array` **[time, projects, projects-graphs, languages, languages-graphs, editors, os]** *{"time", "projects", "projects-graphs", "languages", "languages-graphs", "editors", "editors-graphs", "os", "os-graphs"}* | Sections to display | | `plugin_wakatime_limit` | `number` **[5]** *{0 ≤ đ‘Ĩ}* | Maximum number of entries to display per graph | | `plugin_wakatime_url` | `string` **[https://wakatime.com]** | Address where to reach your Wakatime instance | | `plugin_wakatime_user` | `string` **[current]** | Your Wakatime user on the selfhosted Wakapi instance | Legend for option icons: * 🔐 Value should be stored in repository secrets * ✨ New feature currently in testing on `master`/`main` *[→ Full specification](metadata.yml)* #### â„šī¸ Examples workflows ```yaml name: ⏰ WakaTime uses: lowlighter/metrics@latest with: filename: metrics.plugin.wakatime.svg token: NOT_NEEDED plugin_wakatime: 'yes' plugin_wakatime_sections: time, projects, projects-graphs, languages, languages-graphs, editors, os plugin_wakatime_token: ${{ secrets.WAKATIME_TOKEN }} ```