Display Local Weather Data On Your Site
page 7 of 7
by Andrew Mooney
Feedback
Average Rating: 
Views (Total / Last 10 Days): 43412/ 53

Conclusion

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.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-19 9:52:40 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search