8000 GitHub - toringer/home-assistant-metnowcast at v2.3.1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

toringer/home-assistant-metnowcast

Repository files navigation

home-assistant-metnowcast Validate with hassfest HACS Validation Maintenance home-assistant-metnowcast_downloads home-assistant-metnowcast_downloads

Met.no Nowcast component for Home Assistant

Add precipitation nowcast to your Home Assistant. This component will add a weather sensor with data from the met.no precipitation nowcast service.

The weather sensor holds precipitation data for the next 90 minutes. Detailed precipitation data is available in the forecast attribute.

Only available for locations in the Nordic area.

Installation

  • Ensure that HACS is installed.
  • In HACS / Integrations / menu / Custom repositories, add the url the this repository.
  • Search for and install the Met.no Nowcast integration.
  • Restart Home Assistant.

Configuration

Configuration of the integration is done through Configuration > Integrations where you enter coordinates.

Display precipitation

To display the precipitation data, use your choice of charting component.

Example configuration using chartjs-card

Replace <entity_id> with your entity id.

- chart: line
  data:
    datasets:
      - backgroundColor: rgb(255, 99, 132)
        fill: true
        borderWidth: 0
        cubicInterpolationMode: monotone
        data: >-
          ${states[<entity_id>].attributes.forecast.map(cast =>
          ({x: new Date(cast.datetime).getTime(),y:
          parseFloat(cast.precipitation)}))}
        label: Precipitation
    labels: >-
      ${states[<entity_id>].attributes.forecast.map(cast => new
      Date(cast.datetime).toTimeString())}
  custom_options:
    showLegend: false
  options:
    elements:
      point:
        radius: 0
    scales:
      x:
        display: false
      'y':
        beginAtZero: true
        display: false
    plugins:
      title:
        display: false
        text: Precipitation
  entity_row: false
  type: custom:chartjs-card

Precipitation chart

About

Met.no Nowcast component for Home Assistant

Topics

Resources

License

Stars

Watchers

Forks

383C

Contributors 2

  •  
  •  
0