Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit c2718cd

Browse files
committed
2 parents 52c51a7 + cf2932b commit c2718cd

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

README.md

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![image](https://user-images.githubusercontent.com/33804747/139556051-d60c824d-0480-4812-a4c0-4f612ab4015b.png)
1+
![image](https://user-images.githubusercontent.com/33804747/155938742-67770857-33b2-4e95-9601-737677895115.png)
22

33
## Configuration
44

@@ -24,26 +24,34 @@ entity: weather.home
2424
2525
##### Card options
2626
27-
| Name | Type | Default | Description |
28-
| --------------- | ------- | -------------------------|--------------------------------------------------------------------------------------------------- |
29-
| type | string | **Required** | Should be `custom:weather-chart-card` |
30-
| entity | string | **Required** | An entity_id with the `weather` domain |
31-
| title | string | none | Card title |
32-
| show_main | boolean | true | Show or hide a section with current weather condition and temperature |
33-
| show_attributes | boolean | true | Show or hide a section with attributes such as pressure, humidity, wind direction and speed, etc |
34-
| icons | string | none | Path to the location of custom icons in svg format, for example `/local/weather-icons/` |
35-
| icons_size | number | 25 | The size of custom icons in pixels |
36-
| units | object | none | See [units of measurement](#units-of-measurement) for available options |
37-
| temp1_color | string | rgba(230, 100, 100, 1.0) | Temperature first line chart color |
38-
| temp2_color | string | rgba(68, 115, 158, 1.0) | Temperature second line chart color |
39-
| precip_color | string | rgba(132, 209, 253, 1.0) | Precipitation bar chart color |
27+
| Name | Type | Default | Description |
28+
| -------------------- | ------- | -------------------------|--------------------------------------------------------------------------------------------------- |
29+
| type | string | **Required** | Should be `custom:weather-chart-card`. |
30+
| entity | string | **Required** | An entity_id with the `weather` domain. |
31+
| title | string | none | Card title. |
32+
| show_main | boolean | true | Show or hide a section with current weather condition and temperature. |
33+
| show_attributes | boolean | true | Show or hide a section with attributes such as pressure, humidity, wind direction and speed, etc. |
34+
| icons | string | none | Path to the location of custom icons in svg format, for example `/local/weather-icons/`. |
35+
| icons_size | number | 25 | The size of custom icons in pixels. |
36+
| forecast | object | none | See [forecast options](#forecast-options) for available options. |
37+
| units | object | none | See [units of measurement](#units-of-measurement) for available options. |
38+
39+
##### Forecast options
40+
41+
| Name | Type | Default | Description |
42+
| -------------------- | ------- | -------------------------|--------------------------------------------------------------------------------------------------- |
43+
| labels_font_size | string | 11 | Font size for temperature and precipitation labels. |
44+
| temperature1_color | string | rgba(255, 152, 0, 1.0) | Temperature first line chart color. |
45+
| temperature2_color | string | rgba(68, 115, 158, 1.0) | Temperature second line chart color. |
46+
| precipitation_color | string | rgba(132, 209, 253, 1.0) | Precipitation bar chart color. |
47+
| condition_icons | boolean | true | Show or hide forecast condition icons. |
4048

4149
##### Units of measurement
4250

43-
| Name | Type | Default | Description |
44-
| --------------- | ------- | -------------------------|--------------------------------------------------------------------------------------------------- |
45-
| pressure | string | 'hPa' | Can be 'hPa' or 'mmHg' |
46-
| speed | string | 'km/h' | Can be 'km/h' or 'm/s' |
51+
| Name | Type | Default | Description |
52+
| -------------------- | ------- | -------------------------|--------------------------------------------------------------------------------------------------- |
53+
| pressure | string | 'hPa' | Can be 'hPa' or 'mmHg' |
54+
| speed | string | 'km/h' | Can be 'km/h' or 'm/s' |
4755

4856
###### What custom icons can I use?
4957
Icons should be in svg format. Icons should have names as shown [here](https://github.com/Yevgenium/weather-chart-card/blob/a9f795f2fd02028bdad9b771d383fa38c5f3148c/src/const.js#L24). Example:

0 commit comments

Comments
 (0)