Skip to content

SweVictor/v-weather-card

 
 

Repository files navigation

Lovelace animated weather card

Improved version of weather card to support new hourly forecasts in Home Assistant 2023 and forward. Also inspired by the fork Carte Lovelace Météo France.

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

Weather Card

Installation:

You have 2 main options, HACS or manual.

HACS (recommended):

Install this repo as a custom repository in HACS: https://github.com/SweVictor/v-weather-card.

Manual:

Download the contents of the dist folder to /config/www/community/v-weather-card/. (or an other folder in /config/www/)

Add resources

Add the following to resources in your lovelace config (typically /config/lovelace.yaml):

resources:
  - url: /hacsfiles/v-weather-card/v-weather-card.js
    type: module

Configuration:

And add a card with type custom:v-weather-card:

type: custom:v:weather-card
entity: weather.yourweatherentity
name: Optional name

If you want to use your local icons add the location to the icons:

type: custom:v-weather-card
entity: weather.yourweatherentity
icons: "/local/custom-components/v-weather-card/icons/"

You can choose wich elements of the weather card you want to show:

The 3 different rows, being:

  • The current weather icon, the current temperature and title
  • The details about the current weather
  • The X day forecast or hourly forecast
type: custom:v-weather-card
entity: weather.yourweatherentity
current: true
details: false
forecast: true
hourly_forecast: false
number_of_forecasts: 5

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

# Example configuration.yaml entry
sun:

Dark Sky:

When using Dark Sky you should put the mode to daily if you want a daily forecast with highs and lows.

# Example configuration.yaml entry
weather:
  - platform: darksky
    api_key: YOUR_API_KEY
    mode: daily

OpenWeather Map:

When using OpenWeather map you can select hourly(default) or daily forecast to show.

# Example configuration.yaml entry
weather:
  - platform: openweathermap
    api_key: YOUR_API_KEY

About

Weather Card with animated icons for Home Assistant Lovelace

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 75.3%
  • JavaScript 24.7%