openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.58k forks source link

[openweathermap] Request Condition field to be capitalized (first letter of each word) #9570

Closed giri-v closed 3 years ago

giri-v commented 3 years ago

It would be nice if the Condition string was properly capitalized. I'm using OH3 and cannot capitalize in the widget.

Thanks!

Jochen1980 commented 3 years ago

I took a short look at the code. The data comes from the openweathermap API, so it is necessary to know what Strings are exactly bothering you? Otherwise it seems to me like a dead end with some unpleasant side effects, for example "Ein paar Wolken" seems to be exactly what is expected.

cweitkamp commented 3 years ago

Yes, the binding just forwards data received from OWM API. It does neither applies a formatter nor a translation on values. To be honest we will not fix that. If you like to have optimized casing I have to ask you to look for a solution elsewhere (e.g. by creating a rule or a transformation). See also https://github.com/openhab/openhab-addons/issues/4650#issuecomment-463235797.