Skip to content

Commit

Permalink
Update icons path
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Jun 19, 2019
1 parent a3cdf76 commit 3e566db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion dist/weather-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class WeatherCard extends LitElement {
return `${
this._config.icons
? this._config.icons
: "https://cdn.jsdelivr.net/gh/bramkragten/custom-ui@master/weather-card/icons/animated/"
: "https://cdn.jsdelivr.net/gh/bramkragten/weather-card@master/dist/icons/"
}${
sun && sun == "below_horizon"
? weatherIconsNight[condition]
Expand Down
22 changes: 2 additions & 20 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,15 @@ Thanks for all picking this card up.

## Installation:

You have 2 options, hosted or self hosted (manual). The first option needs internet and will update itself.

### If you are using Firefox:
Firefox < 66 does not support all the needed functions yet for the editor.
You change this by enabling `javascript.options.dynamicImport` in `about:config`.
Or use the version without the editor: [Version without editor](https://raw.githubusercontent.com/bramkragten/custom-ui/58c41ad177b002e149497629a26ea10ccfeebcd0/weather-card/weather-card.js)

# Hosted:

Add the following to resources in your lovelace config:

```yaml
- url: https://cdn.jsdelivr.net/gh/bramkragten/custom-ui@master/weather-card/weather-card.min.js
type: module
```
# Manual:
1. Download the [weather-card.js](https://raw.githubusercontent.com/bramkragten/custom-ui/master/weather-card/weather-card.js) to `/config/www/custom-lovelace/weather-card/`. (or an other folder in `/config/www/`)
2. Save, the [amCharts icons](https://www.amcharts.com/free-animated-svg-weather-icons/) (The contents of the folder "animated") under `/config/www/custom-lovelace/weather-card/icons/` (or an other folder in `/config/www/`)
3. If you use Lovelace in storage mode, and want to use the editor, download the [weather-card-editor.js](https://raw.githubusercontent.com/bramkragten/custom-ui/master/weather-card/weather-card-editor.js) to `/config/www/custom-lovelace/weather-card/`. (or the folder you used above)

Add the following to resources in your lovelace config:

```yaml
resources:
- url: /local/custom-lovelace/weather-card/weather-card.js
- url: /community_plugin/weather-card/weather-card.js
type: module
```
Expand All @@ -55,7 +37,7 @@ If you want to use your local icons add the location to the icons:
```yaml
- type: custom:weather-card
entity: weather.yourweatherentity
icons: "/local/custom-lovelace/weather-card/icons/"
icons: "/community_plugin/weather-card/icons/"
```

Make sure the `sun` component is enabled:
Expand Down
2 changes: 1 addition & 1 deletion weather-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class WeatherCard extends LitElement {
return `${
this._config.icons
? this._config.icons
: "https://cdn.jsdelivr.net/gh/bramkragten/custom-ui@master/weather-card/icons/animated/"
: "https://cdn.jsdelivr.net/gh/bramkragten/weather-card@master/dist/icons/"
}${
sun && sun == "below_horizon"
? weatherIconsNight[condition]
Expand Down

0 comments on commit 3e566db

Please sign in to comment.