From ba7f08535a450bd1ba59f43f346ef8d7433e206c Mon Sep 17 00:00:00 2001 From: Zsolt Zsiros Date: Sun, 6 Aug 2023 13:51:23 +0200 Subject: [PATCH] Update README.md: Clarify manual installation instructions --- README.md | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 552e762..f765293 100644 --- a/README.md +++ b/README.md @@ -77,15 +77,21 @@ This card is available in [HACS](https://hacs.xyz/) (Home Assistant Community St ### Manual install -1. Download and copy `apexcharts-card.js` from the [latest release](https://github.com/RomRider/apexcharts-card/releases/latest) into your `config/www` directory. +1. Download and copy `apexcharts-card.js` from the [latest release](https://github.com/RomRider/apexcharts-card/releases/latest) into your `"config"/www` directory. 2. Add the resource reference as decribed below. -### CLI install +#### CLI install -1. Move into your `config/www` directory. - -2. Grab `apexcharts-card.js`: +1. Move into your "config" directory (where the `configuration.yaml` is) +``` +cd $(dirname $(find / -name configuration.yaml 2>/dev/null)) +``` +2. Create and enter directory `www` +``` +mkdir www; cd $_ +``` +3. Grab `apexcharts-card.js`: ``` $ wget https://github.com/RomRider/apexcharts-card/releases/download/v2.0.4/apexcharts-card.js @@ -93,7 +99,9 @@ $ wget https://github.com/RomRider/apexcharts-card/releases/download/v2.0.4/ape 3. Add the resource reference as decribed below. -### Add resource reference +#### Add resource reference + +##### Via Lovelace config If you configure Lovelace via YAML, add a reference to `apexcharts-card.js` inside your `configuration.yaml`: @@ -102,7 +110,7 @@ resources: - url: /local/apexcharts-card.js?v=2.0.4 type: module ``` - +##### Via GUI Else, if you prefer the graphical editor, use the menu to add the resource: 1. Make sure, advanced mode is enabled in your user profile (click on your user name to get there) @@ -1064,4 +1072,4 @@ apex_config: height: 250px series: - entity: sensor.temperature -``` \ No newline at end of file +```