Coder Social home page Coder Social logo

tam-lin / appdaemon_weatherentity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vche/appdaemon_weatherentity

0.0 0.0 0.0 117 KB

Appdaemon widget for displaying homeassistant weather entities in dashboards

License: GNU General Public License v3.0

CSS 11.65% HTML 46.73% JavaScript 41.62%

appdaemon_weatherentity's Introduction

Description

Base weather widget for appdaemon homeassistant dashboards.

Based on the appdaemon weather official widget, this extends it by allowing to get weather from a weather entity in addition to sensors. This avoids having to declare sensors, often specifics to each provider, and use directly the homeassistant weather entity. This makes the feature more generic (currently tested with openweathermap).

In addition, this version also adds the feature to display up to 4 days/hours of forecast. This is fully compliant with the official base widget, so any working configuration will also work with this widget.

Note: For 2x2 widget, only 1 forecast should be used with a 120x120 widget. Up to for can be used in 3x2.

3x2 widget with 4 forecasts

2x2 widget with 1 forecasts

Configuration

The configuration is almost identical to the official daemon, with the following differences:

  • entity: Can be specified in place of entities to use a weather entities instead of a sensor list
  • show_forecast can be set to the number of forecasts to displqy (up to 4, 0 = no forecast)

Example configuration

openweathermap:
  title: Now
  widget_type: weatherentity
  entity: weather.openweathermap
  show_forecast: 4
  prefer_icons: 1
  # Units as configured in homeassistant
  units: "°C"
  wind_unit: "km/h"
  pressure_unit: "hPa"
  rain_unit: "%"

layout:
    - label(2x2),openweathermap(3x2)

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.