Child pages
  • Weather Portlet Configuration

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Weather Providers

The weather portlet ships with two different weather data providers, Yahoo Weather and World Weather Online. Both services require an API key which can be retrieved by a self-service registration process.


The weather portlet has been included in uPortal since 3.2 via an overlay .Add as src/main/webapp/WEB-INF/context/overlay/overlayContext.xml file in the overlay project:


.  This old file exists but the configuration has been moved to src/main/webapp/WEB-INF/context/applicationContext.xml.

Un-comment the provider you want to use in the overlayContextapplicationContext.xml file and specify the API key for the service.

Code Block
 <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="" xmlns:xsi=""
    !-- Weather DAO Implementation  -->

    <bean id="weatherDaoImpl" class="">
        <property name="key" value="YOURKEY"/>
        <property name="imageMapping"><value></value></property>

    <!--  Yahoo! Weather DAO Implementation  -->

 <bean id="weatherDaoImpl" class="">
        <property name="key" value="YOURKEY"/> <!-- ENTER YOUR KEY HERE -->
  <property name="weatherParsingService" ref="weatherParsingService"/>
        <property name="locationParsingService" ref="locationParsingService"/>
    <lang:groovy id="weatherParsingService"

    <lang:groovy id="locationParsingService"
<property name="messageSource" ref="messageSource"/>

Custom WeatherPortlet Build

The overlayContextapplicationContext.xml file is included in the WeatherPortlet release in the location referenced above. Just edit this file as instructed above.