Beispiel Abfrage Yahoo Weather fuer Zuerich

Dependencies:   EthernetInterface mbed-rtos mbed spxml

Fork of HTTP_GET by smd.iotkit2.ch

You are viewing an older revision! See the latest version

Homepage

Table of Contents

    Mittels Yahoo Weather kann das aktuelle Wetter und eine Vorhersage für einen Bestimmten Ort abgefragt werden.

    Beispiel Abfrage Wetter in Zürich

    http://weather.yahooapis.com/forecastrss?w=784794&u=c

    <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 - Zurich, CH</title>
        <link>...</link>
        <description>Yahoo! Weather for Zurich, CH</description>
        <language>en-us</language>
        <lastBuildDate>Wed, 27 May 2015 4:50 pm CEST</lastBuildDate>
        <ttl>60</ttl>
        <yweather:location city="Zurich" region="ZH" country="Switzerland"/>
        <yweather:units temperature="C" distance="km" pressure="mb" speed="km/h"/>
        <yweather:wind chill="16" direction="0" speed="3.22"/>
        <yweather:atmosphere humidity="39" visibility="9.99" pressure="1015.92" rising="0"/>
        <yweather:astronomy sunrise="5:36 am" sunset="9:08 pm"/>
        <image>...</image>
        <item>
            <title>Conditions for Zurich, CH at 4:50 pm CEST</title>
            <geo:lat>47.38</geo:lat>
            <geo:long>8.53</geo:long>
            <link>...</link>
            <pubDate>Wed, 27 May 2015 4:50 pm CEST</pubDate>
            <yweather:condition text="Partly Cloudy" code="30" temp="16" date="Wed, 27 May 2015 4:50 pm CEST"/> <!-- Ausgewertete Zeile -->
    </item>
    </channel>
    </rss>
    

    All wikipages