GithubHelp home page GithubHelp logo

chuanweihu / wakatime-charts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dvjn/wakatime-charts

0.0 0.0 0.0 53 KB

Generate beautiful SVG charts using your Wakatime stats.

License: MIT License

Shell 13.23% JavaScript 84.51% Dockerfile 2.26%

wakatime-charts's Introduction

wakatime-charts

GitHub Repo stars GitHub forks GitHub pull requests


Weekly Language Stats Weekly Project Stats

How to Use ๐Ÿš€

Set it up in your repository โš™๏ธ

  1. Add your wakatime api key from here, in your repository secrets with the name WAKATIME_API_KEY.

  2. Optional: If you are adding this action to a repository other than your profile repository (<username>/<username>), add your Github API Token from here, in your repository secrets with the name GITHUB_TOKEN.

  3. Go to actions tab of your repository, click New workflow, and then click the link set up a workflow yourself.

  4. Replace all the file contents with the following:

    name: Wakatime Charts
    
    on:
      workflow_dispatch:
      schedule:
        - cron: "0 0 * * *"
    
    jobs:
      update-charts:
        name: Update wakatime stats charts
        runs-on: ubuntu-latest
        steps:
          - uses: dvjn/wakatime-charts@master
            with:
              WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
              GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # only required if using the action in repository other than profile
  5. Commit this workflow file.

Note: The action will run at 00:00 UTC everyday to update the images.

Other Parameters ๐Ÿ”ง

  • BRANCH_NAME: Set the branch on which charts are pushed. Defaults to master
  • COMMIT_MESSAGE: Set the commit message for the changes. Defaults to ๐Ÿ“Š
  • IMAGES_FOLDER: Set the folder name in which generated images are stored. Defaults to images
  • GIT_USER_EMAIL: Set the user email for git config. Defaults to Github Action Bot's email 41898282+github-actions[bot]@users.noreply.github.com
  • GIT_USER_NAME: Set the user name for git config. Defaults to Github Action

Using generated images ๐Ÿ”—

Link for the generated images is: https://raw.githubusercontent.com/<username>/<repository>/<branch_name>/<images_folder>/<chart_name>.svg

Where, the chart name is one of wakatime_weekly_language_stats and wakatime_weekly_project_stats.

Inspiration ๐Ÿ˜

wakatime-charts's People

Contributors

dvjn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.