Customising the BOM Weather and lovelace - now in HACS

OK so I made a new slot popforecast. A possible today, possible tomorrow were already available. The current pop slot shows percentage predicted along with the actual rainfall for today.

See the R1, R2, R3 and R4 slots below with the graphic showing what they look like in the card.


This is a pre-release 0.86 so show beta in HACS to install.
Pretty sure this is working correctly. I will release this if there are no problems reported.
(Note only the popforecast is new)

For the pedantic I should add that I fudged the popforecast in the graphic to use tomorrows forecast!

Thanks for the addition. I have installed and now I just need to wait for a forecast rainy day to check. Should be tomorrow.

1 Like

Yeah I rigged my js so I could get the screengrab for itā€¦ I wonder if it goes to 0 for today anywayā€¦

i hope you allowed for values greater than 99 ā€¦ because North WA is expecting 200 mm in one day :slight_smile:

That wonā€™t be a problem. If it gets too wide the column will just wrap underneath the Left sideā€¦ just like it does on mobiles now.

@DavidFW1960 should popforecast update automatically? I am having to refresh the page to get the new data each day.

I think the percentage part is updating, but not the possible amount/range.

itā€™s possible thatā€™s excluded from the refresh. Iā€™ll check.

ok Simon, I fixed it so the pop updates as well. I tested it by pushing a dummy pop to the state in dev-tools and refreshed the view. Within 30-60 seconds, BOM updated the state again and the card showed the correct value so it seems ok to meā€¦
0.86a released as a pre-release

Thanks. Will update and monitor.

1 Like

Well this kind of sucks!


Fortunately they havenā€™t locked access to the apiā€™s. They most likely canā€™t as that would break the BOM mobile app.

is the refresh working Simon? If OK then I will release.
What were you trying to do with that URL?

Yes it is working just fine.

1 Like

@tom_l check this cc for dewpoint maybe?

1 Like

Since dew point is just something that is calculated (not something that is measured) canā€™t you just use a template to do the maths?

I saw a fairly complicated template (lots of terms a few days ago that I canā€™t find now) This component uses a python lib to calculate it. I only mentioned it because this was Toms main objection to going to the new component.

This seems non-trivial

Itā€™s not that complex, lots of constants and a couple of logarithm function calls. Basically it boils down to:

TD: =243.04*(LN(RH/100)+((17.625T)/(243.04+T)))/(17.625-LN(RH/100)-((17.625T)/(243.04+T)))

sure but a cc is just easier. Wish I could find that thread.

Itā€™s even easier to continue to use the BoM scrape sensor, for now.

Thinking about the dew point thing some more. The best solution I think would be for @BrendanMoran to just create another sensor in his integration that uses the formula to calculate the value. This may apply to some other things as well that are simply calculated from other measurements.