Git Product home page Git Product logo

lovelace-nonow-calendar's Introduction

Lovelace Nonow Calendar

A custom Lovelace component for displaying a calendar for Home Assistant.

Current version: 0.0.1

Screenshots

Overview

Install

Simple install

  1. Download and copy lovelace-nonow-calendar.js into your config/www directory.

  2. Add a reference to lovelace-nonow-calendar.js inside your ui-lovelace.yaml.

resources:
  - url: /local/lovelace-nonow-calendar.js?v=0.0.1
    type: module

Installation using Git

Clone this repository into your config/www folder using git.

$ git clone https://github.com/brunosabot/lovelace-nonow-calendar.git

Add a reference to the card in your ui-lovelace.yaml.

resources:
  - url: /local/lovelace-nonow-calendar/lovelace-nonow-calendar.js?v=1
    type: module

Updating

  1. Find your lovelace-nonow-calendar.js file in config/www or wherever you ended up storing it.

  2. Replace the local file with the latest one attached in the here: lovelace-nonow-calendar.js.

  3. Change the version number with the new one to the end of the cards reference url in your ui-lovelace.yaml like below.

resources:
  - url: /local/lovelace-nonow-calendar.js?v=0.0.2
    type: module

You may need to empty the browsers cache if you have problems loading the updated card.

Using the card

Options

Card options

Name Type Default Since Default Description
type string required v0.0.1 custom:lovelace-nonow-calendar
entities string required v0.0.1 A list of calendar entities
daysToShow integer optional v0.0.1 7 How many day to show in the calendar
loadingMessage string optional v0.0.1 Loading... The loading message
noEventMessage integer optional v0.0.1 No upcoming event The message display when there is no events
title integer optional v0.0.1 Calendar The card title
showColor integer optional v0.0.1 true Show the color chip in the calendar view
showLocation integer optional v0.0.1 true Show the event location in calendar view

Entities

Name Type Default Since Default Description
entity string required v0.0.1 A calendar entity
color string optional v0.0.1 auto-generated The calendar associated color

Example usage

Simple usage

- type: custom:lovelace-nonow-calendar
  entities:
    - entity: calendar.my_calendar_name

Advanced configuration

- type: custom:lovelace-nonow-calendar
  daysToShow: 2
  loadingMessage: Work in progress...
  noEventMessage: Nothing yet.
  title: Nonow's calendar
  showColor: false
  showLocation: false
  entities:
    - entity: calendar.my_calendar_name
      color: "rgb(64, 189, 245)"

License

This project is under the MIT licence

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.