Skip to content

Files

Latest commit

 

History

History
58 lines (43 loc) · 2.21 KB

README.md

File metadata and controls

58 lines (43 loc) · 2.21 KB

⏰ WakaTime plugin

The wakatime plugin displays statistics from your WakaTime account.

💬 Obtaining a WakaTime token

Create a WakaTime account and retrieve your API key in your Account settings.

WakaTime API token

Then setup WakaTime 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

ℹ️ Examples workflows

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 }}