Posts Tagged ‘library’

.Net API/Library for Weather Channel Forecast

16 Comments

I was bored so I decided to create a API/library for the Weather Channel’s weather forecast webservice.  This library will parse the XML returned from the webservice and return it back in custom classes that are easier to deal with.  This will return the current conditions and the 5 day forecast for a specified zip code.

This API supports US zip codes and international “locale” codes.

You will need to signup for your own PartnerID and LicenseKey with the Weather Channel(it’s free).  That can be done here.  You should also download the Weather Channel SDK so you can get the weather images.  I return a “icon code” which will tell you which image to use.

I have put the code on CodePlex.  It will contain both the .dll file, and the source code.  I felt it was easier to keep up with using CodePlex.

Tags: , , ,