Making a Weather Skin or How I Learned to Stop Worrying and Love Webparser
This is a simple weather skin that shows the current weather using MSN Weather. The other major site used is Yahoo Weather. The measures are from Poiru's upcoming Gnometer suite.
-Same old, same old
-The first three variables are used to set your location, hi or lo temperature, and what units the temperature is to be displayed in. weather.LH-valid values for this are Hi or Lo. WeatherCode is the most important variables. It is used to find your location. Go to MSN Weather, and set your location. Look for the little RSS icon on the right. The RSS url will have your WeatherCode in it. The url will look like hxxp://weather.msn.com/RSS.aspx?wealocations=wc:#WeatherCode#&weadegreetype=#TemperatureUnit#. Your WeatherCode is the string between #WeatherCode#. Lastly, TemperatureUnit displays the temperature in Fahrenheit or Celcius; valid values are C or F.