[MOD] Animated weather icons in PM3.HD home screen

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Silverxxx Offline
Member
Posts: 69
Joined: May 2009
Reputation: 1
Location: Adelaide, Australia
Thumbs Up  [MOD] Animated weather icons in PM3.HD home screen
Post: #1
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.
find quote
ronie Offline
Team-XBMC Member
Posts: 8,985
Joined: Jan 2009
Reputation: 147
Post: #2
Thanx, this adds a really nice touch to the Home screen.
I'm now also using them in the MyWeather screen.

Cheers!

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-XBMC members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Waffa Offline
Posting Freak
Posts: 1,163
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #3
Thanks, Works also great in MiniMeedia.Nod
find quote
Heet Offline
Junior Member
Posts: 3
Joined: Jul 2009
Reputation: 0
Post: #4
Thanks alot for this! Nice job.
find quote
Moseby99 Offline
Junior Member
Posts: 32
Joined: Jan 2009
Reputation: 0
Location: Jacksonville, FL, USA
Post: #5
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 quote
ronie Offline
Team-XBMC Member
Posts: 8,985
Joined: Jan 2009
Reputation: 147
Post: #6
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.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-XBMC members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Moseby99 Offline
Junior Member
Posts: 32
Joined: Jan 2009
Reputation: 0
Location: Jacksonville, FL, USA
Post: #7
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!!!!
find quote