Check this out. This is the same content that is used in GWeather
(GNOME Weather) which is an applet in GNOME. It is US government info
so I don't think there are any copyright issues (if you are a US citizen
your tax dollars paid for the info).
Anyway it would be as simple as writing a daemon (check out the
org.apache.jetspeed.daemon package) that would parse out the content (I
don't know if all they have is HTML or if they actually have a
protocol... text or XML). The daemon could be used by the portlet as a
singleton to get the weather information:
DaemonFactory.getDaemon( DaemonFactory.WEATHER_DAEMON_KEY )
I would assume that if info for that country/state/city isn't available
you would just return null. Then the user could just enter their local
and it should give them their temp and forecast.
This is the NWS Internet Weather Source (US government).
http://weather.noaa.gov/
--
Kevin A Burton ([EMAIL PROTECTED])
http://relativity.yi.org
Message to SUN: "Please Open Source Java!"
I just patented "one click e-mail", when you hit the "reply" button you
own me 50 cents.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]