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 22, 2018
1 parent 14a5a6e commit 0e6bebe
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 13 deletions.
30 changes: 20 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.9
- url: /local/mini-graph-card-bundle.js?v=0.1.0
type: module
```
Expand All @@ -26,14 +26,14 @@ 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.9/mini-graph-card-bundle.js
$ wget https://github.com/kalkih/mini-graph-card/releases/download/v0.1.0/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.9
- url: /local/mini-graph-card-bundle.js?v=0.1.0
type: module
```

Expand All @@ -60,7 +60,7 @@ 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.9
- url: /local/mini-graph-card-bundle.js?v=0.1.0
type: module
```

Expand All @@ -87,16 +87,16 @@ 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 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.
| hide | list | optional | v0.1.0 | List containing UI elements to hide, available items are (`icon`, `name`, `state`, `graph`)

### Example usage

#### Single card
```yaml
- type: "custom:mini-graph-card"
- type: custom:mini-graph-card
entity: sensor.sensor_illumination
height: 100
line_width: 4
Expand All @@ -106,27 +106,37 @@ The card works with entities from within the **sensor** domain and displays the

#### Show data from the last week
```yaml
- type: "custom:mini-graph-card"
- type: custom:mini-graph-card
entity: sensor.sensor_illumination
hours_to_show: 168
```

#### Hide everything except the graph
```yaml
- type: custom:mini-graph-card
entity: sensor.sensor_illumination
hide:
- icon
- name
- state
```

#### Stacking horizontally

```yaml
- type: horizontal-stack
cards:
- type: "custom:mini-graph-card"
- type: custom:mini-graph-card
entity: sensor.sensor_temperature
name: Temperature
line_color: '#3498db'
line_width: 8
- type: "custom:mini-graph-card"
- type: custom:mini-graph-card
entity: sensor.sensor_humidity
name: Humidity
line_color: '#e74c3c'
line_width: 8
- type: "custom:mini-graph-card"
- type: custom:mini-graph-card
entity: sensor.sensor_pressure
name: Pressure
line_width: 8
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.1.0
- Added `hide` option to hide specific UI elements.
- Removed `hide_icon`, use new `hide` option (**Breaking change**)
- Fixed issue causing errors if all available history entries had the exact same state
- Updated dependencies

## 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
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-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",
"updated_at": "2018-12-22",
"version": "0.1.0",
"remote_location": "https://github.com/kalkih/mini-graph-card/releases/download/v0.1.0/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 0e6bebe

Please sign in to comment.