View Full Version : Weather 'FanArt' in Horizonz - change weather backdrops based on weather condition?
PinkMargera
2009-01-06, 19:58
Hi,
just saw this thread where the weather fanart depends on which weather it actually is:
http://xbmc.org/forum/showthread.php?t=41650
Anyone got this working with Horizons?
(I'm not that much into .xml editing, gave it a try but couldn't get it working.)
Hi,
just saw this thread where the weather fanart depends on which weather it actually is:
http://xbmc.org/forum/showthread.php?t=41650
Anyone got this working with Horizons?
(I'm not that much into .xml editing, gave it a try but couldn't get it working.)
Going to try to have a play with it today if I get time. I'll post the files / steps if I'm successful.
PinkMargera
2009-01-07, 18:34
Going to try to have a play with it today if I get time. I'll post the files / steps if I'm successful.
Sounds great, would love to have it working on my box.
Sounds great, would love to have it working on my box.
Okay, I've got it working.
If you already have a custom weather backgrounds image folder on your xbox, transfer timdog82001's download to there. So you'll have something like:
xbox> E:/Images/Weather/00/
/01/
/02/
etc...
(keep the .txt file, it'll help you sort locations for adding more backgrounds later)
Then open skins/Horizonz/720p/MyWeather.xml
Then find the second <control type="multiimage"> (about line 22 it starts)
You'll see: <control type="multiimage">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<imagepath>-</imagepath>
<timeperimage>5000</timeperimage>
<fadetime>2000</fadetime>
<randomize>true</randomize>
<info>Skin.String(CustomWeatherFolder)</info>
<include>backgroundfade</include>
</control>
Where you have <imagepath>-</imagepath>
Get rid of the - and add this E:\Images\Weather\$INFO[Weather.FanartCode] (Change the part before $INFO to the location of your images)
Good luck.
And it's not very effective in Horizonz with the dark weather panel overlay (I'll work on that too).
Works lovely, Cranial. Thanks for sharing!
For Weather "fanart" on homescreen, I added exactly the same as above but in Backgrounds.xml instead.
For Weather "fanart" on homescreen, I added exactly the same as above but in Backgrounds.xml instead.
Didn't think of that. Cheers. So it still pulls correct reference of weather conditions like this?
*EDIT* Never mind, just tried it, works a treat! Cheers.
For Weather "fanart" on homescreen, I added exactly the same as above but in Backgrounds.xml instead.
Superb, thanks Impreza!
This doesn't seem to work with linux paths.
I followed the directions but only see a black background.
I have my images in /home/xbmc/bg/weather
and
/home/xbmc/bg/weather/$INFO[Weather.FanartCode] in the imagepath tag.
PinkMargera
2009-01-15, 18:37
This doesn't seem to work with linux paths.
I followed the directions but only see a black background.
I have my images in /home/xbmc/bg/weather
and
/home/xbmc/bg/weather/$INFO[Weather.FanartCode] in the imagepath tag.
Have you tried switching the "/" for "\"? Don't know if it makes any difference but why not try...
Yeah I tried both / and \ with no success.
PinkMargera
2009-01-15, 19:42
Just installed it and it works like a charm. Thanks Cranial and Imprezza!
No problem. But donīt thank me, thank Cranial for the original code and Team XBMC for making it possible.
sickboy719
2009-01-16, 00:42
Thanks for the tips here.
This is awesome. Wife doesn't get it though. "Open a f'ing window" she says.
Bet she'll be pissed when a picture of her pops up next time it's "frigid".
This doesn't seem to work with linux paths.
I followed the directions but only see a black background.
I have my images in /home/xbmc/bg/weather
and
/home/xbmc/bg/weather/$INFO[Weather.FanartCode] in the imagepath tag.
Only the latest xbmc for xbox has the code pulled from svn, so not sure if linux version has it yet. You have the latest?
hikaricore
2009-01-16, 09:15
Bet she'll be pissed when a picture of her pops up next time it's "frigid".
I bet you'll be sleeping on the couch as well. ^_^
timdog82001
2009-01-16, 09:59
Have you tried switching the "/" for "\"? Don't know if it makes any difference but why not try...
yes it does make a difference, and the one you use changes depending on whether you're using linux or whether you're using windows. It threw me off for quite a while before I figured it out.
Only the latest xbmc for xbox has the code pulled from svn, so not sure if linux version has it yet. You have the latest?
Well that probably explains it. I'll wait till the linux branch gets updated.
buryourown
2009-01-20, 03:34
I'm having trouble getting this to work in the windows version of xbmc. Everything is up to date and I changed MyWeather.xml to read as follows:
<control type="multiimage">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<imagepath>C:\XBMC\weather\$INFO[Weather.FanartCode]</imagepath>
<timeperimage>5000</timeperimage>
<fadetime>2000</fadetime>
<randomize>true</randomize>
<info>Skin.String(CustomWeatherFolder)</info>
<include>backgroundfade</include>
</control>
Is there something im missing or has anyone even got this to work on the windows xbmc?
timdog82001
2009-01-20, 07:22
try getting rid of the <info> line
buryourown
2009-01-20, 07:41
like so:
<control type="multiimage">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<imagepath>C:\XBMC\weather\$INFO[Weather.FanartCode]</imagepath>
<timeperimage>5000</timeperimage>
<fadetime>2000</fadetime>
<randomize>true</randomize>
<include>backgroundfade</include>
</control>
if that is correct its still not working, just get the default background.
any idea what else it may be?
EDIT***
Appears to be working now, not sure what happened but all is in order, thanks so much for your help!
Update. This feature now works in the latest revisions for Linux
boxterduke
2009-02-05, 23:10
Just modified my files for Horizons and it works great.
Thanks all.
StratMangler
2009-04-02, 16:13
Can't get it to work & I'm no noob ; followed the directions to the letter and I just get a black screen.
This is what my MyWeather.XML file looks like ;
<control type="multiimage">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<imagepath>C:\Weather\$INFO[Weather.FanartCode]</imagepath>
<timeperimage>5000</timeperimage>
<fadetime>2000</fadetime>
<randomize>true</randomize>
<info>Skin.String(CustomWeatherFolder)</info>
<include>backgroundfade</include>
</control>
All I did was to make sure to extract the files linked onto the original post into the aforementioned directory (C:\Weather), but no matter what I try, nothing works.
I even set that directory as the rotating weather backdrop directory, but nope. All I ever get no matter what is a black screen.
Can anybody help?
PS : I have the latest build of XBMC and am running Windows XP.
@StratMangler
Try removing the <info> tag
StratMangler
2009-04-08, 09:31
Unfortunately, that didn't change anything. I still have the Horizonz "eye" background showing and nothing else.
Is there *anything* else that I need to do apart from extracting the images to a folder, pointing Horizonz to that folder, and modifying the MyWeather.XML file?
Because I've done so and it has never worked.
Edit Backgrounds.xml instead of MyWeather.xml
StratMangler
2009-04-08, 20:24
Tried doing that, proctor. As per your advice, I restored the MyWeather.XML file to what it once was and I edited the 2nd multiimage tag in the Backgrounds.XML file instead with no change. Here's what it looks like.
<control type="multiimage">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<imagepath>c:\Program Files\XBMC\skin\Horizonz\720\backdrops\weather\$IN FO[Weather.FanartCode]</imagepath>
<timeperimage>5000</timeperimage>
<fadetime>2000</fadetime>
<randomize>true</randomize>
<info>Skin.String(CustomSettingsFolder)</info>
<visible>[[Container(302).HasFocus(8) + Control.IsVisible(302)] + [!Player.HasMedia | !Skin.HasSetting(Visualisation)]] | [[Container(301).HasFocus(8) + Control.IsVisible(301)] + [!Player.HasMedia | !Skin.HasSetting(Visualisation)]] + !Skin.HasSetting(CustomSettingsFolder)</visible>
<visible>!Control.IsVisible(87)</visible>
<include>backgroundfade</include>
</control>
nflchampion
2009-04-09, 12:00
I was having the same problem you're having now when I was setting this up today. You're modifying the wrong part of the XML. Where the one you're modifying has the following code, referring to the Settings background:
<info>Skin.String(CustomSettingsFolder)</info>
You need to find the one that has:
<info>Skin.String(CustomWeatherFolder)</info>
AND
<info>Skin.String(CustomWeather)</info>
Alter those, and switch back the settings folder to default, and you should get a multi-image weather background on the starting screen. Let me know if that works for you.
Edit: It also looks like you have a space in your $INFO. Make sure there isn't one.
StratMangler
2009-04-09, 14:26
nflchampion... I'm very very confused. Your post isn't telling me which file you're referring to.
The instructions talk about solely modifying the MyWeather.XML file, whereas proctor talks about modifying the Background.XML. Which file(s) do I need to modify?
So far, I have modified *both* the MyWeather.XML *&* Backgrounds.XML files changing the "imagepath." Can you break it down in steps, please?
This is how I have it setup. In backgrounds.xml
Look for the following line:
<info>Skin.String(CustomWeatherFolder)</info>
and edit the <imagepath> tag directly above it.
Then remove the <info> tag line.
Hey Proctor,
I did what you mentioned above and it doesn't work for me. Here is what it looks like.
<control type="multiimage">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<imagepath>/home/xbmc/.xbmc/skin/backdrops/bg/weather/$INFO[Weather.FanartCode]</imagepath>
<visible>[Container(300).HasFocus(10) + Control.IsVisible(300)] + [!Player.HasMedia | !Skin.HasSetting(Visualisation)]</visible>
<visible>!Skin.HasSetting(CustomWeather) + !Skin.HasSetting(CustomWeatherFoldOn)</visible>
<visible>!Control.IsVisible(87)</visible>
<include>backgroundfade</include>
</control>