Kodi Community Forum

Full Version: [MOD] Animated weather icons in PM3.HD home screen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The idea behind this is to use a weather fanart control instead of the normal image.
Screenshot: (icon part) http://img46.imageshack.us/img46/1404/sc...ot000s.jpg

icon pack: http://www.box.net/shared/yjxhc6yraj

basically you have to change the image control to multiimage
Quote:<control type="multiimage">
<description>Weather image</description>
<posx>150r</posx>
<posy>10</posy>
<width>110</width>
<height>110</height>
<imagepath>e:\icon\$INFO[Weather.FanartCode]</imagepath>
<timeperimage>100</timeperimage>
<!-- or 200 -->

<randomize>false</randomize>
<fadetime>0</fadetime>
</control>

This is how the original was:
Quote:<control type="image">
<description>Weather image</description>
<posx>150r</posx>
<posy>10</posy>
<width>110</width>
<height>110</height>
<texture>$INFO[Weather.Conditions]</texture>
</control>

file: home.xml. You need a svn build for this to work.
Thanx, this adds a really nice touch to the Home screen.
I'm now also using them in the MyWeather screen.

Cheers!
Thanks, Works also great in MiniMeedia.Nod
Thanks alot for this! Nice job.
ronie Wrote:Thanx, this adds a really nice touch to the Home screen.
I'm now also using them in the MyWeather screen.

Cheers!

What code do you have to edit in MyWeather.xml for it to work Ronie?

I got it to work in Home.xml just fine.

Thanks, Jim
find the 'current weather icon' and the 4 'day icons' in MyWeather.xml

replace the 'current weather icon' with this:
Code:
<control type="multiimage">
    <description>current weather icon</description>
    <posx>230</posx>
    <posy>60</posy>
    <width>180</width>
    <height>180</height>
    <imagepath>foldericons/weather/$INFO[Window.Property(Current.FanartCode)]</imagepath>
    <timeperimage>100</timeperimage>
    <randomize>false</randomize>
    <fadetime>0</fadetime>
</control>

replace the first 'day icon' with this:
Code:
<control type="multiimage">
    <description>day icon</description>
    <posx>370</posx>
    <posy>40</posy>
    <height>80</height>
    <width>80</width>
    <imagepath>foldericons/weather/$INFO[Window.Property(Day0.FanartCode)]</imagepath>
    <timeperimage>100</timeperimage>
    <randomize>false</randomize>
    <fadetime>0</fadetime>
</control>

do the same for the other 'day icons', using Day1.FanartCode , Day2.FanartCode , Day3.FanartCode and adjust their <posx> and <posy> values accordingly.
ronie Wrote:find the 'current weather icon' and the 4 'day icons' in MyWeather.xml

replace the 'current weather icon' with this:
Code:
<control type="multiimage">
    <description>current weather icon</description>
    <posx>230</posx>
    <posy>60</posy>
    <width>180</width>
    <height>180</height>
    <imagepath>foldericons/weather/$INFO[Window.Property(Current.FanartCode)]</imagepath>
    <timeperimage>100</timeperimage>
    <randomize>false</randomize>
    <fadetime>0</fadetime>
</control>

replace the first 'day icon' with this:
Code:
<control type="multiimage">
    <description>day icon</description>
    <posx>370</posx>
    <posy>40</posy>
    <height>80</height>
    <width>80</width>
    <imagepath>foldericons/weather/$INFO[Window.Property(Day0.FanartCode)]</imagepath>
    <timeperimage>100</timeperimage>
    <randomize>false</randomize>
    <fadetime>0</fadetime>
</control>

do the same for the other 'day icons', using Day1.FanartCode , Day2.FanartCode , Day3.FanartCode and adjust their <posx> and <posy> values accordingly.


Thank You kind Sir!!!!