Posts: 150
Joined: Oct 2013
Reputation:
0
03397
Senior Member
Posts: 150
2016-11-26, 19:32
(This post was last modified: 2016-11-26, 19:34 by 03397.)
Sometimes the addod give me the following error and Icannot see the temp of the current day.
19:34:20 T:3960 DEBUG: CPythonInvoker(125, C:\Users\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground\default.py): start processing
19:34:20 T:3960 DEBUG: -->Python Interpreter Initialized<--
19:34:20 T:3960 DEBUG: CPythonInvoker(125, C:\Users\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground\default.py): the source file to load is "C:\Users\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground\default.py"
19:34:20 T:3960 DEBUG: CPythonInvoker(125, C:\Users\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground\default.py): setting the Python path to C:\Users\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground;C:\Users\nicolas\AppData\Roaming\Kodi\addons\script.module.simplejson\lib;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
19:34:20 T:3960 DEBUG: CPythonInvoker(125, C:\Users\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground\default.py): entering source directory C:\Users\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground
19:34:20 T:3960 DEBUG: CPythonInvoker(125, C:\Users\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground\default.py): instantiating addon using automatically obtained id of "weather.wunderground" dependent on version 2.24.0 of the xbmc.python api
19:34:20 T:3960 DEBUG: POParser: loaded 45 strings from file C:\Users\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground\resources\language\English\strings.po
19:34:20 T:3960 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\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground\default.py", line 646, in <module>
forecast(location, locationid)
File "C:\Users\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground\default.py", line 161, in forecast
properties(data,loc,locid)
File "C:\Users\nicolas\AppData\Roaming\Kodi\addons\weather.wunderground\default.py", line 408, in properties
set_property('Weekend.%i.FeelsLike' % (count+1), FEELS_LIKE(int(item['high']['celsius']), item['avewind']['kph'], item['avehumidity'], 'C') + TEMPUNIT)
ValueError: invalid literal for int() with base 10: ''
-->End of Python script error report<--
19:34:20 T:1216 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
Posts: 81
Joined: Nov 2015
Reputation:
3
I am also noticing this add-on throwing up errors recently. It seems to happen at random. The logged error looks almost identical to the user above me.
Posts: 15,282
Joined: Jan 2009
Reputation:
738
ronie
Team-Kodi Member
Posts: 15,282
the openweathermap / wunderground / yahoo weather addons are based on those codes.
Posts: 3,384
Joined: Aug 2012
Reputation:
107
braz
Skilled Skinner
Posts: 3,384
I could have used the yahoo list of codes when I was putting together my last weather icon pack. The code lists floating around the forum are slightly different.
Ronie, can the yahoo list be stickied somewhere?
I noticed the ”not available" icon has code 3200. Is this what the weather add-ons expect as well? I copied an existing pack where it was named "na."
Posts: 15,282
Joined: Jan 2009
Reputation:
738
ronie
Team-Kodi Member
Posts: 15,282
weather addons will either return 'na' or just an empty string.
perhaps i can add the weather code list to the wiki somewhere...