auch ich habe Probleme mit zwei Werten welche ich aus einer Openweathermap xml auslesen möchte und zwar die Bewölkung in Prozent von morgen und über morgen,
meine Befhelskennung ist für den morgigen Wert:
\i<clouds value="\i\i<clouds value="\i" all="\i\v
und für den übermorgigen Wert:
\i<clouds value="\i\i<clouds value="\i\i<clouds value="\i" all="\i\v
untenstehnd das xml.
<weatherdata>
<location>
<name>Laufenburg</name>
<type/>
<country>CH</country>
<timezone/>
<location altitude="0" latitude="47.5605" longitude="8.0602" geobase="geonames" geobaseid="2880121"/>
</location>
<credit/>
<meta>
<lastupdate/>
<calctime>0.0124</calctime>
<nextupdate/>
</meta>
<sun rise="2018-10-22T05:57:09" set="2018-10-22T16:26:23"/>
<forecast>
<time day="2018-10-22">
<symbol number="800" name="Klarer Himmel" var="01d"/>
<precipitation/>
<windDirection deg="62" code="ENE" name="East-northeast"/>
<windSpeed mps="2.62" name="Light breeze"/>
<temperature day="14.3" min="3.79" max="14.3" night="3.79" eve="9.14" morn="11.66"/>
<pressure unit="hPa" value="975.73"/>
<humidity value="76" unit="%"/>
<clouds value="Klarer Himmel" all="0" unit="%"/>
</time>
<time day="2018-10-23">
<symbol number="500" name="Leichter Regen" var="10d"/>
<precipitation/>
<windDirection deg="290" code="WNW" name="West-northwest"/>
<windSpeed mps="1.67" name="Light breeze"/>
<temperature day="10.11" min="0.06" max="11.18" night="5.42" eve="7.97" morn="0.06"/>
<pressure unit="hPa" value="978.93"/>
<humidity value="82" unit="%"/>
<clouds value="Klarer Himmel" all="0" unit="%"/>
</time>
<time day="2018-10-24">
<symbol number="500" name="Leichter Regen" var="10d"/>
<precipitation value="0.31" type="rain"/>
<windDirection deg="260" code="W" name="West"/>
<windSpeed mps="2.06" name="Light breeze"/>
<temperature day="12.2" min="3.62" max="12.28" night="4.52" eve="9.73" morn="3.62"/>
<pressure unit="hPa" value="975.94"/>
<humidity value="82" unit="%"/>
<clouds value="Überwiegend bewölkt" all="36" unit="%"/>
</time>
<time day="2018-10-25">
<symbol number="500" name="Leichter Regen" var="10d"/>
<precipitation/>
<windDirection deg="357" code="" name=""/>
<windSpeed mps="1.41" name="Calm"/>
<temperature day="10.78" min="1.98" max="12.36" night="2.59" eve="6.33" morn="1.98"/>
<pressure unit="hPa" value="969.41"/>
<humidity value="90" unit="%"/>
<clouds value="Überwiegend bewölkt" all="32" unit="%"/>
</time>
<time day="2018-10-26">
<symbol number="500" name="Leichter Regen" var="10d"/>
<precipitation value="1.4" type="rain"/>
<windDirection deg="198" code="SSW" name="South-southwest"/>
<windSpeed mps="1.59" name=""/>
<temperature day="10.11" min="-0.84" max="10.11" night="6.99" eve="5.95" morn="-0.84"/>
<pressure unit="hPa" value="964.76"/>
<humidity value="0" unit="%"/>
<clouds value="Überwiegend bewölkt" all="75" unit="%"/>
</time>
<time day="2018-10-27">
<symbol number="501" name="Mäßiger Regen" var="10d"/>
<precipitation value="4.11" type="rain"/>
<windDirection deg="246" code="WSW" name="West-southwest"/>
<windSpeed mps="2.68" name="Light breeze"/>
<temperature day="5.39" min="0.71" max="5.39" night="0.71" eve="1.74" morn="4.48"/>
<pressure unit="hPa" value="959.6"/>
<humidity value="0" unit="%"/>
<clouds value="Überwiegend bewölkt" all="65" unit="%"/>
</time>
<time day="2018-10-28">
<symbol number="600" name="Mäßiger Schnee" var="13d"/>
<precipitation value="2.07" type="rain"/>
<windDirection deg="336" code="NNW" name="North-northeast"/>
<windSpeed mps="1.7" name="Light breeze"/>
<temperature day="4.56" min="0.53" max="4.56" night="0.59" eve="1.21" morn="0.53"/>
<pressure unit="hPa" value="964.09"/>
<humidity value="0" unit="%"/>
<clouds value="Überwiegend bewölkt" all="57" unit="%"/>
</time>
</forecast>
</weatherdata>
bin für jeden Tip dankbar.
Liebe Grüsse
Thomas
Kommentar