Lovelace: Weather card with chart

Hi Silicon_Avatar,

Yes, mentioned above by me. And issue reported by me as well :slight_smile:
However, I noticed that there are two similar cards.

The one with the issue fixed is:
https://github.com/Yevgenium/lovelace-weather-card-chart

And I am looking for the fix in:
https://github.com/bobzer/weather-card

I also opened an issue on this different branch. I tried applying the same fix, but the code is different and it didnā€™t work.

:laughing: :laughing:

Sorry, I havent had my coffee yet.

Iā€™ll try and take a look at that one tonight to see why the original fix doesnt work for it.

1 Like

Thanks mate :wink:

I have exchanged the modified *.js file ā€¦ unfortunately this does not solve the problem. The chart is still not displayed ā€¦

I renamed the other file in that directory and that solved my problem

1 Like

You are right ā€¦ this is how it works. Thanks for the info!

Now Iā€™m not following. Iā€™m using https://github.com/bobzer/weather-card as @sergio_pt. The other one, https://github.com/bobzer/weather-card is fixed but not the one I use.
Did you solve the issue in https://github.com/bobzer/weather-card?

Hi Again,
Iā€™m sure itā€™s been asked before and maybe already answered but I didnā€™t find any answer.
This is a bit frustrating. I had an SD-card failure and my last snapshot was over a year old so I lost my configs where I had the custom weather card working. Now when re-engineering the configs I donā€™t manage to get the custom card working. Get the famous ā€œCustom element doesnā€™t exist: weather-card-chart.ā€.

Config:

resources:
  - url: '/hacsfiles/lovelace-weather-card-chart/weather-card-chart.js'
    type: module

...
- type: 'custom:weather-card-chart'
  title: Weather
  weather: weather.smhi_home

What is going on?
Note: I added the repo as a custom repo

in HACS and installed the weather card chart from there.

Any help is highly appreciated.

SOLVED: Found the answer, keep my post if someone else have the same issue even though itā€™s been answered beforeā€¦
The resources section has moved from the ui-lovelace.yaml to the configuration.yaml:-)
Strange that my old config worked before the SD-card breakdown though.

I also have the fix from the .27 version, cleared caches and did refresh from ā€¦ menu, but still no graphs on .115.5ā€¦ :-(. I went and manually verified that I had the same changes included in PR#43, and I doā€¦ But no graphā€¦

If youā€™re using nginx (or another proxy) see if you have caching content enabled there. I did on mine, and it took me a while to see that this was the reason it wasnt working even after the changes and cache clearing on my local browser.

You can also try accessing it via the local IP (and not the URL) since this should bypass the proxy server, and see if itā€™s still broken.

No proxy, already accessing with local IPā€¦ also tried via Nabu Casa. Itā€™s not working on any of 5 devices running 3 OSes and combination of local and remote URL. I even tried it on a brand new computer with a browser that had never connected to my dashboard before.

Actually I just noticed that it does actually work for my daily card using open weather map, but not my hourly card using dark sky. Must be something either with the daily view or dark sky.

- type: 'custom:weather-card-chart'
    title: Weather Today
    weather: weather.openweathermap
    sun: sun.sun
    mode: hourly

  - type: 'custom:weather-card-chart'
    title: Weather This Week
    weather: weather.weather_forecast
    sun: sun.sun

I am getting this error in the logs, maybe related to the aboveā€¦ Anyone have an idea why?

Logger: frontend.js.latest.202010012
Source: components/system_log/__init__.py:193
First occurred: 9:58:24 PM (19 occurrences)
Last logged: 9:58:41 PM
http://10.10.10.20:8123/hacsfiles/lovelace-weather-card-chart/weather-card-chart.js:298:43 Uncaught TypeError: Cannot read property 'forecast' of undefined 

Iā€™m running into the Custom element doesn't exist: weather-card-chart. error some other users have found. Iā€™m probably overlooking something small but I just canā€™t figure out what it is. I have the js file from the repo in my config/www folder.

configuration.yaml:

lovelace:
  resources:
    - type: module
      url: /local/weather-card-chart.js

ui-lovelace.yaml:

title: Home
views:
  - title: Test
    path: test
    badges: []
    cards:
      - type: 'custom:weather-card-chart'
        title: Weather
        weather: weather.openweathermap

Hi all, has anyone gotten the rain bar chart to show on an hourly forecast using Dark Sky? Iā€™m just not a good enough programmer to figure out why this isnā€™t working.

Iā€™m using DarkSky still and itā€™s working fine for me.

Yean but thatā€™s the card for a whole week, mine is for a single day. Mine works for a whole week too, but not for just a day with the hourly forecast.

I have a problem when I agree the card:

type: ā€˜custom:weather-cardā€™
entity: weather.openweathermap

Iā€™m using openweathermap and dafault card woking ok

Having the exact same issue and cant find an answer anywhere.

Made it work again. Just fixed the card config.

Hello I like your weather chard, can you share your js file?