This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Weather card | ||
|
||
![openweathermap](https://user-images.githubusercontent.com/33804747/50626516-eb41af80-0f58-11e9-9813-95c2a16a937b.png) | ||
|
||
## Configuration | ||
|
||
Copy `custom-weather-card-chart.js` from this repository into your `config/www` directory first. | ||
|
||
```yaml | ||
# Example ui-lovelace.yaml entry | ||
resources: | ||
- type: module | ||
url: /local/custom-weather-card-chart.js | ||
title: Home Assistant | ||
views: | ||
- title: Main | ||
cards: | ||
- type: 'custom:weather-card-chart' | ||
title: Погода | ||
weather: weather.openweathermap | ||
sun: sun.sun | ||
``` | ||
#### Configuration variables: | ||
| Name | Optional | Description | | ||
| ------- | -------- | ------------------------------------------------------------------------------- | | ||
| type | **No** | Should be `'custom:weather-card-chart'` | | ||
| title | **No** | Card title | | ||
| weather | **No** | An entity_id with the `weather` domain | | ||
| sun | Yes | Should be `sun.sun`. Show sunrise and sunset time | | ||
| temp | Yes | Entity_id of the temperature sensor. Show temperature value from sensor instead | |