2020-05-12, 17:44
Hello
I am using yahoo weather widget on my Kodi. I am creating my own skin for weather.
My question is..
I have contents as below
<content>
<item id="1">
<label>$INFO[Window(weather).Property(Daily.1.LongDay)], $INFO[Window(weather).Property(Daily.1.LongDate)]</label>
<icon>$VAR[VarWeatherHomeIcon]$INFO[Window(Weather).Property(Current.OutlookIcon)]</icon>
<thumb></thumb>
<property name="Temperature">$LOCALIZE[143] $INFO[Window(Weather).Property(Current.Temperature)]°</property>
<property name="Humidity">$LOCALIZE[406]: $INFO[Window(Weather).Property(Current.Humidity)]</property>
<property name="FeelsLike">$LOCALIZE[402]: $INFO[Window(Weather).Property(Current.FeelsLike)]°</property>
<property name="HighTemperature">$INFO[Window(weather).Property(Current.HighTemperature)]</property>
<property name="LowTemperature">$INFO[Window(weather).Property(Current.LowTemperature)]</property>
<property name="DayOutlook">$INFO[Window(Weather).Property(Current.Condition)]</property>
<property name="Wind">$LOCALIZE[383]: $INFO[Window(Weather).Property(Current.Wind)]</property>
<property name="Location">$INFO[Window(Weather).Property(Current.Location)]</property>
<property name="Provider">$INFO[Window(Weather).Property(WeatherProvider)]</property>
<property name="ProviderLogo">$INFO[Window(Weather).Property(WeatherProviderLogo)]</property>
<property name="Background">resource://resource.images.weatherfanart.multi/$INFO[Window(Weather).Property(Current.FanartCode)]</property>
</item>
<item id="2">
<label>$INFO[Window(weather).Property(Daily.2.LongDay)], $INFO[Window(weather).Property(Daily.2.LongDate)]</label>
<icon>$VAR[VarWeatherHomeIcon]$INFO[Window(Weather).Property(Daily.2.OutlookIcon)]</icon>
<thumb></thumb>
<property name="Humidity">$LOCALIZE[406]: $INFO[Window(Weather).Property(Daily.2.Humidity)]</property>
<property name="FeelsLike">$LOCALIZE[402]: $INFO[Window(Weather).Property(Daily.2.FeelsLike)]</property>
<property name="HighTemperature">$INFO[Window(weather).Property(Daily.2.HighTemperature)]</property>
<property name="LowTemperature">$INFO[Window(weather).Property(Daily.2.LowTemperature)]</property>
<property name="DayOutlook">$INFO[Window(weather).Property(Day1.Outlook)]</property>
<property name="Background">special://skin/backgrounds/WETTERDEFAULT.jpg</property>
</item>
...
</content>
then I want to display "Humidity" value today( item id="1") and day2( item id="2") each of them.
How to use control label?
For example
<control type="label">
<left>50</left>
<top>280</top>
<width>420</width>
<height>36</height>
<font>primal_15</font>
<label>$INFO[ListItem.Property(Humidity)]</label>
<textcolor>$VAR[ColorFontNormal]</textcolor>
<shadowcolor>$VAR[ColorFontShadow]</shadowcolor>
<align>left</align>
<aligny>center</aligny>
</control>
BUT, I did not get it.
Please advise me how to get "property"?
I am using yahoo weather widget on my Kodi. I am creating my own skin for weather.
My question is..
I have contents as below
<content>
<item id="1">
<label>$INFO[Window(weather).Property(Daily.1.LongDay)], $INFO[Window(weather).Property(Daily.1.LongDate)]</label>
<icon>$VAR[VarWeatherHomeIcon]$INFO[Window(Weather).Property(Current.OutlookIcon)]</icon>
<thumb></thumb>
<property name="Temperature">$LOCALIZE[143] $INFO[Window(Weather).Property(Current.Temperature)]°</property>
<property name="Humidity">$LOCALIZE[406]: $INFO[Window(Weather).Property(Current.Humidity)]</property>
<property name="FeelsLike">$LOCALIZE[402]: $INFO[Window(Weather).Property(Current.FeelsLike)]°</property>
<property name="HighTemperature">$INFO[Window(weather).Property(Current.HighTemperature)]</property>
<property name="LowTemperature">$INFO[Window(weather).Property(Current.LowTemperature)]</property>
<property name="DayOutlook">$INFO[Window(Weather).Property(Current.Condition)]</property>
<property name="Wind">$LOCALIZE[383]: $INFO[Window(Weather).Property(Current.Wind)]</property>
<property name="Location">$INFO[Window(Weather).Property(Current.Location)]</property>
<property name="Provider">$INFO[Window(Weather).Property(WeatherProvider)]</property>
<property name="ProviderLogo">$INFO[Window(Weather).Property(WeatherProviderLogo)]</property>
<property name="Background">resource://resource.images.weatherfanart.multi/$INFO[Window(Weather).Property(Current.FanartCode)]</property>
</item>
<item id="2">
<label>$INFO[Window(weather).Property(Daily.2.LongDay)], $INFO[Window(weather).Property(Daily.2.LongDate)]</label>
<icon>$VAR[VarWeatherHomeIcon]$INFO[Window(Weather).Property(Daily.2.OutlookIcon)]</icon>
<thumb></thumb>
<property name="Humidity">$LOCALIZE[406]: $INFO[Window(Weather).Property(Daily.2.Humidity)]</property>
<property name="FeelsLike">$LOCALIZE[402]: $INFO[Window(Weather).Property(Daily.2.FeelsLike)]</property>
<property name="HighTemperature">$INFO[Window(weather).Property(Daily.2.HighTemperature)]</property>
<property name="LowTemperature">$INFO[Window(weather).Property(Daily.2.LowTemperature)]</property>
<property name="DayOutlook">$INFO[Window(weather).Property(Day1.Outlook)]</property>
<property name="Background">special://skin/backgrounds/WETTERDEFAULT.jpg</property>
</item>
...
</content>
then I want to display "Humidity" value today( item id="1") and day2( item id="2") each of them.
How to use control label?
For example
<control type="label">
<left>50</left>
<top>280</top>
<width>420</width>
<height>36</height>
<font>primal_15</font>
<label>$INFO[ListItem.Property(Humidity)]</label>
<textcolor>$VAR[ColorFontNormal]</textcolor>
<shadowcolor>$VAR[ColorFontShadow]</shadowcolor>
<align>left</align>
<aligny>center</aligny>
</control>
BUT, I did not get it.
Please advise me how to get "property"?