Library

We have an extensive library of various bOS configuration examples. Select your heating pump, AC, TV or almost any other device and import it to your smart building configuration. We also encourage all system integrators and DIYs to add their own examples to ComfortClick library.

Weather forecast icon

Weather forecast

Forecast for up to 72hours using OpenWeatherMap

DOWNLOAD

OpenWeatherMap is an online service, that provides global weather data via API, including current weather data, forecasts, nowcasts, and historical weather data. The company provides a minute-by-minute hyperlocal precipitation forecast

API preparation

Firstly create a free account on OpenWeatherMap. Once logged in, select your account on the top right and select My API Keys. The list of your API keys will open. If you don't have an API key, generate a new free one. The API key is required for the example to work. Example also requires City ID number as well. This city ID number can be found on the front page by typing in your city name under the "Weather in your city" field. You can copy the end part of the URL (example: weather for Ljubljana) we get URL https://openweathermap.org/city/3196359. Copy the 3196359 number. We can also use the city number provided from our Weather API in bOS. Select your Weather node under General-API. Under Location you can see the same 3196359 number.

Configuration

Download the example from our website and import it into your configuration. Step by step instructions on how to import are available in our instructional video. Once the example is downloaded, simply paste your API key and City ID number as described before and run the GetForecast function. Example will provide forecast values for different times: Next 3 hours, 6hours, 12 hours, etc. You can remove the forecast folders for the time values that are not required. Example provides forecast for temperature, humidity, wind speed, Probability of precipitation, etc.

Comments

Please login to post a comment.

This website uses cookies

We use cookies to personalize content, use live chat, provide social media features and to analyze our traffic. We also share information about your use of our site with analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.