Skip to content

Commit

Permalink
Updated version info
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkih committed Dec 16, 2018
1 parent b959d0f commit 090db95
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ The card works with entities from within the **sensor** domain and displays the

```yaml
resources:
- url: /local/mini-graph-card-bundle.js?v=0.0.8
type: js
- url: /local/mini-graph-card-bundle.js?v=0.0.9
type: module
```
### CLI install
Expand All @@ -26,15 +26,15 @@ The card works with entities from within the **sensor** domain and displays the
- Grab `mini-graph-card-bundle.js`

```
$ wget https://github.com/kalkih/mini-graph-card/releases/download/v0.0.8/mini-graph-card-bundle.js
$ wget https://github.com/kalkih/mini-graph-card/releases/download/v0.0.9/mini-graph-card-bundle.js
```

- Add a reference to `mini-graph-card-bundle.js` inside your `ui-lovelace.yaml`.

```yaml
resources:
- url: /local/mini-graph-card-bundle.js?v=0.0.8
type: js
- url: /local/mini-graph-card-bundle.js?v=0.0.9
type: module
```

### *(Optional)* Add to custom updater
Expand All @@ -60,8 +60,8 @@ The card works with entities from within the **sensor** domain and displays the

```yaml
resources:
- url: /local/mini-graph-card-bundle.js?v=0.0.8
type: js
- url: /local/mini-graph-card-bundle.js?v=0.0.9
type: module
```

*You may need to empty the browsers cache if you have problems loading the updated card.*
Expand All @@ -87,10 +87,10 @@ The card works with entities from within the **sensor** domain and displays the
| line_color_above | string | optional | v0.0.4 | Set the line color for `line_value_above`
| line_value_below | number | optional | v0.0.4 | Set a threshold, if current state is below this value, the line color will change to color specified in `line_value_below`.
| line_color_below | string | optional | v0.0.4 | Set the line color for `line_value_below`.
| hide_icon | boolean | optional | v0.0.5 | Set to `true` to hide icon.
| hide_icon | boolean | optional | v0.0.5 | Set to `true` to hide the icon.
| detail | integer | 1 | v0.0.8 | `1` or `2`, 1 equals ONE data point per hour, 2 equals SIX data points per hour.
| labels | boolean | false | v0.0.8 | Set to `true` to display min/max labels.

| decimals | integer | optional | v0.0.9 | Specify the exact number of decimals to show for the current state.

### Example usage

Expand Down Expand Up @@ -145,7 +145,7 @@ $ git clone https://github.com/kalkih/mini-graph-card.git
```yaml
resources:
- url: /local/mini-graph-card/mini-graph-card.js
type: js
type: module
```

### Generate the bundle
Expand Down Expand Up @@ -174,5 +174,7 @@ Make sure you have the latest versions of `mini-graph-card.js` & `mini-graph-lib

If you have issues after updating the card, try clearing your browser cache.

If you have issues displaying the card in older browsers, try changing `type: module` to `type: js` at the card reference in `ui-lovelace.yaml`.

## License
This project is under the MIT license.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.0.9
- Added `decimals` option to display specified amount of decimals for the current state #18
- Fixed issue where `line_value_above` and `line_value_below` would not work when set to `0` #13

## v0.0.8
- Major rework of the graph calculation, now taking moving average and timestamps into account
- Added bundle version
Expand Down
6 changes: 3 additions & 3 deletions tracker.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"mini-graph-card-bundle": {
"updated_at": "2018-11-19",
"version": "0.0.8",
"remote_location": "https://github.com/kalkih/mini-graph-card/releases/download/v0.0.8/mini-graph-card-bundle.js",
"updated_at": "2018-12-16",
"version": "0.0.9",
"remote_location": "https://github.com/kalkih/mini-graph-card/releases/download/v0.0.9/mini-graph-card-bundle.js",
"visit_repo": "https://github.com/kalkih/mini-graph-card",
"changelog": "https://github.com/kalkih/mini-graph-card/releases/latest"
}
Expand Down

0 comments on commit 090db95

Please sign in to comment.