Coder Social home page Coder Social logo

habitica-stat-box's Introduction

habitica-stat-box

Show my Habitica status in a pinned Gist to build social motivation for developing good habits.

Inspired by kylemocode/medium-stat-box. Powered by GitHub Actions, GrabzIt, and habitica-avatar

@khno3 ๐Ÿฅท Level 72 Rogue 
๐Ÿฉธ Health 50/50 ๐Ÿ’ช Exp 901/2160 ๐Ÿ’Ž Mana 160/160
> Every pet ๐ŸฆŠ, equipment ๐Ÿ—ก, or level up ๐Ÿ”บ
> represents my dedication to
> developing good habits ๐Ÿ‘

I am now improving the feature which shows the latest avatar in a Gist.

avatar

What is Habitica?

Habitica is an open sourced habit tracker app which treats your goals like a Role Playing Game.

If you are interested in the game mechanics, please check their fandom page, for example, Damage to Player in Habitica.

Prerequisites

  1. Sign up for Habitica.

  2. Sign up for GrabzIt if you want to show your avatar image as well. (Please check the limitation for free accounts.)

    The Update Avatar Gist action is unstable now. Please check Reported Bugs.

  3. Fork this repository.

  4. Create new public GitHub Gists (https://gist.github.com/)

  5. Create a token with the gist scope. (https://github.com/settings/tokens/new)

  6. Take a look at .env.template and create your Repository Secrets of Actions (Guides for creating encrypted secrets for a repository).

Usage

  1. Enable Update Stats Gist workflow in your repository.

    The Update Avatar Gist action is unstable now. Please check Reported Bugs.

  2. The cron job runs every 2 hours between 00:05 ~ 16:05 UTC. Manual workflow_dispatch trigger is also available.

  3. Pin your Gist in your Github profile page.

Reported Bugs

  1. The Update Avatar Gist action is unstable now. Please check umbrella-h/habitica-stat-box/issues #14. Before the bug is fixed, it is recommanded to disable it. if you still want to update the image in you gist, please trigger it manually, and check the result to see if a retry is needed.
  2. GitHub will suspend the scheduled trigger for GitHub action workflows if there is no commit in the repository for the past 60 days. I am trying to use gautamkrishnar/keepalive-workflow. Please check umbrella-h/habitica-stat-box/issues #18.

Development

Edit .env file, and run the command bellow for testing in development environment .

$ bundle exec rake dev_stats
$ bundle exec rake dev_avatar

Sequence Diagram

sequence_diagram

habitica-stat-box's People

Contributors

umbrella-h avatar

Stargazers

Michael Fu avatar Oscar avatar

Watchers

 avatar

habitica-stat-box's Issues

[Bug] image cache problem

The image in my profile README
is not updated immediately as expected.
(Checked that the file in Cloudinary is updated successfully)

Clues:

  • Cloudinary cache
  • GitHub readme image cache
  • browser cache

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.