2019-12-13, 07:41
I've been getting an error whenever the weatherbit plugin has been pulling the forecast for the last little while. I finally looked into the log today and it seems like the error is likely due to where I live currently not having any sunrise or sunset due to polar night.
I've put what I thought is the relevant part of the log below, but I've pasted the full log at https://paste.kodi.tv/xaxohabawi.kodi
2019-12-12 22:33:43.668 T:7764 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: time data u'2019-12-13 99:99' does not match format '%Y-%m-%d %H:%M'
Traceback (most recent call last):
File "C:\Users\xbmc\AppData\Roaming\Kodi\addons\weather.weatherbit.io\default.py", line 498, in <module>
forecast(locationname, locationdeg)
File "C:\Users\xbmc\AppData\Roaming\Kodi\addons\weather.weatherbit.io\default.py", line 232, in forecast
current_props(current_weather,loc)
File "C:\Users\xbmc\AppData\Roaming\Kodi\addons\weather.weatherbit.io\default.py", line 310, in current_props
set_property('Today.Sunset' , convert_time('%s %s' % (data['data'][0]['ob_time'][0:10], data['data'][0]['sunset'])))
File "C:\Users\xbmc\AppData\Roaming\Kodi\addons\weather.weatherbit.io\default.py", line 110, in convert_time
utc = datetime(*(time.strptime(utc_time, '%Y-%m-%d %H:%M')[0:6]))
File "C:\Program Files\Kodi\system\python\Lib\_strptime.py", line 478, in _strptime_time
return _strptime(data_string, format)[0]
File "C:\Program Files\Kodi\system\python\Lib\_strptime.py", line 332, in _strptime
(data_string, format))
ValueError: time data u'2019-12-13 99:99' does not match format '%Y-%m-%d %H:%M'
-->End of Python script error report<--
I've put what I thought is the relevant part of the log below, but I've pasted the full log at https://paste.kodi.tv/xaxohabawi.kodi
2019-12-12 22:33:43.668 T:7764 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: time data u'2019-12-13 99:99' does not match format '%Y-%m-%d %H:%M'
Traceback (most recent call last):
File "C:\Users\xbmc\AppData\Roaming\Kodi\addons\weather.weatherbit.io\default.py", line 498, in <module>
forecast(locationname, locationdeg)
File "C:\Users\xbmc\AppData\Roaming\Kodi\addons\weather.weatherbit.io\default.py", line 232, in forecast
current_props(current_weather,loc)
File "C:\Users\xbmc\AppData\Roaming\Kodi\addons\weather.weatherbit.io\default.py", line 310, in current_props
set_property('Today.Sunset' , convert_time('%s %s' % (data['data'][0]['ob_time'][0:10], data['data'][0]['sunset'])))
File "C:\Users\xbmc\AppData\Roaming\Kodi\addons\weather.weatherbit.io\default.py", line 110, in convert_time
utc = datetime(*(time.strptime(utc_time, '%Y-%m-%d %H:%M')[0:6]))
File "C:\Program Files\Kodi\system\python\Lib\_strptime.py", line 478, in _strptime_time
return _strptime(data_string, format)[0]
File "C:\Program Files\Kodi\system\python\Lib\_strptime.py", line 332, in _strptime
(data_string, format))
ValueError: time data u'2019-12-13 99:99' does not match format '%Y-%m-%d %H:%M'
-->End of Python script error report<--