To create a new Weather object, simply use the following: It's the object you'll create when using the Library. The bulk of the code consists of objects to hold the data returned by the RSS feed. I have included the XML Documentation generated by Visual Studio as well. The code should be pretty straightforward to use and is well documented. Once I started writing the code for the weather conditions, I figured I'd wrap it up in a Class Library for use in other projects. I was writing a program that reads the current weather conditions to the user using text to speech and I needed a simple way to access this information from my application. To get your local forecast, you need to find the Location ID from the Yahoo! Weather Website by searching for your city/town and getting the Location ID from the URL in the address bar. I have enumerated various variables in an attempt to make the library simpler to use - I hope I haven't taken it too far. I have created various objects to wrap the functionality provided by the Yahoo! Weather RSS Feed. The library is meant to simplify getting the current weather conditions (as well as a 2 day forecast) into your. This is my first Code Project article and I hope everyone likes it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |