# \[Archived\]\[APP\]\[Pro\] OpenWeatherMap

**URL:** <https://community.homey.app/t/archived-app-pro-openweathermap/1048>\
**Category:** Apps\
**Created:** [September 2, 2018, 7:11pm UTC](https://community.homey.app/t/archived-app-pro-openweathermap/1048 "2018-09-02T19:11:25Z")\
**Posts on this page:** 1\
**Showing post:** 193

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 31, 2021, 10:59am UTC](https://community.homey.app/t/archived-app-pro-openweathermap/1048/193 "2021-08-31T10:59:20Z")

</div>

The same as @DirkG I guess, these were sent by mail from Openweathermap the other day:  
(Scroll all the way down)

> [@Homey.ink on a tablet/desktop](https://community.homey.app/t/homey-ink-on-a-tablet-desktop/12443/757):
>
> I found this solution, this removes all whitespaces from the weather data string. // First, remove possible whitespaces from weather description let $WeatherStateNoSpace = weather.state.toLowerCase(); $WeatherStateNoSpace = $WeatherStateNoSpace.replace(/\s+/g,''); $weatherStateIcon.classList.add($WeatherStateNoSpace); $weatherStateIcon.style.backgroundImage = 'url(img/weather/' + $WeatherStateNoSpace + dn + '.svg)'; $weatherStateIcon.style.webkitMaskI…

---

_[View the full topic](https://community.homey.app/t/archived-app-pro-openweathermap/1048)._
