Kodi Community Forum

Full Version: Date on the home screen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On Kodi 17.1 Estuary how do you get the date to show up in the right hand corner, like you were able to in Jarvis 16.1?
On the same note, i'd like to add my external IP address as well in there. Is it possible? I don't mind changing some files myself if you could kindly point me in the right direction. Thanks
The files you'll want to edit is at: %programfiles(x86)%\kodi\addons\skin.estuary\xml
Linux/Mac: http://kodi.wiki/view/Systemdata

The files to edit are Home.xml or/and Includes.xml

Includes.xml contain code that you can include in other pages.

In this case the time is formated in Includes.xml and included in Home.xml (and many other pages) using:
Quote:<include content="TopBar">
<param name="breadcrumbs_label" value="" />

The actual code for time formatting in Includes.xml is:
Quote:<control type="label">
<animation effect="fade" start="100" end="0" time="300" condition="Window.Next(screencalibration)">WindowClose</animation>

More info about adding text in skins: http://kodi.wiki/view/Skinning_Manual#Label_Control

You use InfoLabels ($INFO) to insert various built-in stuff.

To insert date you use either System.Date or System.Date(format).

As TopBar include is used on many pages it wouldn't be that good to edit it. Date will then appear on all pages and it might not fit with the time. Though you could make time a smaller font.

One idea would be to remove (better to comment out with <!--CODE-->) the Kodi logo and text and put the date code there. The logo is in Home.xml and the following code:
Quote:<control type="group">
<animation effect="slide" end="0,-90" time="300" tween="sine" easing="inout" condition="$EXP[infodialog_active]">conditional</animation>
<animation effect="fade" start="0" end="100" time="300">WindowOpen</animation>
<animation effect="fade" start="100" end="0" time="200">WindowClose</animation>
<control type="image">
<texture colordiffuse="button_focus">icons/logo.png</texture>
<control type="image">

Or you could just remove the control section for the text part part of the logo, logo-text.png. Then move it around and fit the date.

Code for adding date in place of the logo+text in the top left corner on the Home page:
Quote:<control type="label">

For the second post, you use the InfoLabel Network.IPAddress