jaydeethree / Home-Assistant-weatherdotcom

Home Assistant custom component/integration for Weather.com
GNU General Public License v3.0
46 stars 7 forks source link

some weather descriptions are too long #29

Closed tonyis49 closed 8 months ago

tonyis49 commented 8 months ago

Hi, this is more of a suggestion than an issue in that some of the weather descriptions are quite long. e.g. "Showers in the Vicinity" could be "Local Showers"

jaydeethree commented 8 months ago

The descriptions come from the Weather.com API, specifically the wxPhraseLong property. The API also provides shorter descriptions in the wxPhraseMedium and wxPhraseShort properties, but those two properties are only available when the configured language is US English. It's important to me that this integration supports other languages and is not English-specific, so that's why I decided to use the wxPhraseLong property for weather descriptions.

For reference, the API docs can be found here:

https://docs.google.com/document/d/1UOjfN1j54Ocmwj-zYCcHG_RM1tlNceW_qlzz0wVILXA/edit