Giter Site home page Giter Site logo

weather-chart-card's Introduction

Weather Chart Card

Buy me a coffee

hacs_badge GitHub release (latest by date) GitHub downloads GitHub release (latest by SemVer including pre-releases) HACS Validate maintained

weather-chart-card

Installation

HACS --Comming Soon!-- (recommended)

This card is available in HACS (Home Assistant Community Store). HACS is a third party community store and is not included in Home Assistant out of the box.

HACS Custom (recommended untill available in HACS default)

  1. Go to any of the sections (integrations, frontend).
  2. Click on the 3 dots in the top right corner.
  3. Select "Custom repositories"
  4. Add the URL to the repository: https://github.com/mlamberts78/weather-chart-card
  5. Select the category "Lovelace".
  6. Click the "ADD" button.

Manual install

  1. Download and copy weather-chart-card.js from the latest release into your config/www directory.

  2. Add the resource reference as decribed below.

Add a reference to the copied file inside your configuration.yaml or in the Home Assistant UI:

Open your Home Assistant instance and show your Lovelace resources.

# Example Lovelace UI config entry
resources:
- type: module
  url: /local/weather-chart-card.js

Then you can add the card to the view:

# Example Lovelace UI config entry
type: custom:weather-chart-card
entity: weather.home

Configuration variables:

Card options
Name Type Default Description
type string Required Should be custom:weather-chart-card.
entity string Required An entity_id with the weather domain.
temp string none An entity_id for a custom temperature sensor.
press string none An entity_id for a custom pressure sensor.
humid string none An entity_id for a custom humidity sensor.
title string none Card title.
show_main boolean true Show or hide a section with current weather condition and temperature.
show_attributes boolean true Show or hide a section with attributes such as pressure, humidity, wind direction and speed, etc.
show_time boolean false Show or hide the current time on the card.
show_day boolean false Show or hide the current day on the card. (Only visible when show_time is true.)
show_date boolean false Show or hide the current date the card. (Only visible when show_time is true.)
show_humid boolean true Show or hide humidity on the card.
show_pressure boolean true Show or hide pressure on the card.
show_wind_direction boolean true Show or hide wind_direction on the card.
show_wind_speed boolean true Show or hide wind_speed on the card.
icons string none Path to the location of custom icons in svg format, for example /local/weather-icons/.
icons_size number 25 The size of custom icons in pixels.
forecast object none See forecast options for available options.
units object none See units of measurement for available options.
Forecast options
Name Type Default Description
labels_font_size string 11 Font size for temperature and precipitation labels.
temperature1_color string rgba(255, 152, 0, 1.0) Temperature first line chart color.
temperature2_color string rgba(68, 115, 158, 1.0) Temperature second line chart color.
precipitation_color string rgba(132, 209, 253, 1.0) Precipitation bar chart color.
condition_icons boolean true Show or hide forecast condition icons.
show_wind_forecast boolean true Show or hide wind forecast on the card.
round_temp boolean false Option for rounding the forecast temperatures
Units of measurement
Name Type Default Description
pressure string 'hPa' Can be 'hPa' or 'mmHg'
speed string 'km/h' Can be 'km/h' or 'm/s' or 'Bft'
What custom icons can I use?

Icons should be in svg format. Icons should have names as shown here. Example: 130360372-76d70c42-986c-46e3-b9b5-810f0317f94f

Example usage:

Card with current time, date and day

Time

type: custom:weather-chart-card
entity: weather.my_home
show_time: true
show_date: true
show_date: true
units:
  speed: Bft
Chart only

Chart-only

type: custom:weather-chart-card
entity: weather.my_home
show_main: false
show_attributes: false
forecast:
  condition_icons: false
  show_wind_forecast: false
Custom units

Units

type: custom:weather-chart-card
entity: weather.my_home
units:
  pressure: mmHg
  speed: m/s
Supported languages:

Czech
Danish
Dutch
English
Finnish
French
German
Greek
Hungarian
Italian
Norwegian
Polish
Portuguese
Russian
Spanish
Swedish

weather-chart-card's People

Contributors

mlamberts78 avatar yevgenium avatar koying avatar knxbroker avatar andras-tim avatar scstraus avatar troinine avatar einschmidt avatar cjuette avatar vmonkey avatar revin34 avatar yuri-vashchenko avatar the-louie avatar siliconavatar avatar rsnodgrass avatar lissmeister avatar mickemartinsson avatar alexandrefoley avatar adrianbyv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.