Giter Site home page Giter Site logo

Comments (2)

wabbastang avatar wabbastang commented on August 20, 2024

I thought I was having the same issue, blank card. I also was trying to use card-mod but it wouldn't work, would throw an error ("i.setConfig not valid" or something long those lines), so I removed that and stripped out the style section. At that point the error messages stopped but it appeared to be showing a blank card. However it occurred to me it might just not be visible, so highlighted the card dragging the cursor down from "route to" and sure enough, there was my travel times, white on white. So for me it is a formatting issue, not the waze card itself.

from ha-card-waze-travel-time.

r-renato avatar r-renato commented on August 20, 2024

hi, probably it is a colors issue.
Try to use the following configuration:

type: custom:mod-card
card:
	type: 'custom:ha-card-waze-travel-time'
	header: false
	name: Route to...
	unit: mi
	columns:
	  - from
	  - to
	  - duration
	  - distance
	  - icon
	destinations:
	  - entity: sensor.to_work
	    from: Home
	    to: Work
	  - entity: sensor.to_home
	    to: Home
style: |
  ha-card {
    --primary-text-color: #FFFFFF;
    --secondary-text-color: #727272;
    --text-primary-color: #ffffff;
    --disabled-text-color: #bdbdbd;
    background-image: url("/local/imgs/card_back.png")
    background-repeat: no-repeat
    background-color: rgba(50,50,50,0.3)
    background-size: 100% 300px
    border-radius: 20px
    border: solid 1px rgba(100,100,100,0.3)
    box-shadow: 3px 3px rgba(0,0,0,0.4)
  } 

You can change the card colors as you like.
Thanks, Renato

from ha-card-waze-travel-time.

Related Issues (17)

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.