Giter Site home page Giter Site logo

ha-nfl-card's Introduction

Home Assistant NFL Card

A Home Assistant frontend custom card for the ha-nfl integration.

   PREGAME

pregame

   IN GAME

ingame

   POSTGAME

postgame

   BYE

bye

HACS Installation

  • In the HACS UI, click the 3 dots in the upper right
  • Click 'Add Custom Repository'
  • Fill in the repo url https://github.com/D34DC3N73R/ha-nfl-card and choose 'Lovelace' category.
  • install the custom card
  • Add the following to your resources
url: /hacsfiles/ha-nfl-card/ha-nfl-card.js
type: module

Manual Installation

  • Download ha-nfl-card.js
  • Copy to www/community/ha-nfl-card/ (make the ha-nfl-card directory)
  • Add the following to your resources
url: /hacsfiles/ha-nfl-card/ha-nfl-card.js
type: module

Options

Name Description Default Required Values
entity Name of ha-nfl sensor sensor.nfl Yes Valid sensor
outline Outline team colors (helpful w/ dark themes) false No true false
outline_color Specifies outline color. white No CSS color or hex value

Examples

type: 'custom:nfl-card'
entity: sensor.nfl
outline: true
outline_color: deeppink

example

type: 'custom:nfl-card'
entity: sensor.nfl
outline: true
outline_color: '#ffe500'

example2

Minimal Required Configuration

type: 'custom:nfl-card'
entity: sensor.nfl

Where sensor.nfl is the sensor name from the ha-nfl integration.

ha-nfl-card's People

Contributors

d34dc3n73r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

vasqued2

ha-nfl-card's Issues

Team rotation in one card

Would it be possible to have multiple team sensors within one card? Like maybe rotate them based on a set time?

Getting a "custom element doesn't exist: nfl-card" error message for the NFL Card

Hi there - love your card, have been using it for the past year or so, and noticed that it stopped working in HASS for me over one of the past HASS version updates. I am currently on 2023.10.2 and Hass OS 10.4 and the NFL-Card version .83.

I noticed the above error message on my dashboard. So I confirmed everything looked correct, the repo was still in as a custom repo in HACs, the files were in the correct directory, and I have the custom element added (nothing changed).

I decided to uninstall and delete everything (HACS Custom Card + custom element) and reinstalled the custom card and when I did that, I noticed the URL was automatically added to custom elements but the URL is showing as "/hacsfiles/ha-nfl-card/ha-nfl-card.js?hacstag=411167091038" instead of what is listed in your instructions (/hacsfiles/ha-nfl-card/ha-nfl-card.js). After this, the card still isn't loading.

So I edited the URL that had the extra stuff at the end and made it match your instructions.

Card still isn't loading.

Then manually downloaded the card to see if that would change anything and it didn't.

Any thoughts?

image
image
image
image

Override past vs next game?

This is AWESOME. I have the card in a test dash right now and it's Tuesday, so I'm seeing the post-game view.

Is there a way to manually force it to move to the pre-game view?

Alternatively, is there a way to support secondary info?

Full Kiosk

First of all, EXCELLENT card.
I would love to make this visible in a full kiosk mode so we can use it on our Google Assistant.

Suggestions on how to d this?

Team Logos Overlapping Tab Labels and other pop-up Cards

The 2023.5 HA release changed the z-index of several UI components on the front end and using a z-index of 99 for the card-content causes it to be in front of everything else in the window. You can recreate it by triggering a popup or scrolling the card over the tab labels after upgrading to 2023.5.x.

Changing it to 1 seems to fix the problem.

Examples from my issues log: vasqued2#53

Repository structure for v0.3.7 is not compliant

Trying to add to HACS and receive the following error.

<Integration D34DC3N73R/ha-nfl-card> Repository structure for v0.3.7 is not compliant

I'm running the following version of HA on Raspberry Pi 4B
Home Assistant 2022.9.5
Supervisor 2022.09.1
Operating System 9.0
Frontend 20220907.2 - latest

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.