iammexx / home-assistant-config

Files for my Home Assistant setup
75 stars 77 forks source link

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

Open stefancvetkovic opened 5 years ago

stefancvetkovic commented 5 years ago

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 commented 5 years ago

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

proddy commented 5 years ago

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 commented 5 years ago

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

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

titomontes commented 4 years ago

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

dlucre commented 4 years ago

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 commented 4 years ago

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

Bloodpack commented 4 years ago

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

Thanks

fiorentino77 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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!