DATA STORIES | WEATHER FORECAST | KNIME ANALYTICS PLATFORM

One Click to get Weather Forecasts of your Favorite Cities

Umbrella or sunglasses? A codeless solution with KNIME Analytics Platform

BI-FI BLOGS
Low Code for Data Science

--

As first published in BI-FI Blogs

Photo by NOAA on Unsplash.

In this article, we’ll learn how to get weather forecast information for our cities of choice using KNIME Analytics Platform.

Download the workflow “Weather Forecast” from the KNIME Community Hub.

The first step in this workflow is to connect to the weather forecast website (https://www.weather-forecast.com/countries), and extract URLs pointing to weather information for each city.

In the STEP 1 Component, we use the Webpage Retriever and XPath nodes in KNIME to achieve this.

Next, leveraging the component interactive view, we let the user select the cities for which they wish to know the weather forecast by using the Nominal Row Filter Widget node. The list of cities includes all the major cities all around the world.

After the user selects the cities of interest, in STEP 3, we feed the extracted city URLs into a second Webpage Retriever node and use the XPath node to get the actual forecast. We also perform a few data transformations to add the execution date, rename and retain the data we need. Finally, in the STEP 4, we feed the data into the last component to create a dashboard that shows the forecast for selected cities.

Just click the “Execute All” button in KNIME and let the workflow do its magic.

If you liked this article, please don’t forget to share it and leave a comment below!

--

--

BI-FI BLOGS
Low Code for Data Science

BI-FI Blogs provides useful materials, examples, tutorials about: SQL Server, PowerBI, Python, VBA, Data Analysis, Knime, and many more...