Skip to content

Commit

Permalink
Update version info
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkih committed Feb 3, 2019
1 parent 8abd3be commit b02cf3e
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 33 deletions.
19 changes: 11 additions & 8 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.2.0
- url: /local/mini-graph-card-bundle.js?v=0.2.1
type: module
```
Expand All @@ -26,14 +26,14 @@ The card works with entities from within the **sensor** domain and displays the
2. Grab `mini-graph-card-bundle.js`

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

3. 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.2.0
- url: /local/mini-graph-card-bundle.js?v=0.2.1
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.2.0
- url: /local/mini-graph-card-bundle.js?v=0.2.1
type: module
```

Expand All @@ -78,7 +78,7 @@ The card works with entities from within the **sensor** domain and displays the
| icon | string | optional | v0.0.1 | Set a custom icon from any of the available mdi icons.
| name | string | optional | v0.0.1 | Set a custom name which is displayed beside the icon.
| unit | string | optional | v0.0.1 | Set a custom unit of measurement.
| more_info | boolean | true | v0.0.1 | Set to `false` to disable the "more info" dialog when pressing the card.
| more_info | boolean | true | v0.0.1 | Set to `false` to disable the "more info" dialog popup when pressing on the card.
| group | boolean | false | v0.2.0 | Disable paddings and box-shadow, useful when nesting the card.
| hours_to_show | integer | 24 | v0.0.2 | Specify how many hours the line graph should render.
| points_per_hour | integer | 1 | v0.2.0 | Specify amount of data points the graph should render for every hour, *(basically the detail/accuracy of the graph)*.
Expand All @@ -88,6 +88,7 @@ The card works with entities from within the **sensor** domain and displays the
| line_width | number | 5 | v0.0.1 | Set the thickness of the line.
| line_color | string/list | var(--accent-color) | v0.0.1 | Set a custom color for the graph line, provide a list of colors for multiple graph entries.
| decimals | integer | optional | v0.0.9 | Specify the exact number of decimals to show for states.
| hour24 | boolean | false | v0.2.1 | Set to `true` to display times in 24-hour format.
| font_size | number | 100 | v0.0.3 | Adjust the font size of the state displayed, as percentage of the original size.
| align_header | string | `default` | v0.2.0 | Set the alignment of the header, `left`, `right`, `center` or `default`.
| align_icon | string | `right` | v0.2.0 | Set the alignment of the icon, `left`, `right` or `state`.
Expand All @@ -100,14 +101,16 @@ Providing options are optional, entities can be listed directly, see example bel

| Name | Type | Default | Description |
|------|:----:|:-------:|:------------|
| entity | string | **required** | Entity id of the sensor
| entity | string | **required** | Entity id of the sensor.
| name | string | optional | Set a custom display name, defaults to entity's friendly_name.
| show_state | string | optional | Display the current state of the sensor.

```yaml
entities:
- sensor.temperature
- entities: sensor.pressure
- entity: sensor.pressure
name: Pressure
show_state: true
- sensor.humidity
```

Expand Down Expand Up @@ -269,7 +272,7 @@ resources:
$ cd mini-graph-card && git checkout dev && npm install
```

**Edit the source file `mini-graph-card.js`, build by running**
**Edit the source, build by running**
```
$ npm run build
```
Expand Down
52 changes: 31 additions & 21 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
## v0.2.1
- **Added:** New `hour24` option to choose time format between 12-hour/24-hour clock
- **Added:** Support for showing multiple sensor states, see new `show_state` option for the entity object (#33)
- **Added:** Ability to press/click on entities in the graph legend to bring up their "more info" dialog (#31)
- **Fixed:** Responsive design of the graph legend
- **Fixed:** NaN values in extrema (#34)
- **Fixed:** Extrema not rendering (#32)
- **Fixed:** Times on points going backwards (#30)


## v0.2.0
- UI redesign
- Added support for multiple entities (**BETA**) #28
- Added support for multiple `line_color` entries
- Added graph data points with information on hover, see `points` option under the `show` option
- Added `animate` option to have the graph animated on initial load
- Added `points_per_hour` option to specify amount of data points that should be rendered for each hour (basically the graph detail/accuracy).
- Added support for multiple color thresholds with new `line_color_above` & `line_color_below` options
- Added allocated space for the graph -> less jerky movements when loading in
- Added graph legend, visible if multiple entities is present
- Added `align_header`, `align_icon` & `align_state` options #27
- Added `show` option, to manage visible/hidden UI elements
- Added `entities` option
- Added `group` option to remove paddings/box-shadow #26 (@iantrich)
- Fixed bug were history data would be fetched when graph was hidden
- Fixed `decimals` option not being applied to labels #19
- Fixed Y-scale based on absolute extrema causing inconsistent results, now based on moving average same as the rest of the graph.
- Deprecated `entity` option, use new `entities`, accepts string or list (**deprecated**)
- Removed `detail` option, use new `points_per_hour` option (**Breaking change**)
- Removed `hide` options, use new `show` option (**Breaking change**)
- Removed `labels` option, use `labels` in new `show` option (**Breaking change**)
- Removed `line_value_above`, `line_color_above`, `line_value_below` & `line_color_below` options (**Breaking change**)
- **UI redesign**
- **Added:** support for multiple entities (**BETA**) #28
- **Added:** support for multiple `line_color` entries
- **Added:** graph data points with information on hover, see `points` option under the `show` option
- **Added:** `animate` option to have the graph animated on initial load
- **Added:** `points_per_hour` option to specify amount of data points that should be rendered for each hour (basically the graph detail/accuracy).
- **Added:** support for multiple color thresholds with new `line_color_above` & `line_color_below` options
- **Added:** allocated space for the graph -> less jerky movements when loading in
- **Added:** graph legend, visible if multiple entities is present
- **Added:** `align_header`, `align_icon` & `align_state` options #27
- **Added:** `show` option, to manage visible/hidden UI elements
- **Added:** `entities` option
- **Added:** `group` option to remove paddings/box-shadow #26 (@iantrich)
- **Fixed:** bug were history data would be fetched when graph was hidden
- **Fixed:** `decimals` option not being applied to labels #19
- **Fixed:** Y-scale based on absolute extrema causing inconsistent results, now based on moving average same as the rest of the graph.
- **Deprecated:** `entity` option, use new `entities`, accepts string or list (**deprecated**)
- **Removed:** `detail` option, use new `points_per_hour` option (**Breaking change**)
- **Removed:** `hide` options, use new `show` option (**Breaking change**)
- **Removed:** `labels` option, use `labels` in new `show` option (**Breaking change**)
- **Removed:** `line_value_above`, `line_color_above`, `line_value_below` & `line_color_below` options (**Breaking change**)

## v0.1.0
- Added `hide` option to hide specific UI elements
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mini-graph-card",
"version": "0.2.0",
"version": "0.2.1",
"description": "A minimalistic and customizable graph card for Home Assistant Lovelace UI",
"keywords": [
"home-assistant",
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-01-30",
"version": "0.2.0",
"remote_location": "https://github.com/kalkih/mini-graph-card/releases/download/v0.2.0/mini-graph-card-bundle.js",
"updated_at": "2018-02-03",
"version": "0.2.1",
"remote_location": "https://github.com/kalkih/mini-graph-card/releases/download/v0.2.1/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 b02cf3e

Please sign in to comment.