2020-05-17, 14:27
I have proposition to add support for weather provider icon packs.
For example, the Gismeteo provider has its own set of weather icons with 119 icons for different conditions. Icon names are generated as follows: [day|night|]_[cloudiness](0-3)_[rain][snow](0-3)_[storm]. I want use all of them, instead of the default icons list.
My proposition:
1. Create icon pack with provider icons. This package will be with the new type "weatherprovidericons", so it will not conflict with standard weather icon packs.
2. In the weather information, add the new "ProviderIcon" property, where will be a full path to the icon. For my example, is: "resource://resource.images.weatherprovidericons.gismeteo/d.c2.r1.png"
3. Change skins to support new property. Use provider icon, if it's defined, else the default icon is Kodi.
This solution will maintain compatibility with the default algorithm and improve additional support for provider icons.
Here is an example of resource package: resource.images.weatherprovidericons.gismeteo
Here are the necessary changes to the skin based on the "Confluence" skin: differences
What do you think about this?
For example, the Gismeteo provider has its own set of weather icons with 119 icons for different conditions. Icon names are generated as follows: [day|night|]_[cloudiness](0-3)_[rain][snow](0-3)_[storm]. I want use all of them, instead of the default icons list.
My proposition:
1. Create icon pack with provider icons. This package will be with the new type "weatherprovidericons", so it will not conflict with standard weather icon packs.
2. In the weather information, add the new "ProviderIcon" property, where will be a full path to the icon. For my example, is: "resource://resource.images.weatherprovidericons.gismeteo/d.c2.r1.png"
3. Change skins to support new property. Use provider icon, if it's defined, else the default icon is Kodi.
This solution will maintain compatibility with the default algorithm and improve additional support for provider icons.
Here is an example of resource package: resource.images.weatherprovidericons.gismeteo
Here are the necessary changes to the skin based on the "Confluence" skin: differences
What do you think about this?