Customising the BOM Weather and lovelace - now in HACS

Ok remove the quotes from the product id.

I also think you want IDN10064 not IDN60901
image

Great thanks, Iā€™d tried with and without the quotes with no success but changing the IDN did the trick.

Excellent! Yeah itā€™s not all that intuitive and itā€™s different to whatā€™s in the BOM sensor - which is why you werenā€™t getting any data. I might even slip that graphic into the readme.

In other news the Icon code I changed today appears to work.

Yes the icons are working really well!

Thanks again for all your work.

1 Like

Same here. After I did a force refresh.

Thanks David.

Edit actually what are the forecast day icons supposed to be?

I have some night some day.

weather_night

Yep. It was actually really simple once it hit me and I even discovered an error in the original code for a different iconā€¦ so itā€™s a bit scary Iā€™m actually starting to work it outā€¦ for troubleshooting purposes anyway.
Thereā€™s only a few icons with night versions.

So when the sun goes below the horizon it will pick the night icon if there is one - otherwise it will use the same for both. So 2 of yours (Sat & Sun) are probably partly cloudy but no night icon for the rest.

1 Like

Yeah I just had a look.

I wonder if itā€™s worth throwing a fiver at mechanical turk or some service like that to create some more?

It would be worth it to me.

I scoured the net for animated svg weather icons and found a few more that came with the original one other people found. There isnā€™t much around I found.

Well if youā€™re offeringā€¦ I can easily integrate them now I know WTF I am doingā€¦

I am.

Iā€™ll have a look for a design service latter tonight.

Do you have a list of icons needed?

Just from the js these are the ones that map to BOM conditions:
The icon used is the second term

	  'sunny': `${this.dayOrNight}`,
	  'clear': `${this.dayOrNight}`,
	  'mostly-sunny': `fair-${this.dayOrNight}`,
	  'partly-cloudy': `cloudy-${this.dayOrNight}-3`,
	  'cloudy': 'cloudy',
	  'hazy': `cloudy-${this.dayOrNight}-1`,
	  'hazey': `cloudy-${this.dayOrNight}-1`,
	  'light-rain': 'rainy-1',
	  'windy': 'cloudy',
	  'fog': 'cloudy',
	  'foggy': 'cloudy',
	  'showers': 'rainy-3',
	  'shower': 'rainy-3',
	  'rain': 'rainy-5',
	  'rainy': 'rainy-5',
	  'dust': 'cloudy-day-1',
	  'dusty': 'cloudy-day-1',
	  'snow': 'snowy-6',
	  'snowy': 'snowy-6',
	  'storm': 'scattered-thunderstorms',
	  'stormy': 'scattered-thunderstorms',
	  'light-showers': 'rainy-5',
	  'light-shower': 'rainy-5',
	  'heavy-showers': 'rainy-7',
	  'heavy-shower': 'rainy-7',
	  'tropical-cyclone': 'tornado',

Some of them are compromisesā€¦ they are in the /usr/share/hassio/homeassistant/www/icons/weather_icons folder and need static as well as animated versions. There are more there than I am using at the moment and Iā€™ve picked what I think are the best matches.

Hey Dave, are these first two correct:

	  'sunny': `${this.dayOrNight}`,
	  'clear': `${this.dayOrNight}`,

I may not fully understand but I donā€™t think I see corresponding icons (animated or static).

That js expression evaluates to day or night and that is the same as the icon name

Yes itā€™s correct - they both use day.svg or night.svg

Ok. I see that now. So it would seem we could do with these extra icons:

hazey-day
hazey-night
rainy-night-1 (rename rainy-1 to rainy-day-1)
windy-day
windy-night
foggy-day
foggy-night
rainy-night-3 (rename rainy-3 to rainy-day-3)
dusy-day
dusty-night

Yeah that would pretty much cover it Tomā€¦ Theresā€™ also fiver,com, Upwork.com etcā€¦ if youā€™re looking for outsourcingā€¦ (Check your rainy ones though as I see a dupe? Oh you mean the icon nameā€¦ yeah)

Actually maybe only one for the wind. Not sure it needs day and night.

Well itā€™s just a moon or a sun right? Itā€™s like cloudy as well. Iā€™ve done the best I can with what I could find but the ones you propose would be great additions and easy enough to add now.

Going through what youā€™ve picked I think youā€™ve made excellent choices.

Yeah cloudy doesnā€™t need a sun or moon because you wouldnā€™t be able to see either if it was cloudy :slight_smile:

Sure we could put a sun and moon behind the wind or dust icons I was just wondering if it was needed. I might as well ask for them I suppose.

Found a few good prospects on fiver. Writing up some design notes now.

Sounds good Tomā€¦ just donā€™t forget to specify animated as well as static onesā€¦ Thanks for the comments re:choicesā€¦ itā€™s all so subjective of courseā€¦

Hey @DavidFW1960 Iā€™ve been playing around with the card in my setup and love it, wondering if there is a setting to increase the margin between the forecast table and the detailed summary text at the bottom?

Iā€™ve played with the margin settings in the lovelace.yaml and havenā€™t found one.

Thereā€™s no easy way to do itā€¦ itā€™s part of the forecast block rather than a separate block. I can put a blank line before it thoughā€¦ done that for the next release. Iā€™ll investigate if I can do it with a new div as wellā€¦ I donā€™t speak fluent js