Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom element doesn't exist: 'custom:dark-sky-weather-card' #27

Open
stefancvetkovic opened this issue Jun 7, 2019 · 10 comments
Open

Comments

@stefancvetkovic
Copy link

I've read this

But I still have hard times to make it work.
any hints?
my ui-lovelace.yaml looks like:

title: My Awesome Home
resources:
  - url: /local/custom_ui/dark-sky-weather-card.js?v=7.1
  #- url:  https://unpkg.com/@polymer/lit-element@^0.5.2/lit-element.js?module
  type: module
views:
  - title: main
    icon: mdi:home-outline
    cards:
      - type: 'custom:dark-sky-weather-card'
        title: Test
       
@stefancvetkovic
Copy link
Author

Also, I added all by documentation..www folder with custom_ui and pasted script from git

@proddy
Copy link

proddy commented Jun 7, 2019

anything in the log? I have the same problem and in my log it says: http://nuc:8123/local/custom_ui/dark-sky-weather-card.js?v=0.10.2:7:1 Uncaught SyntaxError: Unexpected token <

I still haven't been able to figure out what is broken

@stefancvetkovic
Copy link
Author

here is my log:
https://pastebin.com/3sWUrVY3

seems that I can't obtain data with my API key?

@titomontes
Copy link

I´m having the same exact issue;
@iammexx , is there anything on this?

@dlucre
Copy link

dlucre commented Oct 16, 2019

I had this issue too, but somehow managed to solve it.
I made two changes, first was removing the version number from the lovelace yaml file as below, the second is that I copied and pasted from github using the Configurator. Since it wasn't working, I deleted the file that I copy and pasted the contents in to, and instead uploaded the .js file from my computer.

I don't know what fixed it, but it's working now.

resources:
- type: module
url: /local/custom_ui/dark-sky-weather-card.js

My card looks like:
type: 'custom:dark-sky-weather-card' entity_current_conditions: sensor.dark_sky_icon entity_temperature: sensor.dark_sky_temperature entity_forecast_high_temp_1: sensor.dark_sky_daytime_high_temperature_1d entity_forecast_high_temp_2: sensor.dark_sky_daytime_high_temperature_2d entity_forecast_high_temp_3: sensor.dark_sky_daytime_high_temperature_3d entity_forecast_high_temp_4: sensor.dark_sky_daytime_high_temperature_4d entity_forecast_high_temp_5: sensor.dark_sky_daytime_high_temperature_5d entity_forecast_icon_1: sensor.dark_sky_icon_1d entity_forecast_icon_2: sensor.dark_sky_icon_2d entity_forecast_icon_3: sensor.dark_sky_icon_3d entity_forecast_icon_4: sensor.dark_sky_icon_4d entity_forecast_icon_5: sensor.dark_sky_icon_5d entity_forecast_low_temp_1: sensor.dark_sky_overnight_low_temperature_0d entity_forecast_low_temp_2: sensor.dark_sky_overnight_low_temperature_1d entity_forecast_low_temp_3: sensor.dark_sky_overnight_low_temperature_2d entity_forecast_low_temp_4: sensor.dark_sky_overnight_low_temperature_3d entity_forecast_low_temp_5: sensor.dark_sky_overnight_low_temperature_4d entity_summary_1: sensor.dark_sky_summary_1d entity_summary_2: sensor.dark_sky_summary_2d entity_summary_3: sensor.dark_sky_summary_3d entity_summary_4: sensor.dark_sky_summary_4d entity_summary_5: sensor.dark_sky_summary_5d entity_sun: sun.sun entity_visibility: sensor.dark_sky_visibility entity_daytime_high: sensor.dark_sky_daytime_high_temperature_0d entity_wind_bearing: sensor.dark_sky_wind_bearing entity_wind_speed: sensor.dark_sky_wind_speed entity_humidity: sensor.dark_sky_humidity entity_pressure: sensor.dark_sky_pressure entity_apparent_temp: sensor.dark_sky_apparent_temperature entity_daily_summary: sensor.dark_sky_daily_summary entity_pop: sensor.dark_sky_precip_probability entity_pop_intensity: sensor.dark_sky_precip_intensity entity_pop_1: sensor.dark_sky_precip_probability_1d entity_pop_2: sensor.dark_sky_precip_probability_2d entity_pop_3: sensor.dark_sky_precip_probability_3d entity_pop_4: sensor.dark_sky_precip_probability_4d entity_pop_5: sensor.dark_sky_precip_probability_5d

@fiorentino77
Copy link

Same issue here.
@iammexx could you help me please?
Thanks in advance

@Bloodpack
Copy link

Same issue here....
can anybody help???

Thanks

@fiorentino77
Copy link

Same issue here....
can anybody help???

Thanks

I've solved it changing file version.
Fe
- type: module url: /local/custom_ui/dark-sky-weather-card.js?v=7.1

change in

- type: module url: /local/custom_ui/dark-sky-weather-card.js?v=7.2

Try it and let me know.
Regards

@Bloodpack
Copy link

I've solved it changing file version.
Fe
- type: module url: /local/custom_ui/dark-sky-weather-card.js?v=7.1

change in

- type: module url: /local/custom_ui/dark-sky-weather-card.js?v=7.2

Try it and let me know.
Regards

Thank you for your help but for me it does not work

Regards

@TrueOsiris
Copy link

Are you using a reverse proxy?
I have the same issue when accessing my gui from outside my lan!
When on my home network, even when using the reverse proxy url in my iphone ap or on a local pc, the card works.
From the outside, I can see everything besides this custom card!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants