Raspberry Pi - Home.xml + CPU Temperature
#1
Is it possible to edit Home.xml at MY XBMC, not at GITHUB and add:

System.CPUTemperature and System.GPUTemperature labels so I can see the Rapberry Pi Temperatures below the Clock (top right corner)?
(http://wiki.xbmc.org/index.php?title=InfoLabels)


Code:
    <include>Clock</include>
        <control type="label">
            <description>Date label</description>
            <posx>20r</posx>
            <posy>35</posy>
            <width>200</width>
            <height>15</height>
            <align>right</align>
            <aligny>center</aligny>
            <font>font10</font>
            <textcolor>white</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>$INFO[System.Date]</label>
            <include>Window_OpenClose_Animation</include>
            <animation effect="slide" start="0,0" end="-40,0" time="100" condition="Window.IsVisible(Mutebug)">conditional</animation>
        </control>

How can I add it? Dont know how to handle the <posx>, <posy>, <width> and <height>

Can someone help me please?
thanks!
Reply
#2
Anyone please?
Reply
#3
Insert this code after the clock/date code you posted.
It has the same text structure as the date, just shifted in the y direction.

Code:
<control type="label">
            <description>CPU Temp</description>
            <posx>20r</posx>
            <posy>60</posy>
            <width>200</width>
            <height>15</height>
            <align>right</align>
            <aligny>center</aligny>
            <font>font10</font>
            <textcolor>white</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>CPU Temp: $INFO[System.CPUTemperature]</label>
            <include>Window_OpenClose_Animation</include>
            <animation effect="slide" start="0,0" end="-40,0" time="100" condition="Window.IsVisible(Mutebug)">conditional</animation>
        </control>

        <control type="label">
            <description>GPU Temp</description>
            <posx>20r</posx>
            <posy>75</posy>
            <width>200</width>
            <height>15</height>
            <align>right</align>
            <aligny>center</aligny>
            <font>font10</font>
            <textcolor>white</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>GPU Temp: $INFO[System.GPUTemperature]</label>
            <include>Window_OpenClose_Animation</include>
            <animation effect="slide" start="0,0" end="-40,0" time="100" condition="Window.IsVisible(Mutebug)">conditional</animation>
        </control>

Note: the CPU and GPU temperatures for the raspberry pi should be similar as they are on the same chip.
Reply
#4
Thanks! Will insert it!
Reply
#5
Didn't worked..
Reply
#6
That's odd. It worked on my raspberry pi (openelec) and desktop.
Might be the formatting, looks like the first line didn't post correctly (<control type="label"> should line up with </control>).

Check that the bottom lines of Home.xml look like the code below.
And then make sure to either reload the skin or reboot xbmc.

Code:
        <include>Clock</include>
        <control type="label">
            <description>Date label</description>
            <posx>20r</posx>
            <posy>35</posy>
            <width>200</width>
            <height>15</height>
            <align>right</align>
            <aligny>center</aligny>
            <font>font10</font>
            <textcolor>white</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>$INFO[System.Date]</label>
            <include>Window_OpenClose_Animation</include>
            <animation effect="slide" start="0,0" end="-40,0" time="100" condition="Window.IsVisible(Mutebug)">conditional</animation>
        </control>
        <control type="label">
            <description>CPU Temp</description>
            <posx>20r</posx>
            <posy>60</posy>
            <width>200</width>
            <height>15</height>
            <align>right</align>
            <aligny>center</aligny>
            <font>font10</font>
            <textcolor>white</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>CPU Temp: $INFO[System.CPUTemperature]</label>
            <include>Window_OpenClose_Animation</include>
            <animation effect="slide" start="0,0" end="-40,0" time="100" condition="Window.IsVisible(Mutebug)">conditional</animation>
        </control>
        <control type="label">
            <description>GPU Temp</description>
            <posx>20r</posx>
            <posy>75</posy>
            <width>200</width>
            <height>15</height>
            <align>right</align>
            <aligny>center</aligny>
            <font>font10</font>
            <textcolor>white</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>GPU Temp: $INFO[System.GPUTemperature]</label>
            <include>Window_OpenClose_Animation</include>
            <animation effect="slide" start="0,0" end="-40,0" time="100" condition="Window.IsVisible(Mutebug)">conditional</animation>
        </control>
    </controls>    
</window>

-Matt
Reply
#7
UPDATE:

Its working!

I'm using a nightly build so the xmbc is pointed to xbmc-current. I was using the wrong path.
Thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
Raspberry Pi - Home.xml + CPU Temperature0