2014-12-16, 10:33
Received the following error on XBMC 13.2 with Yahoo Weather 2.0.4
Looks like the humidity value didn't get passed by Yahoo? Weird.
Code:
00:20:18 T:4808 DEBUG: weather.yahoo: forecast data: <?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 - xxxxxxxxxxxxxxxxxxxxxxxx</title>
<link>xxxxxxxxxxxxxxxxxxxxxxxxxxx</link>
<description>Yahoo! Weather for xxxxxxxxxxxxxxxx</description>
<language>en-us</language>
<lastBuildDate>xxxxxxxxxxxxxxxxxxx</lastBuildDate>
<ttl>60</ttl>
<yweather:location city="xxxxxxxxxxxxx" region="xxxxxxxxxx" country="United States"/>
<yweather:units temperature="C" distance="km" pressure="mb" speed="km/h"/>
<yweather:wind chill="12" direction="40" speed="4.83" />
<yweather:atmosphere humidity="" visibility="16.09" pressure="982.05" rising="0" />
<yweather:astronomy sunrise="7:13 am" sunset="4:52 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>xxxxxxxxxxxxxxxxxxxxxxxxxxxx</title>
<geo:lat>36.98</geo:lat>
<geo:long>-122.03</geo:long>
<link>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</link>
<pubDate>xxxxxxxxxxxxxxxxxxxxxxxxx</pubDate>
<yweather:condition text="Cloudy" code="26" temp="12" date="xxxxxxxxxxxxxxxxxxxxxx" />
<description><![CDATA[
<img src="http://l.yimg.com/a/i/us/we/52/26.gif"/><br />
<b>Current Conditions:</b><br />
Cloudy, 12 C<BR />
<BR /><b>Forecast:</b><BR />
Mon - Showers. High: 13 Low: 9<br />
Tue - Heavy Rain. High: 14 Low: 9<br />
Wed - Showers. High: 14 Low: 8<br />
Thu - Partly Cloudy. High: 14 Low: 9<br />
Fri - Showers. High: 15 Low: 10<br />
<br />
<a href="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</a><BR/><BR/>
(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
]]></description>
<yweather:forecast day="Mon" date="15 Dec 2014" low="9" high="13" text="Showers" code="11" />
<yweather:forecast day="Tue" date="16 Dec 2014" low="9" high="14" text="Heavy Rain" code="40" />
<yweather:forecast day="Wed" date="17 Dec 2014" low="8" high="14" text="Showers" code="11" />
<yweather:forecast day="Thu" date="18 Dec 2014" low="9" high="14" text="Partly Cloudy" code="30" />
<yweather:forecast day="Fri" date="19 Dec 2014" low="10" high="15" text="Showers" code="11" />
<guid isPermaLink="false">xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</guid>
</item>
</channel>
</rss>
<!-- fe468.global.media.gq1.yahoo.com xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
00:20:18 T:4808 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\weather.yahoo\default.py", line 212, in <module>
forecast(location, locationid)
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\weather.yahoo\default.py", line 120, in forecast
properties(query,loc)
File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\weather.yahoo\default.py", line 170, in properties
set_property('Current.DewPoint' , dewpoint(int(condition[0].attributes['temp'].value), int(atmosphere[0].attributes['humidity'].value)))
ValueError: invalid literal for int() with base 10: ''
-->End of Python script error report<--
Looks like the humidity value didn't get passed by Yahoo? Weird.