Skip to content

Weather Card with animated icons and graph for Home Assistant Lovelace

License

Notifications You must be signed in to change notification settings

bobzer/weather-card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lovelace animated weather card

Originally created for the old UI converted by @arsaboo and @ciotlosm to Lovelace and now converted to Lit to make it even better. Was merge with lovelace weather card chart to get graph and translation

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

Weather Card

Thanks for all picking this card up.

Installation:

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

HACS

The easiest way it's to HACS Add the repos address in settings : https://github.com/bobzer/weather-card

Hosted:

Add the following to resources in your lovelace config:

- url: https://cdn.jsdelivr.net/gh/bobzer/weather-card/dist/weather-card.min.js
  type: module

Manual:

  1. Download the weather-card.js to /config/www/custom-lovelace/weather-card/. (or an other folder in /config/www/)
  2. Save, the amCharts 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 to /config/www/custom-lovelace/weather-card/. (or the folder you used above)

Add the following to resources in your lovelace config:

resources:
  - url: /local/custom-lovelace/weather-card/weather-card.js
    type: module

Configuration:

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

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

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

type: custom:weather-card
entity: weather.yourweatherentity
icons: "/local/custom-lovelace/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 5 day forecast
type: custom:weather-card
entity: weather.yourweatherentity
current: true
details: false
forecast: true

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

About

Weather Card with animated icons and graph for Home Assistant Lovelace

Resources

License

Stars

Watchers

Forks

Packages

No packages published