Kodi Community Forum

Full Version: I kinda got IP address to show on the front page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'd like to show my current IP address on the main front screen when loading Kodi and using this skin.

I lifted this from here but changed the vaule of the left setting to 500 https://gist.github.com/bonelifer/37c3a5884c9c3c867fc4 and added it to he home.xml file in the estuary skin folder and it works, kinda.  Sorry am not used to playnig with skins, so sorry for my ignorance or incorrect term usage.

<control type="label">
<description>IP Address</description>
<left>500</left>
<top>5</top>
<height>49</height>
<width min="200" max="300">auto</width>
<label>IP: $INFO[Network.IPAddress]</label>
<align>left</align>
<aligny>center</aligny>
<font>font12</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
</control>

I have 1 problem and 1 question.

1:  Even though the IP address is shown, it is very dim in colour.  I think this is because the IP address is layed behind at the top of the screen a fading bar?  Do that make sense?  Can you please advise how I can bring this setting to the front of the page/screen? or?

2: I pasted the above directly under 

<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol>9000</defaultcontrol>
    <backgroundcolor>background</backgroundcolor>
    <controls>

Thus bumping the next entry 

        </control>
        <control type="button" id="20000">

To second place you could say.

Am I ok having the IP address portion at the top or should I place it elsewhere in the home.xml file?

Thanks for reading and any possible help.

Cheers
there is no need to add a control for this, it already exists as TopBar which is defined here - https://github.com/phil65/skin.estuary/b...s.xml#L874

it's at position top 0 left 0 width 110% put your label in breadcrumbs_label in home.xml at the bottom - https://github.com/phil65/skin.estuary/b....xml#L1058

put it in the empty value="" and to achieve the left offset 500 simply space pad it to suite like such - value="                  IP: $INFO[Network.IPAddress]"
ahh, that is great, thank you very much and thank you for your speedy reply.

This works a treat.  Is it possible though to control/reduce the szie of the font?

I tried adding in <font>font12</font> in some places in that section with no effect.

Cheers again.
to change the font for TopBar you would change its definition in includes, fairly certain it would work here (but no guarantee) - https://github.com/phil65/skin.estuary/b...s.xml#L901
Cool, not exactly in the section I was looking at but I scrolled further down and saw this: (line 1085)

<include name="BreadcrumbsLabel">
        <font>font45</font>
        <shadowcolor>text_shadow</shadowcolor>
        <top>7</top>
        <height>100</height>
        <width>auto</width>

Edited it to 12 and looks perfect

Thank you very much yet again.
my pleasure, glad i could help
the best place to add any text is after <include>OpenClose_Right</include>
Thread marked solved.