Giter Club home page Giter Club logo

thingiverse-badge's Introduction

๐ŸŽซ Thingiverse Badge

This is a Thingiverse-Badge SVG graphic which user designs and makes. The counter gets automatically updated by a GitHub CI workflow.

thingiverse-designs thingiverse-makes

โญ Features

โญ Customizable
โญ SVG graphic
โญ Always up to date
โญ Image hosted by GitHub
โญ Git based stats history
โญ No API key is needed

๐Ÿ“– How it works

This update-badge-script.js Node.js script reads the Thingiverse API and writes the game stats into an SVG template file (thingiverse-makes-template.svg). If the generated badge is newer then the file in the repository, it commits the new generated thingiverse-makes.svg to this GIT repository. The pipeline gets triggered by a cron job, which automatically updates the image every midnight.

You can link the generated file by:
https://raw.githubusercontent.com/{userName}/thingiverse-badge/master/thingiverse-makes.svg

๐Ÿ›  Config

The script can be configured to generate a badge for any user:

  • userName: Your username on BoardGameGeek.
    Example url: https://www.thingiverse.com/topsee/ userName = topsee
  • accessToken: OAuth2 access token.
    Check out the Getting Started Guide to learn how to generate the token.
    Set the THINGI_ACCESS_TOKEN in your project environments settings.
  • cron: You can change the update time interval in the .github/workflows/main.yml:
    On Line 6:
    - cron: '0 0 * * *' (every day at midnight). Uses the cron-job syntax.

thingiverse-badge's People

Contributors

tobsef avatar

Watchers

 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.