Weather code problem
#1
hello
I have trouble understanding the weather code
I would like added days of weather.
Currently the code that Jeroen had is
Right now / current
Today / day0
Tomorrow / day1
after tomorrow / day2
after after tomorrow / day 3
after after after tomorrow / day 4
I would like added .. 4 days more

So I duplicate code of jeroen,

Example:
PHP Code:
<label> $ INFO [Window.Property (Day4.Title)] </ label

becomes:
PHP Code:
<label> $ INFO [Window.Property (Day5.Title)] </ label 
>

Etc. .. for all other codes.

But it does not work. nothing appears. I need regular.

I duplicated all groups correctly.
I check with aeon nox. daily uses, instead of day
PHP Code:
<label> $ INFO [Window (weather) .Property (Daily.1.LongDay)] </ label

And I would use as longdate, but it does not work as my mod! .
PHP Code:
<label2> $ INFO [Window (weather) .Property (Daily.1.LongDate)] </ label2

I looked in the wiki, but I have not found anything, just a few lines. Is there a place with more explanation?


Have you any idea? Thx for your help

Image
Reply
#2
You have only Days 0-6 avaiable see here:

http://wiki.xbmc.org/?title=InfoLabels#Weather_labels
Reply
#3
Ok thank you, I had seen that, but I still do not understand why AEON Nox or Confluence for example , can display 10 day forecast , all right?
So I used "daily.7. " like these skins. and Not work for me Sad
The mystery of the code (Da vinci code lol)
Reply
#4
here is my coding, and an image of the result. If someone could check and tell me what's wrong! thank you
Image

PHP Code:
<control type="group">
            <
left>55</left>
            <
top>100</top>
            <include>
toggle_Menu</include>
            <include>
transition_Content</include>
            <!--
current-->
            <
control type="group" id="5000">
                <
onleft>6000</onleft>
                <
animation type="WindowOpen">
                    <
effect type="fade" start="0" end="85" time="300"/>
                </
animation>
                <
control type="image">
                    <
width>229</width>
                    <
height>344</height>
                    <
texture>white.png</texture>
                    <
colordiffuse>column3</colordiffuse>
                </
control>            
                <
control type="group">
                    <
left>10</left>
                    <
top>10</top>
                    <
control type="label">
                        <
width>210</width>
                        <
label>$LOCALIZE[31605]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="label">
                        <
top>30</top>
                        <
width>210</width>
                        <
label>$INFO[Weather.Conditions]</label>
                        <
font>regular</font>
                        <
align>center</align>
                    </
control>
                    <
control type="image">
                        <
top>75</top>
                        <
width>210</width>
                        <
height>72</height>
                        <
texture colordiffuse="weather">$INFO[Window.Property(Current.FanartCode),weather/,.png]</texture>
                        <
aspectratio align="center">keep</aspectratio>
                    </
control>
                    <
control type="label">
                    <
top>160</top>
                            <
label>$INFO[Window.Property(Current.Temperature)]$INFO[System.TemperatureUnits]</label>
                            <
width>210</width>
                            <
font>black_huge</font>
                            <
align>center</align>
                        </
control>
                    <
control type="grouplist">
                        <
top>200</top>
                        <
orientation>vertical</orientation>
                        <
itemgap>0</itemgap>                        
                        <
control type="label">
                            <
label>$LOCALIZE[405]: $INFO[Window(Weather).Property(Current.DewPoint)]</label>
                            <
width>210</width>
                            <
font>regular</font>
                            <
align>center</align>
                        </
control>                        
                        <
control type="label">
                            <
label>$LOCALIZE[406]: $INFO[Window(Weather).Property(Current.Humidity)]</label>
                            <
width>210</width>
                            <
font>regular</font>
                            <
align>center</align>
                        </
control>
                        <
control type="label">
                            <
label>$LOCALIZE[403]: $INFO[Window(Weather).Property(Current.UVIndex)]</label>
                            <
width>210</width>
                            <
font>regular</font>
                            <
align>center</align>
                        </
control>
                        <
control type="label">
                            <
label>$LOCALIZE[404]: $INFO[Window(Weather).Property(Current.Wind)]</label>
                            <
width>210</width>
                            <
font>regular</font>
                            <
align>center</align>
                            <
aligny>top</aligny>
                            <
wrapmultiline>true</wrapmultiline>
                        </
control>
                    </
control>
                </
control>
            </
control>
            <!--
today day 1-->
            <
control type="group">
                <
left>235</left>
                <
animation type="WindowOpen">
                    <
effect type="fade" start="0" end="85" time="300" delay="100"/>
                </
animation>
                <
control type="image">
                    <
width>229</width>
                    <
height>344</height>
                    <
texture>white.png</texture>
                    <
colordiffuse>column3</colordiffuse>
                </
control>                
                <
control type="group">
                    <
left>10</left>
                    <
top>10</top>
                    <
control type="label">
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.1.LongDay)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="label">
                    <
top>25</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.1.ShortDate)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="textbox">
                        <
top>45</top>
                        <
width>210</width>
                        <
height>65</height>
                        <
label>$INFO[Window.Property(Daily.1.Outlook)]</label>
                        <
font>regular</font>
                        <
align>center</align>
                    </
control>
                    <
control type="image">
                        <
top>115</top>
                        <
width>210</width>
                        <
height>128</height>
                            <
texture colordiffuse="weather">$INFO[Window.Property(Daily.1.FanartCode),weather/,.png]</texture><aspectratio align="center">keep</aspectratio>
                    </
control>
                    <
control type="label">
                        <
top>260</top>
                        <
width>210</width>
                            <
label>$INFO[Window.Property(Daily.1.HighTemperature),, / ]$INFO[Window.Property(Daily.1.LowTemperature)]</label>
                        <
font>semibold</font>
                        <
align>center</align>
                    </
control>
                </
control>
            </
control>
            <!--
day 2-->
            <
control type="group">
                <
left>470</left>
                <
animation type="WindowOpen">
                    <
effect type="fade" start="0" end="85" time="300" delay="200"/>
                </
animation>
                <
control type="image">
                    <
width>229</width>
                    <
height>344</height>
                    <
texture>white.png</texture>
                    <
colordiffuse>column3</colordiffuse>
                </
control>            
                <
control type="group">
                    <
left>10</left>
                    <
top>10</top>
                    <
control type="label">
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.2.LongDay)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="label">
                    <
top>25</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.2.ShortDate)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="textbox">
                        <
top>45</top>
                        <
width>210</width>
                        <
height>65</height>
                        <
label>$INFO[Window.Property(Daily.2.Outlook)]</label>
                        <
font>regular</font>
                        <
align>center</align>
                    </
control>                    
                    <
control type="image">
                        <
top>115</top>
                        <
width>210</width>
                        <
height>128</height>
                            <
texture colordiffuse="weather">$INFO[Window.Property(Daily.2.FanartCode),weather/,.png]</texture>
                        <
aspectratio align="center">keep</aspectratio>
                    </
control>
                    <
control type="label">
                        <
top>260</top>
                        <
width>210</width>
                            <
label>$INFO[Window.Property(Daily.2.HighTemperature),, / ]$INFO[Window.Property(Daily.2.LowTemperature)]</label>
                <
font>semibold</font>
                        <
align>center</align>
                    </
control>
                </
control>
            </
control>
            <!--
day 3-->
            <
control type="group">
                <
left>705</left>
                <
animation type="WindowOpen">
                    <
effect type="fade" start="0" end="85" time="300" delay="300"/>
                </
animation>
                <
control type="image">
                    <
width>229</width>
                    <
height>344</height>
                    <
texture>white.png</texture>
                    <
colordiffuse>column3</colordiffuse>
                </
control>                
                <
control type="group">
                    <
left>10</left>
                    <
top>10</top>
                    <
control type="label">
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.3.LongDay)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="label">
                    <
top>25</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.3.ShortDate)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="textbox">
                        <
top>45</top>
                        <
width>210</width>
                        <
height>65</height>
                        <
label>$INFO[Window.Property(Daily.3.Outlook)]</label>
                        <
font>regular</font>
                        <
align>center</align>
                    </
control>
                    <
control type="image">
                        <
top>115</top>
                        <
width>210</width>
                        <
height>128</height>
                        <
texture colordiffuse="weather">$INFO[Window.Property(Daily.3.FanartCode),weather/,.png]</texture>
                            <
aspectratio align="center">keep</aspectratio>
                    </
control>
                    <
control type="label">
                        <
top>260</top>
                        <
width>210</width>
                            <
label>$INFO[Window.Property(Daily.3.HighTemperature),, / ]$INFO[Window.Property(Daily.3.LowTemperature)]</label>
                    <
font>semibold</font>
                        <
align>center</align>
                    </
control>
                </
control>
            </
control>
            <!--
day 4-->
            <
control type="group">
                <
left>940</left>
                <
animation type="WindowOpen">
                    <
effect type="fade" start="0" end="85" time="300" delay="400"/>
                </
animation>
                <
control type="image">
                    <
width>229</width>
                    <
height>344</height>
                    <
texture>white.png</texture>
                    <
colordiffuse>column3</colordiffuse>
                </
control>                
                <
control type="group">
                    <
left>10</left>
                    <
top>10</top>
                    <
control type="label">
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.4.LongDay)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="label">
                    <
top>25</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.4.ShortDate)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="textbox">
                        <
top>45</top>
                        <
width>210</width>
                        <
height>65</height>
                        <
label>$INFO[Window.Property(Daily.4.Outlook)]</label>
                        <
font>regular</font>
                        <
align>center</align>
                    </
control>                
                    <
control type="image">
                        <
top>115</top>
                        <
width>210</width>
                        <
height>128</height>
                        <
texture colordiffuse="weather">$INFO[Window.Property(Daily.4.FanartCode),weather/,.png]</texture>
                            <
aspectratio align="center">keep</aspectratio>
                    </
control>
                    <
control type="label">
                        <
top>260</top>
                        <
width>210</width>
                            <
label>$INFO[Window.Property(Daily.4.HighTemperature),, / ]$INFO[Window.Property(Daily.4.LowTemperature)]</label>
                    <
font>semibold</font>
                        <
align>center</align>
                    </
control>
                </
control>
            </
control>
            <!--
Day 5-->
            <
control type="group">
            <
visible>!IsEmpty(Window.Property(Daily.IsFetched))</visible>
                <
left>0</left>
                <
top>350</top>
                <
animation type="WindowOpen">
                    <
effect type="fade" start="0" end="85" time="300" delay="400"/>
                </
animation>
                <
control type="image">
                    <
width>229</width>
                    <
height>255</height>
                    <
texture>white.png</texture>
                    <
colordiffuse>column3</colordiffuse>
                </
control>                
                <
control type="group">                
                    <
left>10</left>
                    <
top>10</top>
                    <
control type="label">
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.5.LongDay)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="label">
                    <
top>25</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.5.ShortDate)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="textbox">
                        <
top>45</top>
                        <
width>210</width>
                        <
height>65</height>
                        <
label>$INFO[Window.Property(Daily.5.Outlook)]</label>
                        <
font>regular</font>
                        <
align>center</align>
                    </
control>
                    <
control type="image">
                        <
top>100</top>
                        <
left>53</left>
                        <
width>100</width>
                        <
height>60</height>
                            <
texture colordiffuse="weather">$INFO[Window.Property(Daily.5.FanartCode),weather/,.png]</texture>
                            <
aspectratio align="center">keep</aspectratio>
                    </
control>
                    <
control type="label">
                        <
top>200</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.5.HighTemperature),, / ]$INFO[Window.Property(Daily.5.LowTemperature)]</label>
                    <
font>semibold</font>
                        <
align>center</align>
                    </
control>
                </
control>
            </
control>
            <!--
Day 6-->
            <
control type="group">
            <
visible>!IsEmpty(Window.Property(Daily.IsFetched))</visible>
                <
left>235</left>
                <
top>350</top>
                <
animation type="WindowOpen">
                    <
effect type="fade" start="0" end="85" time="300" delay="400"/>
                </
animation>
                <
control type="image">
                    <
width>229</width>
                    <
height>255</height>
                    <
texture>white.png</texture>
                    <
colordiffuse>column3</colordiffuse>
                </
control>                
                <
control type="group">                
                    <
left>10</left>
                    <
top>10</top>
                    <
control type="label">
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.6.LongDay)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="label">
                    <
top>25</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.6.ShortDate)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="textbox">
                        <
top>45</top>
                        <
width>210</width>
                        <
height>65</height>
                        <
label>$INFO[Window.Property(Daily.6.Outlook)]</label>
                        <
font>regular</font>
                        <
align>center</align>
                    </
control>
                    <
control type="image">
                        <
top>100</top>
                        <
left>53</left>
                        <
width>100</width>
                        <
height>60</height>
                            <
texture colordiffuse="weather">$INFO[Window.Property(Daily.6.FanartCode),weather/,.png]</texture>
                            <
aspectratio align="center">keep</aspectratio>
                    </
control>
                    <
control type="label">
                        <
top>200</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.6.HighTemperature),, / ]$INFO[Window.Property(Daily.6.LowTemperature)]</label>
                    <
font>semibold</font>
                        <
align>center</align>
                    </
control>
                </
control>
            </
control>
            <!--
Day 7-->
            <
control type="group">
            <
visible>!IsEmpty(Window.Property(Daily.IsFetched))</visible>
                <
left>470</left>
                <
top>350</top>
                <
animation type="WindowOpen">
                    <
effect type="fade" start="0" end="85" time="300" delay="400"/>
                </
animation>
                <
control type="image">
                    <
width>229</width>
                    <
height>255</height>
                    <
texture>white.png</texture>
                    <
colordiffuse>column3</colordiffuse>
                </
control>                
                <
control type="group">                
                    <
left>10</left>
                    <
top>10</top>
                    <
control type="label">
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.7.LongDay)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="label">
                    <
top>25</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.7.ShortDate)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="textbox">
                        <
top>45</top>
                        <
width>210</width>
                        <
height>65</height>
                        <
label>$INFO[Window.Property(Daily.7.Outlook)]</label>
                        <
font>regular</font>
                        <
align>center</align>
                    </
control>
                    <
control type="image">
                        <
top>100</top>
                        <
left>53</left>
                        <
width>100</width>
                        <
height>60</height>
                            <
texture colordiffuse="weather">$INFO[Window.Property(Daily.7.FanartCode),weather/,.png]</texture>
                            <
aspectratio align="center">keep</aspectratio>
                    </
control>
                    <
control type="label">
                        <
top>200</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.7.HighTemperature),, / ]$INFO[Window.Property(Daily.7.LowTemperature)]</label>
                    <
font>semibold</font>
                        <
align>center</align>
                    </
control>
                </
control>
            </
control>
            <!--
Day 8-->
            <
control type="group">
            <
visible>!IsEmpty(Window.Property(Daily.IsFetched))</visible>
                <
left>705</left>
                <
top>350</top>
                <
animation type="WindowOpen">
                    <
effect type="fade" start="0" end="85" time="300" delay="400"/>
                </
animation>
                <
control type="image">
                    <
width>229</width>
                    <
height>255</height>
                    <
texture>white.png</texture>
                    <
colordiffuse>column3</colordiffuse>
                </
control>                
                <
control type="group">                
                    <
left>10</left>
                    <
top>10</top>
                    <
control type="label">
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.8.LongDay)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="label">
                    <
top>25</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.8.ShortDate)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="textbox">
                        <
top>45</top>
                        <
width>210</width>
                        <
height>65</height>
                        <
label>$INFO[Window.Property(Daily.8.Outlook)]</label>
                        <
font>regular</font>
                        <
align>center</align>
                    </
control>
                    <
control type="image">
                        <
top>100</top>
                        <
left>53</left>
                        <
width>100</width>
                        <
height>60</height>
                            <
texture colordiffuse="weather">$INFO[Window.Property(Daily.8.FanartCode),weather/,.png]</texture>
                            <
aspectratio align="center">keep</aspectratio>
                    </
control>
                    <
control type="label">
                        <
top>200</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.8.HighTemperature),, /]$INFO[Window.Property(Daily.8.LowTemperature)]</label>
                    <
font>semibold</font>
                        <
align>center</align>
                    </
control>
                </
control>
            </
control>
            <!--
Day 9-->
            <
control type="group">
            <
visible>!IsEmpty(Window.Property(Daily.IsFetched))</visible>
                <
left>940</left>
                <
top>350</top>
                <
animation type="WindowOpen">
                    <
effect type="fade" start="0" end="85" time="300" delay="400"/>
                </
animation>
                <
control type="image">
                    <
width>229</width>
                    <
height>255</height>
                    <
texture>white.png</texture>
                    <
colordiffuse>column3</colordiffuse>
                </
control>                
                <
control type="group">                
                    <
left>10</left>
                    <
top>10</top>
                    <
control type="label">
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.9.LongDay)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="label">
                    <
top>25</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.9.ShortDate)]</label>
                        <
font>semibold-U</font>
                        <
align>center</align>
                        <
textcolor>Color1</textcolor>
                    </
control>
                    <
control type="textbox">
                        <
top>45</top>
                        <
width>210</width>
                        <
height>65</height>
                        <
label>$INFO[Window.Property(Daily.9.Outlook)]</label>
                        <
font>regular</font>
                        <
align>center</align>
                    </
control>
                    <
control type="image">
                        <
top>100</top>
                        <
left>53</left>
                        <
width>100</width>
                        <
height>60</height>
                            <
texture colordiffuse="weather">$INFO[Window.Property(Daily.9.FanartCode),weather/,.png]</texture>
                            <
aspectratio align="center">keep</aspectratio>
                    </
control>
                    <
control type="label">
                        <
top>200</top>
                        <
width>210</width>
                        <
label>$INFO[Window.Property(Daily.9.HighTemperature),, /]$INFO[Window.Property(Daily.9.LowTemperature)]</label>
                    <
font>semibold</font>
                        <
align>center</align>
                    </
control>
                </
control>
            </
control>
            <
visible>Skin.HasSetting(more.weather)</visible>
        </
control
Reply
#5
Check what the other skins are using and you'll probably find the answer is a different weather addon.
Reply
#6
You need the Weather Underground add-on if you want extended weather infos. Skins usually tend to implement 2 weather designs, one for Weather Underground and one for all other weather add-ons.
Image
Reply
#7
Ok, thank I installed the add and I added it
<visible>! IsEmpty (Window.Property (Daily.IsFetched)) </ visible>

Now well work with this addon and other addon, just the blank screen. ! it suits me. Thank you for your help!
Reply

Logout Mark Read Team Forum Stats Members Help
Weather code problem0