I looked up some LiveCode lesson on RSS Feeds but the downloadable example code didn't do anything.
LiveCode Lessons » Features, concepts and aspects of LiveCode » Intermediate: RSS Feeds
So I can't really learn anything from that lesson as the example file given doesn't work (RSS.livecode).
This is the kind of output I get from the Yahoo Weather RSS Feed - but I don't actually know how to go about extracting just a few of those things and putting that into variables that I can display.
http://weather.yahooapis.com/forecastrss?w=44418&u=c
Code: Select all
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<rss xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" version="2.0">
<channel>
<title>Yahoo! Weather - London, GB</title>
<link>
http://us.rd.yahoo.com/dailynews/rss/weather/London__GB/*http://weather.yahoo.com/forecast/UKXX0085_c.html
</link>
<description>Yahoo! Weather for London, GB</description>
<language>en-us</language>
<lastBuildDate>Fri, 26 Apr 2013 6:49 pm BST</lastBuildDate>
<ttl>60</ttl>
<yweather:location city="London" region="" country="United Kingdom"/>
<yweather:units temperature="C" distance="km" pressure="mb" speed="km/h"/>
<yweather:wind chill="11" direction="320" speed="16.09"/>
<yweather:atmosphere humidity="35" visibility="9.99" pressure="982.05" rising="0"/>
<yweather:astronomy sunrise="5:42 am" sunset="8:12 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 London, GB at 6:49 pm BST</title>
<geo:lat>51.51</geo:lat>
<geo:long>-0.13</geo:long>
<link>
http://us.rd.yahoo.com/dailynews/rss/weather/London__GB/*http://weather.yahoo.com/forecast/UKXX0085_c.html
</link>
<pubDate>Fri, 26 Apr 2013 6:49 pm BST</pubDate>
<yweather:condition text="Partly Cloudy" code="30" temp="11" date="Fri, 26 Apr 2013 6:49 pm BST"/>
<description>
<![CDATA[
<img src="http://l.yimg.com/a/i/us/we/52/30.gif"/><br /> <b>Current Conditions:</b><br /> Partly Cloudy, 11 C<BR /> <BR /><b>Forecast:</b><BR /> Fri - Showers Early. High: 12 Low: 2<br /> Sat - PM Showers. High: 12 Low: 1<br /> <br /> <a href="http://us.rd.yahoo.com/dailynews/rss/weather/London__GB/*http://weather.yahoo.com/forecast/UKXX0085_c.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="Fri" date="26 Apr 2013" low="2" high="12" text="Showers Early" code="45"/>
<yweather:forecast day="Sat" date="27 Apr 2013" low="1" high="12" text="PM Showers" code="39"/>
<guid isPermaLink="false">UKXX0085_2013_04_27_7_00_BST</guid>
</item>
</channel>
</rss>
<!--
api5.weather.ch1.yahoo.com Fri Apr 26 18:27:13 PST 2013
-->
All I need is an example of how to take the temperature for example and display that on a Label.
Like an example where there is just a single button and a single label and when I push the button it goes to the internet and retrieves the latest temperature and displays that on the label.
Once I'm able to see a single example that works then I can usually figure things out for myself