Code Monkey home page Code Monkey logo

Comments (5)

saper-2 avatar saper-2 commented on July 17, 2024 4

Hello,

I got the same issue and I was thinking that it's not working too (the js module not being loaded/loaded correctly) - but it loads (web browser dev tools show that the js is loaded with HTTP/200 OK).

The dual-gauge-card just won't show up in the card list - you have to enter it's code manually 😞 ...

obraz

Here is a short "guide":

  1. copy the dual-gauge-card.js into config/www/ ,
  2. Next add resource, go to config -> Lovelace Dashborads -> tab Resources,
  3. click Add Resource
  4. Set fields:
    url: /local/dual-gauge-card.js (eventually adjust path to your HA system)
    Resource type: JavaScript Module (should set automatically)
  5. Now go to Dashboard that you want put the dual gauge,
  6. From list of available cards at the very end there is button: Need to add a custom card or just want to manually write the YAML? , use it. Should open editor, with empty type: ''
    Use the code as base, you have to adjust entities and other parameters to fit your need:
type: 'custom:dual-gauge-card'
title: Test 1
outer:
  entity: sensor.zewnatrz
  unit: °C
  min: -20
  max: 60
inner:
  entity: sensor.zewnatrz_2
  min: 0
  max: 100
  unit: '%'

Everything is down to manually edit card YAML and set type to custom:dual-gauge-card to get this card to work.

I guess this should be mentioned in README.md .

from dual-gauge-card.

myca5a avatar myca5a commented on July 17, 2024

Hello
The same issue !
However I have files in /config/www/community/dual-gauge-card

from dual-gauge-card.

DrNam1225 avatar DrNam1225 commented on July 17, 2024

Check if you added "url" in ui-lovelace.yaml.

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

from dual-gauge-card.

myca5a avatar myca5a commented on July 17, 2024

No change

from dual-gauge-card.

DGF117 avatar DGF117 commented on July 17, 2024

Thanks for your solution !

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.