2019-02-10, 22:31
Hi there, I'm revamping my old weather addon that was not working lately. Due to a different weather codes that are used by the source of the weather information I've decided to get their icons and use them. The thing is that I'm not able to get Kodi to load them, it always returns
Icons are inside ./resources/media folder so I get this path using
and then set the corresponding icon by
Code:
ERROR: CImageLoader:oWork - Direct texture file loading failed for resource://resource.images.weathericons.default/path_to_icon
Icons are inside ./resources/media folder so I get this path using
python:__icons__ = xbmc.translatePath(os.path.join(__addonpath__, 'resources', 'media' ))
and then set the corresponding icon by
python:set_property('Daily.%i.OutlookIcon' %i, os.path.join(__icons__, "%i.png" %code))