Help - Search - Members - Calendar
Full Version: Adding Weather Control On Frontpage Of Pmiii
Scenyx Entertainment Community > Xbox1 Forums > Software Forums > XBMC for Xbox Forums > XBMC for Xbox
Metsada
I want to add some weather control and temperature on the frontpage of PMIII, in the right upper corner. This was never a problem till i installed today a build of september 26 (ekb).

CODE

   <control>
  <description>Weather conditions</description>
  <type>image</type>
  <id>1211</id>
  <posX>536</posX>
  <posY>24</posY>
  <width>47</width>
  <height>47</height>
  <info>Weather.Conditions</info>
 <visible effect="fade" time="1000">!Player.HasAudio | ![Player.HasAudio + System.IdleTime(60)]</visible>
</control>

<control>
  <description>Weather temperature</description>
  <type>label</type>
  <id>1212</id>
  <posX>602</posX>
  <posY>35</posY>
  <info>Weather.Temperature</info>
  <font>font18</font>
  <textcolor>60ffffff</textcolor>
  <align>left</align>
 <visible effect="fade" time="1000">!Player.HasAudio | ![Player.HasAudio + System.IdleTime(60)]</visible>
</control>


This is what im using, it always worked, but now only the weather control (clouds etc) appear, the temperature is not visible.

Whats the problem?
RocafellaSqualie
Try changing the IDs to 1. I've used this ID for a while and never gave any problems. Also, you can look at mines to see if you are missing anything in between the controls.

QUOTE
<control>
<description>Weather conditions</description>
<type>image</type>
<id>1</id>
<posX>70</posX>
<posY>503</posY>
<width>45</width>
<height>49</height>
<info>Weather.Conditions</info>
<colordiffuse>98FFFFFFF</colordiffuse>
<visible effect="fade" time="1000">!Player.HasAudio | ![Player.HasAudio + System.IdleTime(60)]</visible>
</control>

<control>
<description>Weather Temperature</description>
<type>label</type>
<id>1</id>
<posX>120</posX>
<posY>503</posY>
<info>Weather.Temperature</info>
<font>special12</font>
<align>left</align>
<visible effect="fade" time="1000">!Player.HasAudio | ![Player.HasAudio + System.IdleTime(60)]</visible>
</control>

<control>
<description>Weather Location</description>
<type>label</type>
<id>1</id>
<posX>120</posX>
<posY>525</posY>
<info>Weather.Location</info>
<font>special12</font>
<align>left</align>
<visible effect="fade" time="1000">!Player.HasAudio | ![Player.HasAudio + System.IdleTime(60)]</visible>
</control>
aHorseofCourse
This way works for me (picked the tip up off the XBMC forums):
CODE

   <control>
   <description>Weather conditions</description>
   <type>image</type>
   <id>1</id>
   <posX>558</posX>
   <posY>93</posY>
   <width>45</width>
   <height>49</height>
   <info>Weather.Conditions</info>
   <colordiffuse>98FFFFFFF</colordiffuse>
   <visible>!Window.IsActive(56)</visible>
   </control>

The key seems to be the !Window.IsActive(56) line.
CatDad
You are dead on it aHorseofCourse!

I added the line


<visible>!Window.IsActive(56)</visible>

and my weather shows up now!!!

Thanks a million...The admin should pin this topic because the forum is full of people who are looking for this solution.

beerchug.gif
DjSnake86
QUOTE(CatDad @ Sep 29 2005, 01:36 AM)


and my weather shows up now!!!

beerchug.gif
*




will be it ever set by dafault again?
it was usefull...
aHorseofCourse
DJSnake86, I don't think it was ever set by default. It might have been set up that way by a release group (a PIMPED build or something like that). It's easy enough to add it to your Home.xml file if you really want it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.