项目作者: Imbuzi

项目描述 :
Weather Card with animated icons for Home Assistant Lovelace adapted to display all informations from Météo France integration
高级语言:
项目地址: git://github.com/Imbuzi/meteo-france-weather-card.git
创建时间: 2019-07-02T08:44:55Z
项目社区:https://github.com/Imbuzi/meteo-france-weather-card

开源协议:Other

下载


Lovelace animated weather card

Originally created for the old UI converted by @arsaboo and @ciotlosm to Lovelace and now adapted to display all informations available in the Météo-France integration.

This card uses the awesome animated SVG weather icons by amCharts.

Weather Card

Thanks for all picking this card up.

Installation

You have 2 options, hosted or self hosted (manual).
We strongly recommend to install using the first option, as it will update itself (by the way, it needs internet).

The instructions aren’t givent to install it self-hosted, as this is a standard installation procedure.

Hosted

Add the following to resources in your lovelace config:

  1. resources:
  2. url: https://cdn.jsdelivr.net/gh/Imbuzi/meteo-france-weather-card/dist/meteo-france-weather-card.js
  3. type: module

You can also specify a specific tag or version in the URL by adding @x.x :

  1. resources:
  2. url: https://cdn.jsdelivr.net/gh/Imbuzi/meteo-france-weather-card@1.1/dist/meteo-france-weather-card.js
  3. type: module

Configuration

And add a card with type custom:meteo-france-weather-card:

  1. type: custom:meteo-france-weather-card

Then you can switch to visual editor to see the available options.

You can choose wich elements of the weather card you want to configure, only the weather entity is required for the card to work properly.

If you want to show the sunrise and sunset times, make sure the sun component is enabled:

  1. # Example configuration.yaml entry
  2. sun:

This is a basic example of the config for a full-configured card (there is just missing the “icon” attribute, only needed to switch to another icon library) :

  1. type: 'custom:meteo-france-weather-card'
  2. name: Ville
  3. entity: weather.ville
  4. rainForecastEntity: sensor.ville_next_rain
  5. freezeChanceEntity: sensor.ville_freeze_chance
  6. rainChanceEntity: sensor.ville_rain_chance
  7. snowChanceEntity: sensor.ville_snow_chance
  8. thunderChanceEntity: sensor.ville_thunder_chance
  9. alertEntity: sensor.ville_weather_alert
  10. uvEntity: sensor.ville_uv