Code Monkey home page Code Monkey logo

Comments (10)

KTibow avatar KTibow commented on July 17, 2024 1

It's not adding an error for me, try manually adding /hacsfiles/dual-gauge-card/dual-gauge-card.js. Time to close @Rocka84?

from dual-gauge-card.

Rocka84 avatar Rocka84 commented on July 17, 2024

After having a closer look at this, I see this as an enhancement, not a bug. Installation via HACS works fine, it just doesn't tell you that this is of type: js.
I'll add a note to the readme until I figure out how to become fully compatible with HACS.

from dual-gauge-card.

bepstein111 avatar bepstein111 commented on July 17, 2024

Screenshot_2019-11-04_17-20-19
Not sure if related, or if I'm a big dummy, but after installing via HACS, it's not liking anything I put for type.

from dual-gauge-card.

bepstein111 avatar bepstein111 commented on July 17, 2024

Don't remember how, but I figured my thing out, turns out I was just being a big dummy

from dual-gauge-card.

marmao78 avatar marmao78 commented on July 17, 2024

I install HACS, install dual-gauge frontend, and try to add url and type in all places in ui-lovelace file. Still not working.
Maybe I´m doing something wrong, please help. I´m facing the following error.
Value is not accepted, Valid values: "iframe"
error

from dual-gauge-card.

KTibow avatar KTibow commented on July 17, 2024

from dual-gauge-card.

marmao78 avatar marmao78 commented on July 17, 2024

In the instructions, it mentions adding the following information in the ui-lovelace.yaml

  • url: /community_plugin/dual-gauge-card/dual-gauge-card.js
    type: js

But I´m not sure where to add these commands?
If I add in the beginning of ui-locelace.yaml it shows the following error:
error2

If I add the commands included in the card configuration it shows the first error.

But both of them show the following error when I try to refresh the screen.
error3

I will be glad if you can share an example where do I add these commands?

from dual-gauge-card.

marmao78 avatar marmao78 commented on July 17, 2024

I finally found the issue.
In configuration.YAML you should add on top the following information bellow.

lovelace:
mode: yaml
resources:
- url: /local/community/dual-gauge-card/dual-gauge-card.js
type: module

The instruction tells me to use type: js, but I always got an error. So I use type: module and it works.

from dual-gauge-card.

KTibow avatar KTibow commented on July 17, 2024

What error do you get? It's definitely not CSS, JS should work.

from dual-gauge-card.

marmao78 avatar marmao78 commented on July 17, 2024

Sorry. I used type: module.
I correct my comment on the top.
The error that I was facing is on comments on top.
When I use type: js, it shows an error (print screen on top). With type: module work just fine.

from dual-gauge-card.

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.