Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 870 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 870 Bytes

Active installations badge for HACS!

This is a little nodejs rest api that will return a badge for GitHub of active installations for a given HACS integration.

How to use

docker compose

    docker-compose up -d

docker run

    docker run -d -p 3000:3000 --name hacs-active-installations-badge kartoffeltoby/badge:latest

nodejs

    npm install
    npm start

Usage

Example

    curl http://localhost:3000/badge/better_thermostat

For GitHub

hacs_badge

    [![hacs_badge](http://localhost:3000/badge/better_thermostat?cache=1)]()

Using GitHub Actions

Look the config from this repo path after deploy to the badge is yourdomain.?cache=1

like: https://kartoffeltoby.github.io/hacs-statistics-badge/?cache=1