2014-09-17, 22:35
Check below posts for a new way to do this.
Thanks
Thanks
Quote:I am very new to this thing of skinning and i am not really in the right mood, or have the time to learn everything from scratch.
At least i am trying.
I am pretty sure there is a right way to do this, as i am sure i have done it the wrong way, but it works, and at least for me it is fine.
Making this change you will be able to see the weather temperature and the weather condition (icon that shows if it rains and so on) exactly next to time. There is some empty space in that graphic. I would also like to make that background/container a bit bigger so that i can add Weather Location but, it will overlap with dropdown info and i am not sure, at least for me that i need this, or that it will look nice. Not that the drop down info is always there but anyway.
To add Weather temperature and Weather condition next to the clock edit Home.xml located in %appdata%\XBMC\addons\skin.amber\1080i (if you are in windows copy paste this at the file explorer bar.
Keep a backup of the file before you edit it.
There are 2 ways to do it. Easy and a second one not that hard but you will have to do some work. Try them both if the first one does not work.
Just delete everything in that file and paste everything below in it. This is the easy way i guess.
Code:<?xml version="1.0" encoding="UTF-8"?>
<window id="0">
<defaultcontrol always="true">300</defaultcontrol>
<onload condition="System.HasAddon(plugin.video.plexbmc) + Skin.HasSetting(plexbmc)">RunScript(plugin.video.plexbmc,amberskin,nocat)</onload>
<!--<onload condition="System.HasAddon(plugin.video.plexbmc) + Skin.HasSetting(plexbmc)">RunScript(plugin.video.plexbmc,channelShelf)</onload>-->
<onload condition="!Skin.HasSetting(Hide.Favourites)">RunScript(script.favourites)</onload>
<onload condition="!Skin.HasSetting(plexbmc)">SetProperty(SkinWidgets_RandomItems_Update,true)</onload>
<controls>
<include condition="Skin.HasSetting(Home_DefaultBG)">Default_Art</include>
<control type="multiimage">
<visible>![Player.HasVideo + Skin.HasSetting(Show_Player)] + !Skin.HasSetting(Home_DefaultBG)</visible>
<include>Dimensions_Fullscreen</include>
<timeperimage>12000</timeperimage>
<fadetime>400</fadetime>
<imagepath background="true">$INFO[Container(300).ListItem.Icon]</imagepath>
<randomize>true</randomize>
<aspectratio aligny="top">scale</aspectratio>
</control>
<control type="visualisation">
<visible>Player.HasAudio + Skin.HasSetting(Show_Player)</visible>
<posx>0</posx>
<posy>0</posy>
<width>1920</width>
<height>1080</height>
</control>
<control type="videowindow">
<visible>Player.HasVideo + Skin.HasSetting(Show_Player)</visible>
<posx>0</posx>
<posy>0</posy>
<width>1920</width>
<height>1080</height>
</control>
<control type="group" description="Content">
<!--<include>OpenClose</include>-->
<animation effect="fade" start="0" end="100" time="1000" condition="Window.Previous(Startup.xml)">Conditional</animation>
<animation effect="fade" start="0" end="100" time="200" condition="!Window.Previous(Startup.xml)">Conditional</animation>
<include condition="Skin.HasSetting(VerticalHome)">Vertical_Home_Layout</include>
<include condition="!Skin.HasSetting(VerticalHome)">Horizontal_Home_Layout</include>
<control type="group" description="RSS">
<visible>system.getbool(lookandfeel.enablerssfeeds)</visible>
<control type="image">
<visible>!Skin.HasSetting(VerticalHome)</visible>
<posx>0</posx>
<posy>990</posy>
<width>590</width>
<height>90</height>
<texture flipx="true" border="100,0,0,0">common/TimePanel.png</texture>
</control>
<control type="rss" description="RSS Feed">
<posx>21</posx>
<posy>1044</posy>
<width>480</width>
<height>90</height>
<font>rss</font>
<urlset>1</urlset>
<shadowcolor>ShadowDark</shadowcolor>
<titlecolor>White2</titlecolor>
<headlinecolor>White2</headlinecolor>
<textcolor>Grey</textcolor>
</control>
</control>
<include>Time</include>
<control type="group">
<include condition="Skin.HasSetting(Show_Library_Count)">Library_Count</include>
</control>
</control>
<control type="group">
<animation effect="slide" start="0,0" end="531,0" time="250" delay="0" reversible="true" condition="Skin.HasSetting(VerticalHome) + Skin.HasSetting(plexbmc) + Control.HasFocus(311) + !IsEmpty(Container(311).ListItem.Property(Plot))">conditional</animation>
<control type="label" description="Title">
<posx>-500</posx>
<posy>90</posy>
<width>429</width>
<height>120</height>
<textcolor>Orange</textcolor>
<font>InfoTitle</font>
<align>center</align>
<label>20037</label>
</control>
<control type="image">
<description>Weather conditions</description>
<posx>1440</posx>
<posy>-4</posy>
<width>48</width>
<height>48</height>
<texture>$INFO[Weather.Conditions]</texture>
<colordiffuse>98FFFFFFF</colordiffuse>
<visible effect="fade" time="250">Weather.IsFetched</visible>
</control>
<control type="label">
<description>Weather Temperature</description>
<posx>1365</posx>
<posy>10</posy>
<width>200</width>
<height>20</height>
<label>$INFO[Weather.Temperature]</label>
<font>font13</font>
<align>left</align>
<visible effect="fade" time="250">Weather.IsFetched</visible>
</control>
<control type="textbox" description="Plot">
<posx>-500</posx>
<posy>216</posy>
<width>429</width>
<height>800</height>
<align>justify</align>
<label>$INFO[Container(311).ListItem.Property(Plot)]</label>
</control>
</control>
<include condition="Skin.HasSetting(holiday)">Holiday</include>
</controls>
</window>
Or open the file and almost at the bottom after <label>20037</label> and before <control type="textbox" description="Plot"> paste this
Code:</control>
<control type="image">
<description>Weather conditions</description>
<posx>1440</posx>
<posy>-4</posy>
<width>48</width>
<height>48</height>
<texture>$INFO[Weather.Conditions]</texture>
<colordiffuse>98FFFFFFF</colordiffuse>
<visible effect="fade" time="250">Weather.IsFetched</visible>
</control>
<control type="label">
<description>Weather Temperature</description>
<posx>1365</posx>
<posy>10</posy>
<width>200</width>
<height>20</height>
<label>$INFO[Weather.Temperature]</label>
<font>font13</font>
<align>left</align>
<visible effect="fade" time="250">Weather.IsFetched</visible>
</control>
Have fun, and if someone has a way to make the time background/container a bit bigger so that we can input weather location as well, please say so.
After the change either restart XBMC/Kodi or reload the skin.
If it does not work just replace the edited file with the one you backedup.