The NWS has made it very easy to display current local
weather conditions on a web page by using XML feeds. Leveraging the power of
XSL you can display weather data in a way that is useful and appealing.
Hopefully, this article has given you some ideas on using the NWS XML feeds.
In fact, here are a few other possibilities that are not
included in the example to preserve simplicity.
If you do not have a window in your office or cubicle you
can add an image to your weather data that reflects outside conditions. The NWS
supplies images that represent every possible text they might display in the
"weather" node. You could then use the XSL to decide which image to
display based on the text in this node.
If there are multiple weather stations near you or if you
want to display weather data from several major US cities, you could add a
dropdown list and let the user select which location to view.
Do you want to know what the weather was on this day last
year? You could save the XML feeds to a database and then next year you will
know.
There are more possibilities for using the NWS XML feeds, but
the NWS actually offers more services than just current weather conditions. So,
if this article has made you curious about the NWS and you want to know what
they offer check out their web
site.