Code Monkey home page Code Monkey logo

Comments (6)

bramkragten avatar bramkragten commented on July 3, 2024

The weather card works, your setup is just not right.

Please share your complete config including paths you placed the files and resources config.

from custom-ui.

dominikheinz avatar dominikheinz commented on July 3, 2024

I placed all files from the repo under /config/www/custom-lovelace/weather-card, that includes:
weather-card-editor.js
weather-card.js
and a folder icons, with all the animated svg icons inside.
I added the resources to the very top of the ui-lovelace.yaml in the config folder:

resources:
  - url: /local/custom-lovelace/weather-card/weather-card.js
    type: module

title: Home
views:
  - badges: []
    cards:
      - entity: light.nightlight
        name: Nightlight
        type: light
# ... more devices ...

The UI element has been added via the UI configuration by selecting manual card.

Did I link the resources section in the wrong file?

from custom-ui.

bramkragten avatar bramkragten commented on July 3, 2024

Do you have:

lovelace:
  mode: yaml

in configuration.yaml?

from custom-ui.

bramkragten avatar bramkragten commented on July 3, 2024

You can't use ui-lovelace.yaml and the UI editor at the same time. If you use the UI editor add the resources with the raw config editor in the UI.

from custom-ui.

dominikheinz avatar dominikheinz commented on July 3, 2024

Alright, I added the resource via the raw config editor in the UI.
I also made sure that mode: yaml is not set in the configuration.yaml
When I do that I don't get the custom card error but the card just stays invisible.
image
Nothing is showing up on the UI. What could cause this?

from custom-ui.

bramkragten avatar bramkragten commented on July 3, 2024

Cleared the cache? Any errors in the console?

from custom-ui.

Related Issues (20)

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.