Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Clark_White
Contributor II
Contributor II

Weather Data

I would like to create an app that displays Weather data via a map along with Operational Metrics.   Is there a free datafeed or WebConnection that I can use for this?

Labels (1)
15 Replies
lorenzoconforti
Specialist II
Specialist II

Clark_White
Contributor II
Contributor II
Author

Thanks for the response, I keep getting a "Failed to Connect to Server" message with the Rest Connector.   Do you know the specific settings we need to use with the OpenWeather API?   I am fairly new to Qlik. 

lorenzoconforti
Specialist II
Specialist II

You don't need a specific connector, you can just use the Web file connection. I've created a dashboard to illustrate this; see attached

You will need to

1. create an account on openweathermap.org; you will be given an API key

2. create a new connection in the Data load editor; select "Web file" (URL "https://samples.openweathermap.org/data/2.5/forecast", name "WeatherData")

3. in the data load editor, edit the variable vAPIKey and replace <YourAPIKey> with the API key at step 1

4. reload

 

The loading script will go through the list of cities included in the locations table and query openweathermap and retrieve the forecast information; I've added some extra information in the sample stats table which are displayed in the tooltip on the map (you need sense february 2020 for this to work)

Study the file and then let me know if you have any questions

WeatherMap.png

Clark_White
Contributor II
Contributor II
Author

Thanks.  The app looks good!  

I get the SSL/TSL handshake failed. Certificates and/or passwords are invalid

From my research, it looks like I need to Create a SSL Certificate for the Web Connectors.    Is this correct?

lorenzoconforti
Specialist II
Specialist II

Does it give you error when you create the new connection or when you run the script?

I just tried and it also works with http so you can probably just edit the two URLs in the loading script 

Clark_White
Contributor II
Contributor II
Author

It still fails.    I get an unknown error when I try http.

lorenzoconforti
Specialist II
Specialist II

Does this happen in 1 or 2:

1 - when you create the connection (i.e. Data model viewer -> Create new connection -> Data sources -> web file -> URL "https://samples.openweathermap.org/data/2.5/forecast", name "WeatherData"

2 - when you press the Load data button

lorenzoconforti
Specialist II
Specialist II

Also, please post a screenshot of the error message

Clark_White
Contributor II
Contributor II
Author

This is what I get from the New Connection Screen.   

 

From_New_Connection.png