Openweather may not be passing templow
and visibility
information, hence the undefined
. You can try to modify the .js file to include that information from other sources.
Has anyone edited this for use with Dark Sky? I know NOTHING about Javascript or I would just do it myself.
yes because I am that ass that doesnāt know how to search. Thank you
yay trying the dark sky version now
Hi guys, Iām having issues getting this to load. When following instructions above, and loading lovelace I get an error saying āservice system_log/write calledā and screen goes blank. Checking the tab for info it gives:
āhttps://domaingoeshere.duckdns.org:8123/local/custom_ui/weather-card.js?v=1:73:37 Uncaught TypeError: Cannot read property āstateā of undefinedā
any ideas? Yahoo sensor is running as it shouldā¦
Hello Guys, i have the same error mentioned here before: Custom element dosenāt exist
And in Logs http://x.x.x.x:8123/local/custom_ui/weather-card.js:7:1 Uncaught SyntaxError: Unexpected token <
Any thoughts
Hi again all - just a quick info post for the ones that are having the same issue as above. Make sure you are using the WEATHER sensor, and not just a normal yweather sensor for this. I made that mistake. It should look like this in config:
weather:
- platform: yweather
woeid: "yourid"
@ciotlosm - sorry for the confusion, but hopefully it helps others
Nice, works great. Got it working in under 5 min. Animations are awesome too.
In macOS Safari it works
In Android Google Chrome it works
But in macOS Google Chrome it doesnāt work.
What could be the reason?
great job guys!
looks amazing and very easy to setup
thanks
Sorry to say but this code(lovelace code) is a mess trying for 3 days to make it work but it gives error after error. is not following the correct format and it was not cleaned having garage sensors and so on. Too bad the idea is great but the implementation is poor
Iām not sure why you are running into errorsā¦ The code is far from a mess, it works for many people. What issues are you having?
First i got the unexpected token error manage to fix that, then got: https://xxxx:8123/local/custom_ui/weather-card.js?v=1:73:37 and modifed the code every way posibile still no luck
I got this working in under 5 minutes by following the directions in the original post. And I have very limited knowledge when it comes to js and css.
Hereās what Iād like you to answer:
EDIT:
-
Are you up to date on home assistant? I.E. v 0.74
-
Are you using the up to date files linked in the original post? These files change on a regular basis when issues arise with people.
-
When you downloaded the weather-card.js and weather-card.css, did you download them in raw format and name them correctly?
-
Did you place the files into
www\custom_ui\
directory? -
Did you download the required icons and place them into the
www\icons\weather_icons\animated
directory? -
When you unzip the icons, did you place the images from the unzipped/animated folder into the
www\icons\weather_icons\animated
directory? -
In your ui-lovelace.yaml, did you correctly call out the resource?
resources:
- url: /local/custom_ui/weather-card.js
type: js
- Did you properly add the card to a view?
views:
- icon: mdi:weather-cloudy
id: weather
title: Weather
cards:
- type: custom:weather-card
entity_weather: weather.yweather
entity_sun: sun.sun
Thanks @petro for the elaborate answer, did all the above except updating HA, but the trick was: entity_weather: weather.city
where city is : the configured city under your weather sensor in your configuration.yaml
Yes, you need a weather entity to pass on.
What part of āexperimentalā donāt you understand.
I mean, thank you for testing, it is needed. But if you are testing experimental code, please be a bit more useful when it doesnāt work. You know, like posting issues on github, posting configuartions, logs etc.
@nickrout the code had snippets from personal config like garage dooror donāt you see that ?
and i did post a workaround for my problem so i have added the some contribution
Funny thing is that i had to bring some critics for somebody to reply including yourself