Makin-Things / bom-radar-card

A rain radar card using the new tiled images from the Australian BOM
https://github.com/makin-things/bom-radar-card
MIT License
98 stars 9 forks source link

Error: Custom element doesn't exist: bom-radar-card #3

Closed Tovrin closed 3 years ago

Tovrin commented 3 years ago

I've just installed the card and am getting the following:

Custom element doesn't exist: bom-radar-card.

type: 'custom:bom-radar-card' frame_count: 10 center_latitude: xxxxx (proper co-ords are here) center_longitude: xxxxx marker_latitude: xxxxx marker_longitude: xxxxx show_marker: true show_range: true show_zoom: true show_recenter: true show_playback: true zoom_level: 4

My configuration.yaml includes the following:

**lovelace: mode: yaml resources:

frontend: javascript_version: auto

The file structure is:

config |-- www |---- bom-radar-card |------ bom-radar-card.js |------ home-circle-dark.svg |------ home-circle-light.svg |------ leaflet.css |------ leaflet.js |------ leaflet.toolbar.min.css |------ leaflet.toolbar.min.js |------ pause.png |------ play.png |------ radar-colour-bar.png |------ recenter.png |------ skip-back.png |------ skip-next.png

I'm not sure I know what I'm doing wrong. Please help.

Tovrin commented 3 years ago

Hi again. The "Error: Custom element doesn't exist: bom-radar-card" came good overnight (go figure), but I'm just getting a blank map with a white bar at the bottom.

What have I done wrong?

theOzzieRat commented 3 years ago

There is a problem with the card finding the resources it needs when not installed using HACS (ie. different paths to things). I will try and fix over the next few days, but in the meantime I would suggest using HACS to install it. That also gives you the added bonus of having easy upgrades when they happen.

Tovrin commented 3 years ago

I would have used HACS but I can't seem to find it there.

theOzzieRat commented 3 years ago

You just need to add https://github.com/theOzzieRat/bom-radar-card as a custom repository. Click the 3 dots up the top right afer going into HACS.

Tovrin commented 3 years ago

Awesome. Thanks! Works perfectly now :)

EvanJ85 commented 3 years ago

You just need to add https://github.com/theOzzieRat/bom-radar-card as a custom repository. Click the 3 dots up the top right afer going into HACS.

Can I suggest you add this explicit instruction to the Install section, for others who are noobs like me? Thank you for this amazing card.

theOzzieRat commented 3 years ago

README updated in 1.2.12.