From b02cf3eb32434f3364ee8105a97476f313c2c1d1 Mon Sep 17 00:00:00 2001 From: kalkih Date: Sun, 3 Feb 2019 02:13:08 +0100 Subject: [PATCH] Update version info --- README.md | 19 +++++++++++-------- changelog.md | 52 +++++++++++++++++++++++++++++++--------------------- package.json | 2 +- tracker.json | 6 +++--- 4 files changed, 46 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 0d23b28..a658e30 100755 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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 ``` @@ -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 ``` @@ -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)*. @@ -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`. @@ -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 ``` @@ -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 ``` diff --git a/changelog.md b/changelog.md index 450689c..9dc1d3a 100755 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/package.json b/package.json index 476bc83..e898cfb 100755 --- a/package.json +++ b/package.json @@ -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", diff --git a/tracker.json b/tracker.json index e6f297a..c58474b 100755 --- a/tracker.json +++ b/tracker.json @@ -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" }