Customising the BOM Weather and lovelace - now in HACS

Probably not on the one line. Currently shows chance of rain and actual rain for today so it would be a new line with the predicted or possible rainfall for today. I could add one for tomorrow as well and you could configure it for a slot. Just remember there are a finite number of slots (4 each side)

Using a slot to show the predicted amount today would be good.

For the forecast I was thinking more along the lines of:

that looks good. might be getting a little crowded tho. id be happy to not have the % at all if its the only way to get it in. i just think the amount of rain is much more relevant than the percentage chance

It was a pretty quick mock-up without adjusting the spacing to the summary.

I find both values useful but as I said, I have them displayed in another card so no big problem if it’s too much hassle to do.

Well I’m struggling to work it out not being fluent in Java. It’s a f’king miracle I worked out the low actually…

2 Likes

Ok I’ve got this… hang on…

Ok so thanks to all you guys who wanted this in HACS… it caused me a LOT of grief because even doing a hard reload and clear cache the old code was like a zombie and it wouldn’t reload my changes hence nothing was loaded or working that I changed.

Anyway… Just uploaded new version with a rain forecast for today and tomorrow. Check the readme and lovelace example for the new code.
Addition 1

            entity_pop_intensity: sensor.bom_gosford_rain_today
            entity_possible_today: sensor.bom_gosford_possible_rainfall_0

Configure the slots:

            slot_l1: daytime_high           #daytime_high
            slot_l2: daytime_low            #wind
            slot_l3: wind                   #visibility but BOM has no visibility reported
            slot_l4: sun_next               #sun_next
            slot_r1: pop                    #pop
            slot_r2: humidity               #humidity
            slot_r3: possible_today         #pressure but BOM has no pressure reported
            slot_r4: sun_following          #sun_following

image

NOTE: Only showing Today there but you can show tomorrow as well… personally I think that’s voodoo but that’s just me…

When you are doing local changes delete the gz file in the same dir, if it exist hacs will serve that.

Doh!!! and Thanks @ludeeus!!!

Now I’ve worked it out, I might see if I can add the other ones and show them as you indicated… not sure I can - probably above my pay grade but I’ll see.

1 Like

Ok Tom… you asked for it and it wasn’t as hard as I expected…
image

You will need to edit lovelace config as per the docs but suffice to say you need to have these lines in there.

            entity_possible_today: sensor.bom_gosford_possible_rainfall_0
            entity_pos_1: sensor.bom_gosford_possible_rainfall_1
            entity_pos_2: sensor.bom_gosford_possible_rainfall_2
            entity_pos_3: sensor.bom_gosford_possible_rainfall_3
            entity_pos_4: sensor.bom_gosford_possible_rainfall_4
            entity_pos_5: sensor.bom_gosford_possible_rainfall_5

YES I renamed the entity for tomorrow as per the above.

Let me know what you think. This is release 0.3

1 Like

thanks @DavidFW1960, ill give this a try tonight and see if i can work it out!

1 Like

Works perfectly. Thanks very much David.

Excellent. I’m getting some odd html and I just pushed a fix but have not released it yet… just waiting to see. A refresh ‘fixes’ it anyway but we’ll see if I need to push it or not soon.

Glad it works.

Like this odd html?:

A browser refresh fixes it. Hmm. But not for long.

Yeah that. I have fixed it temporarily by hard wiring the mm - but it’s also a little bigger. I just need to work out how to use a class in the java script there but it’s not cooperating.

Version 0.33 ‘fixes’ it for now while I sharpen my js skills.

1 Like

So I’m seemingly too stupid to fix this as no matter what I try it seems reluctant to apply the class as anything other than text hence the error. I also noticed today’s rainfall that I show in slot R1 shows mm in uppercase as well when it ‘refreshes’

So I don’t know what to do yet. I’ll probably release 0.34 soon that will have larger units (supporting units other than mm) and that might be it without help from a guru that can show me how to apply the units class to the unit for this and also the current rainfall.

@DavidFW1960 - awesome work to bring this all together. Finally, a decent looking weather card for BOM.

Was wondering if you may be able to allow a card title? I have 2 weather cards, one for my home, and one for where I surf, about 120km’s away. Would be great to allow a title so I know which is which.

The title parameter appears to do nothing to the card at all.

Now - this is interesting…

Not only am I going to use this - I don’t have to change a thing! Gosford weather covers Kincumber just fine thank you very much :wink:

@DavidFW1960 - A fellow coastie! How’s that! :smiley:

1 Like

Hi Andrew… I can take a look but unlikely. With my media view I use a markdown card in a vertical stack like this…

          - type: markdown
            content: ' '
            title: Google Media Players

That will do what you want.

1 Like