Skip to content

Commit

Permalink
Merge pull request #19 from baruchiro/hacs
Browse files Browse the repository at this point in the history
Add HACS support and update README
  • Loading branch information
malcolmrigg authored Nov 1, 2024
2 parents 1403348 + b486e44 commit d0241a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ I decided to make it public so that other (more skillful) people could make use

## Installation

### HACS

Use this repository as a custom repository in HACS.

### Manual

1. Copy weasley-card.js to www/custom-lovelace/ in your home assistant folder, along with any particular font you want to use.
2. Go to Settings -> Dashboards, then hit the three dots to open the custom Resources editor.
3. Select "JavaScript Module" as the resource type, then add the URL "/local/custom-lovelace/weasley-card.js?v=1" (note if you put the javascript file somewhere other than www/custom-lovelace/ you'll need to modify this accordingly).
Expand All @@ -33,7 +39,7 @@ I decided to make it public so that other (more skillful) people could make use
7. Add your config, see the example below


## Updating
#### Updating

1. Copy the updated weasley-card.js over the old version
2. Edit the url in the Resources editor to increment the version number, e.g:
Expand Down
6 changes: 6 additions & 0 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Weasley Card",
"render_readme": true,
"filename": "weasley-card.js",
"content_in_root": true
}

0 comments on commit d0241a9

Please sign in to comment.