Coder Social home page Coder Social logo

lovelace-htc-flipclock-weather's Introduction

HomeAssistant HTC Flipclock with Weather card

HTC Flip clock with weather for Home Assistant

White theme

image

Dark theme

image

With custom entity

image

With a theme

image

Support

Hey dude! If you like it .. well ๐Ÿป or a โ˜• would be nice :D

coffee

Notes

This version requires jQuery (already in the package). I'll probably do a version with no jQuery without the flip clock animation.

Install

REQUIREMENTS

The time is based on time_date sensors. In order for the plugin to work you need to create the following sensors in your HA

platform: time_date
display_options:
    - time
    - date
    - date_time
    - date_time_utc
    - date_time_iso
    - time_date
    - time_utc
    - beat

CLI install

  1. Move into your config/www/custom_ui directory

  2. Download lovelace-htc-flipclock-weather repo and add the htc-weather to step 1 folder.

  3. Add a reference to htc-flipclock-weather.js inside your ui-lovelace.yaml or through the raw config editor gui.

    resources:
      - url: /local/custom_ui/htc-weather/htc-flipclock-weather.js?v1.2.0
        type: module

Simple install

  • Not yet available. I'll see how to upload it to HACS (Home Assistant Community Store)

Updating

  1. Simple, do the steps from CLI Install again :D

Using the card

Options

Card options

Name Type Default Description
type string required custom:htc-weather-card
entity string required The entity_id from an entity within the weather domain.
name string optional Set a custom name.
lang string optional Set a language (ro/en/nl/cz available).
am_pm string optional Set clock in AM/PM format.
svrOffset int optional If you need offset on time (seconds).
renderForecast bool optional Render forecast (only 4 days).
renderClock bool optional Render clock.
renderDetails bool optional Render sunt details and wind.
high_low_entity bool optional Replace high / low temperature with a custom entity. Params available entity_id, name. Default high / low temperature today
renderDetails bool optional Render sunt details and wind.
theme.name optional Change theme (default/dusk).
theme.weather_icon_set optional Change theme icon set. For default you have picto alternative. For dusk you have htc alternative

Example usage

Standard card

  type: 'custom:htc-weather-card'
  entity: weather.home
  sun: sun.sun

With custom high_low_entity entity

  type: 'custom:htc-weather-card'
  entity: weather.dark_sky
  sun: sun.sun
  high_low_entity:
    entity_id: sensor.time_utc
    name: UTC Time

Using a theme

  type: 'custom:htc-weather-card'
  entity: weather.dark_sky
  high_low_entity:
    entity_id: sensor.time_utc
    name: UTC Time
  renderForecast: true
  sun: sun.sun
  theme:
    name: dusk
    weather_icon_set: default

Using a theme with custom icons

  type: 'custom:htc-weather-card'
  entity: weather.dark_sky
  high_low_entity:
    entity_id: sensor.time_utc
    name: UTC Time
  renderForecast: true
  sun: sun.sun
  theme:
    name: dusk
    weather_icon_set: htc

Problems?

There might be :D .. So give me a shout for issues or even updates :D

License

This project is under the MIT license.

lovelace-htc-flipclock-weather's People

Contributors

iambib 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.