We have 3 possible scenarios for displaying weather.

  1. This is a dedicated weather add-on for PowerPoint to display weather information in a presentation. This is very easy to use and it can show current weather information and forecasts. If you need to display the weather information then use this option.
  2. When you need to display more than just a weather, try our DataPoint solution or combine with other Dynamic Elements add-ons. It has the same weather data provider (as in the first solution). This is very easy to use and can combine information from other data providers like database and Excel information.
  3. The weather information from any weather source or weather API is typically communicated with XML or JSON format. DataPoint can use any XML or JSON data feed. So, if you want to have a full flexibility yourself, then take full control with the XML or JSON data providers of DataPoint.

This blog article covers option 3.

Show online weather information in a PowerPoint slide show 17People are always curious for the weather. Will it rain today? How warm will it be? Will it freeze tonight? When do we get some sun? Weather conditions and forecasts are visible in many forms; newspaper, television, radio, web site, phone etc. In some environments they use a large television screens to display all kinds of information like news, events and weather info. You can find those types of displays at the gas stations, information kiosks, waiting areas, pubs and so on.

Connect to the Yahoo Weather API

The technology behind those dynamic data driven screens are dynamic presentations. When you think about presentations, you will say PowerPoint. But unfortunately PowerPoint presentations are static. Tools like DataPoint can bring this dynamic feature into a static PowerPoint presentation. In today’s article we will show how the user can bind online weather information to the presentation. Earlier I explained already how to display live news in your presentation. A good weather service that provides free weather information is Yahoo. They provide weather information in XML format and DataPoint can read that information on a regular basis and display this in real-time on your monitor. Let me show how the user can show the current weather of Chicago, IL in a presentation. For more information on how to configure the URL of the desired location please check https://developer.yahoo.com/weather/documentation.html for more information. In this sample presentation we will use this url http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20%28select%20woeid %20from%20geo.places%281%29%20where%20text=%22chicago,%20il%22%29&format=xml. Note that for Chicago the temperatures are returned in Fahrenheit. When the user wants to return or display the information in Celsius then you have to change the request a bit. For Paris in France we would usehttp://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20%28select%20woeid%20from%20geo.places %281%29%20where%20text=%22paris%22%29%20and%20u=%22c%22&format=xmland then the temperature would be sent back in Celsius. When the user executes this URL in a browser then the user can get an XML structure with raw data returned.  See example below.

yahoo weather api data
The raw data is unreadable but we will pick out the correct information for the weather display.

Set up connection in DataPoint

Click DataPoint in the PowerPoint menu.

open datapoint in powerpoint menu
Then click the List button of the Connections group.
click list in the connections group
Go to the XML node and click the Add connection button.
go to the xml node in the provider list
Paste the Yahoo Weather URL (http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20%28select%20woeid%20from%20geo.places %281%29%20where%20text=%22chicago,%20il%22%29&format=xml) and click OK to close.
enter the yahoo weather url for the city that you want to display on your slide
DataPoint has a connection to the weather conditions of Chicago. Rename the connection to ‘Yahoo weather’.
name this connection

Add XML data tables to your slide

Click the Add query button. Choose Condition from the table list. And set the refresh rate to 300 seconds for a 5 minutes refresh interval. Click OK to close. Rename the query to Condition.

add a xml data table to your connections
Add another query pointing to the Location table. Use the same 300 seconds refresh rate, although this can be much higher since the name will not change under normal conditions. OK to close and name the query Location.
select the location table from the xml raw data
Set up 2 connections to the Yahoo Weather service and now start using this information in the presentation.
name your data tables
Add a first text box at the top of the slide and click DataPoint and then Text box of the Shapes group. Set the data connection to Yahoo Weather | Location.  Set the column to City and leave the row at 1.  In the preview can see Chicago already.
assign the city name to a text box dynamically
Click OK and we have dynamically linked the location of my interest to this first text box. Add a second text box to host the weather condition. Draw the new text box and click DataPoint, Text box again. Set the data connection to Yahoo Weather | Condition and select the Text column from the columns list. This will display the current weather condition like cloudy and sunny in the text box.  Click OK to close.
assign weather text to text box
Now add a third text and click DataPoint, Text box. Assign Yahoo Weather | Condition here too and select column Temp. This will now display the current temperature of Chicago as a number, only 49 when I write this.
assign current temperature to a text box on your slide
I want to add something more. Click the Texts tab and enter °F at the suffix text. Now hit OK to apply the settings. The text box will now display the temperature as a number and place the °F always behind it.
add Fahrenheit or Celsius suffix to temperature

Add weather icons to your presentation

Last thing we want to demonstrate is an icon to illustrate the weather type. The Yahoo weather service is using a code from 0 to 47, from tornado to isolated thunder showers and everything in between. For example code 32 is sunny. So when I see code 32 in the data service, then I want to display an icon or picture of the sun. I have a ZIP file containing the weather type images, ranging from 0 to 47.  We have to insert a dynamic picture on the slide linked to the picture files of my zip.

weather icons to display in a picture box
Start by adding a new picture to the slide. Click Insert and Picture and navigate to the folder that is containing the weather type pictures.  Select the 0.png to start with. With this image selected, choose DataPoint and then select Picture in the Shapes group. Choose Yahoo Weather | Condition for the active data connection, Code as column and row number 1.
prepare what weather icon to display based on weather code
At the Options I select the Filename only option. I know that the type is returned as a number. So we have to add a path to the images and a file extension. At the folder text box browse to select the folder that contains my 47 pictures. And at the extension type in PNG for the file extensions. Hit OK to commit.
set weather icon folder and extension
The code 32 for sunny is returned from the Yahoo weather service and DataPoint is now reformatting that code into a full path to my icon.

Prepare slide show as weather information board

As a last step we have to make sure that the slide show will run continuously and not page per page like a sales presentation.  Choose Set Up Slide Show in the Slide Show menu option and set the Show Type to Browsed at a kiosk. Click OK.

prepare slide show settings and kiosk mode for continuous playback
Run the slide show and DataPoint will always display the current weather conditions of Chicago on the screen or information monitor.
this is how the weather information looks on your slide
The slide show will look professional like this:
run your powerpoint slide show with real-time weather information
Download DataPoint from the PresentationPoint web site and download this DataPoint enabled presentation of this article with the online weather information. When the user try to use it, don’t forget to download the ZIP file with the weather images and change the path in DataPoint when it is not installed at the same location.

Data Driven Presentations For You

Free PowerPoint Template

All Weather Icons in a ZIP File

Pin It on Pinterest

Share This