FL550 / dwd_weather

Deutscher Wetterdienst integration for Home-Assistant
MIT License
181 stars 11 forks source link

Integrate textual forecast (Produkt: Aktuelles Wetter und Vorhersagen) #25

Closed hannemann closed 3 years ago

hannemann commented 3 years ago

Hi and thanks for your great integration :)

What do you think about integrating the DWD textual forecasts into your Plugin?

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like I would like to see a textual forecast of todays weather for my region aka 'Bundesland' in HA

Describe alternatives you've considered

Additional context Would also be great to add pictures like warnings and current conditions but that is doable with a markdown card. So: nice to have :)

FL550 commented 3 years ago

I will do this in the next days :)

hannemann commented 3 years ago

Great to hear :1st_place_medal:

FL550 commented 3 years ago

I have added the forecasts to the underlying python module, but not yet to this integration. I am not sure on how to include the information for display in HA. Right now it will fetch the pure html code. But as far as I have seen, there is no possibility to display entity content as a webpage.

If I strip all the HTML tags from the text, we are loosing the styling and we also have too much information to display this in a good way.

Do you have any ideas on how to display the weather forecast in HA?

hannemann commented 3 years ago

Would it be possible to strip out the contents of <div id="wettertext"> and convert that to markdown?
Than one could use the value in a markdown card.

I would also suggest to strip out all br Tags and style attributes...

hannemann commented 3 years ago

Do you have any ideas on how to display the weather forecast in HA?

I would use a browser_mod popup to display the data on demand. Currently i use popup cards to display all the dwd images i am interested in and also created a css animation from current satellite images. Works quite well.

A card that can expand on click could be nice also... Accordion style or something like lovelace-fold-entity-row

FL550 commented 3 years ago

I've added this to the new version 1.2.9.

hannemann commented 3 years ago

It' s AWESOME!

Thank you very much!

FL550 commented 3 years ago

You're welcome!