That was quick!  Thanks Jen.

Tim


On Nov 11, 2010, at 11:35 PM, Jen Bourey wrote:

> OK, folks!  I've added two implementations: one based on 
> worldweatheronline.com, and the other based on Yahoo's weather service.  The 
> worldweatheronline.com is the default, and configuration for Yahoo is 
> commented out in the applicationContext.xml file.  Once you select a service, 
> you'll need to obtain an API key and replace "YOURKEY" in the 
> applicationContext.xml with this value. 
> 
> Both services have both weather and location lookup implemented and include 
> all the data the previous service offered.  Please feel free to play around 
> with both, send us feedback, and determine which meets your needs best.  
> Please review the terms of use before selecting a service, but here are a few 
> key details:
> 
> World Weather Online: 
> * Free to both non-commercial and commercial users
> * Requires a key for both weather and location lookups
> * Requires 15 minute caching of each feed (already the weather portlet's 
> default caching strategy)
> * Limit of 500 requests / hour
> * Icons don't look very sophisticated
> * Provides forecasts several days into the future (configurable)
> * API key requests at http://www.worldweatheronline.com/register.aspx
> 
> Yahoo! Weather
> * ToC limits usage to non-commercial use
> * Key only required for location lookups
> * Much nicer icons
> * Provides forecasts only two days into the future
> * API key requests at https://developer.apps.yahoo.com/wsregapp/
> 
> I've also updated the portlet to provide support for external icons, since 
> both these services host the icons themselves.  We may eventually want to 
> match World Weather Online's icons up to different ones (perhaps even the 
> ones already in the portlet) depending on the numerical code, but this should 
> serve for now.
> 
> You'll notice that both feeds still claim to be provided by Accuweather.  
> This is updatable via the messages file, but I think it would be preferable 
> to add methods to the weather dao service to provide the icon, service name, 
> and link so that switching services doesn't require manual message file 
> updates.
> 
> These service of course haven't gotten much testing and need some QA, 
> improved unit tests, etc.  I'd recommend doing some testing before deploying 
> the portlet in a production portal.
> 
> I've attached screenshots of both the Yahoo! and World Weather Online 
> implementations.
> 
> - Jen
> 
> 
> -- 
> You are currently subscribed to [email protected] as: 
> [email protected]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/uportal-dev<worldweatheronline.png><ATT00001..txt><yahooweather.png><ATT00002..txt>


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Reply via email to