Skip to content

Instantly share code, notes, and snippets.

@earth2marsh
Created August 20, 2012 23:07
Show Gist options
  • Save earth2marsh/3409028 to your computer and use it in GitHub Desktop.
Save earth2marsh/3409028 to your computer and use it in GitHub Desktop.
Weather before and after
{
"location": {
"lat": 37.37,
"lon": -122.04,
"name": "Sunnyvale, CA"
},
"timestamp": "Mon, 20 Aug 2012 2:54 pm PDT",
"temp": 69,
"text": "Fair",
"url": "http://weather.yahoo.com/forecast/USCA1116_f.html",
"forecast": [{
"date": "20 Aug 2012",
"day": "Mon",
"high": 72,
"low": 58,
"text": "Partly Cloudy"
}, {
"date": "21 Aug 2012",
"day": "Tue",
"high": 74,
"low": 57,
"text": "Partly Cloudy"
}]
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<channel>
<title>Yahoo! Weather - Sunnyvale, CA</title>
<link>http://us.rd.yahoo.com/dailynews/rss/weather/Sunnyvale__CA/*http://weather.yahoo.com/forecast/USCA1116_f.html</link>
<description>Yahoo! Weather for Sunnyvale, CA</description>
<language>en-us</language>
<lastBuildDate>Mon, 20 Aug 2012 1:55 pm PDT</lastBuildDate>
<ttl>60</ttl>
<yweather:location city="Sunnyvale" region="CA" country="United States"/>
<yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
<yweather:wind chill="69" direction="350" speed="9" />
<yweather:atmosphere humidity="61" visibility="10" pressure="29.92" rising="2" />
<yweather:astronomy sunrise="6:29 am" sunset="7:51 pm"/>
<image>
<title>Yahoo! Weather</title>
<width>142</width>
<height>18</height>
<link>http://weather.yahoo.com</link>
<url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
</image>
<item>
<title>Conditions for Sunnyvale, CA at 1:55 pm PDT</title>
<geo:lat>37.37</geo:lat>
<geo:long>-122.04</geo:long>
<link>http://us.rd.yahoo.com/dailynews/rss/weather/Sunnyvale__CA/*http://weather.yahoo.com/forecast/USCA1116_f.html</link>
<pubDate>Mon, 20 Aug 2012 1:55 pm PDT</pubDate>
<yweather:condition text="Fair" code="34" temp="69" date="Mon, 20 Aug 2012 1:55 pm PDT" />
<description><![CDATA[
<img src="http://l.yimg.com/a/i/us/we/52/34.gif"/><br />
<b>Current Conditions:</b><br />
Fair, 69 F<BR />
<BR /><b>Forecast:</b><BR />
Mon - Mostly Clear. High: 72 Low: 58<br />
Tue - Partly Cloudy. High: 74 Low: 57<br />
<br />
<a href="http://us.rd.yahoo.com/dailynews/rss/weather/Sunnyvale__CA/*http://weather.yahoo.com/forecast/USCA1116_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
]]></description>
<yweather:forecast day="Mon" date="20 Aug 2012" low="58" high="72" text="Mostly Clear" code="33" />
<yweather:forecast day="Tue" date="21 Aug 2012" low="57" high="74" text="Partly Cloudy" code="30" />
<guid isPermaLink="false">USCA1116_2012_08_21_7_00_PDT</guid>
</item>
</channel>
</rss>
<!-- api8.weather.sp2.yahoo.com Mon Aug 20 21:53:52 PST 2012 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment