Maya World Weather (1 Viewer)

Dragy

Portal Pro
April 27, 2009
778
333
31
Home Country
Netherlands Netherlands
I made Maya compatible with World Weather on the basichome.

Change in the basichome.xml to this
Code:
<!--Weather-->

    <control>
        <description>Weather image</description>
        <type>image</type>
        <id>1</id>
        <posX>605</posX>
        <posY>650</posY>
        <height>90</height>
        <width>90</width>
        <texture>weather/128/#WorldWeather.TodayIconNumber.png</texture>
        <visible>plugin.isenabled(World Weather)+string.contains(#maya.weather.visible,yes)</visible>
        <animation effect="fade" start="0" end="100" time="400" delay="200">WindowOpen</animation>
        <animation effect="fade" start="100" end="0" time="400" delay="200">WindowClose</animation>
    </control>

    <control>
        <description>Temp label</description>
        <type>label</type>
        <posX>705</posX>
        <posY>655</posY>
        <width>500</width>
        <label>#WorldWeather.TodayTemperature</label>
        <font>Segoe Light22</font>
        <visible>plugin.isenabled(World Weather)+string.contains(#maya.weather.visible,yes)</visible>
        <animation effect="fade" start="0" end="100" time="400" delay="200">WindowOpen</animation>
        <animation effect="fade" start="100" end="0" time="400" delay="200">WindowClose</animation>
    </control>

And replace the basichome.forcast.weather.xml content with this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<window>
  <controls>
    <control>
      <description>GROUP: Weather</description>
      <type>group</type>
      <dimColor>0xffffffff</dimColor>
      <visible>[string.contains(#bgimage1,Weather)+control.isvisible(1201)] | [string.contains(#bgimage2,Weather)+control.isvisible(1202)]+ !control.hasfocus(2)+!control.hasfocus(3)+!control.hasfocus(4)+!control.hasfocus(5)</visible>
      <animation effect="fade" start="100" end="0" time="250" reversible="false">Hidden</animation>
      <animation effect="fade" start="0" end="100" delay="700" time="500" reversible="false">Visible</animation>
      <animation effect="fade" start="0" end="100" time="400" delay="200">WindowOpen</animation>
      <animation effect="slide" end="300,0" time="1500" acceleration="-0.1" reversible="false">Hidden</animation>
      <animation effect="slide" start="300,0" end="0,0" time="1000" acceleration="-0.1" reversible="false">Visible</animation>
      <animation effect="fade" start="0" end="100" time="400" delay="200">WindowOpen</animation>
      <animation effect="fade" start="100" end="0" time="400" delay="200">WindowClose</animation>
      
   <control>
        <description>GROUP: FULL WEATHER ICONS (static)</description>
        <type>group</type>
        <dimColor>0xffffffff</dimColor>
        <visible>[string.contains(#bgimage1,Weather)+control.isvisible(1201)] | [string.contains(#bgimage2,Weather)+control.isvisible(1202)]</visible>        
        <animation effect="fade" delay="1000" time="300" tween="linear">Visible</animation>

    <control>
        <description>DAY 0 ICON</description>
        <id>0</id>
        <type>image</type>
        <texture>weather/128/#WorldWeather.TodayIconNumber.png</texture>
        <posX>935</posX>
        <posY>100</posY>
        <height>100</height>
        <width>100</width>
    </control>

    <control>
        <description>DAY 1 ICON</description>
        <id>0</id>
        <type>image</type>
        <texture>weather/128/#WorldWeather.ForecastDay1IconNumber.png</texture>
        <posX>935</posX>
        <posY>210</posY>
        <height>100</height>
        <width>100</width>
    </control>

    <control>
        <description>DAY 2 ICON</description>
        <id>0</id>
        <type>image</type>
        <texture>weather/128/#WorldWeather.ForecastDay2IconNumber.png</texture>
        <posX>935</posX>
        <posY>330</posY>
        <height>100</height>
        <width>100</width>    
    </control>

    <control>
        <description>DAY 3 ICON</description>
        <id>0</id>
        <type>image</type>
        <texture>weather/128/#WorldWeather.ForecastDay3IconNumber.png</texture>
        <posX>935</posX>
        <posY>450</posY>
        <height>100</height>
        <width>100</width>
    </control>

    <control>
        <description>DAY 4 ICON</description>
        <id>0</id>
        <type>image</type>
        <texture>weather/128/#WorldWeather.ForecastDay4IconNumber.png</texture>
        <posX>935</posX>
        <posY>570</posY>
        <height>100</height>
        <width>100</width>    
    </control>    
</control>

    <control>
        <description>Location</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1005</posX>
        <posY>65</posY>
        <width>320</width>
        <align>left</align>
        <label>#WorldWeather.Location</label>
        <font>Segoe Light18</font>
        <textcolor>ff6aa5cb</textcolor>
    </control>
    
    <control>
        <description>GROUP: FULL WEATHER</description>
        <type>group</type>
        <animation effect="fade" delay="1000" time="300" tween="linear">Visible</animation>
        <dimColor>0xffffffff</dimColor>
        

<!--     Day 1    -->
        
    <control>
        <description>DAY 1 LABEL</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1065</posX>
        <posY>120</posY>
        <align>left</align>
        <label>#(string.rtrim(L(143),':'))</label>
        <font>Segoe Light16</font>
        <textcolor>White</textcolor>
    </control>

    <control>
        <description>DAY 1 TEMP</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1315</posX>
        <posY>118</posY>
        <align>right</align>
        <label>#WorldWeather.TodayTemperature</label>
        <font>Segoe Light18</font>
        <textcolor>ffffffff</textcolor>
    </control>
    
    <control>
        <description>DAY 1 GENERAL WEATHER</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1065</posX>
        <posY>155</posY>
        <width>200</width>
        <height>50</height>
        <font>Segoe Light14</font>
        <align>left</align>
        <textcolor>85cffe</textcolor>
        <label>#WorldWeather.TodayCondition</label>
    </control>

<!--     Day 2    -->
    
    <control>
        <description>DAY 2 LABEL</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1065</posX>
        <posY>230</posY>
        <align>left</align>
        <label>#WorldWeather.ForecastDay1Day</label>
        <font>Segoe Light16</font>
        <textcolor>White</textcolor>
    </control>
    
    <control>
        <description>DAY 2 maxtemp VALUE</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1315</posX>
        <posY>228</posY>
        <align>right</align>
        <label>#WorldWeather.ForecastDay1High</label>
        <font>Segoe Light18</font>
        <textcolor>ffffffff</textcolor>
    </control>
    
    <control>
        <description>DAY 2 mintemp VALUE</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1315</posX>
        <posY>260</posY>
        <align>right</align>
        <label>#WorldWeather.ForecastDay1Low</label>
        <font>Segoe Light18</font>
        <textcolor>85cffe</textcolor>
    </control>

    <control>
        <description>DAY 2 WEATHER</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1065</posX>
        <posY>265</posY>
        <width>160</width>
        <height>50</height>
        <label>#WorldWeather.ForecastDay1Condition</label>
        <font>Segoe Light14</font>
        <align>left</align>
        <textcolor>85cffe</textcolor>
    </control>

<!--     Day 3    -->
    
    <control>
        <description>DAY 3 LABEL</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1065</posX>
        <posY>350</posY>
        <align>left</align>
        <label>#WorldWeather.ForecastDay2Day</label>
        <font>Segoe Light16</font>
        <textcolor>White</textcolor>
    </control>

    <control>
        <description>DAY 3 maxtemp VALUE</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1315</posX>
        <posY>348</posY>
        <align>right</align>
        <label>#WorldWeather.ForecastDay2High</label>
        <font>Segoe Light18</font>
        <textcolor>ffffffff</textcolor>
    </control>
    
    <control>
        <description>DAY 3 temp VALUE</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1315</posX>
        <posY>380</posY>
        <align>right</align>
        <label>#WorldWeather.ForecastDay2Low</label>
        <font>Segoe Light18</font>
        <textcolor>85cffe</textcolor>
    </control>

    <control>
        <description>DAY 3 WEATHER</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1065</posX>
        <posY>385</posY>
        <width>170</width>
        <height>50</height>
        <label>#WorldWeather.ForecastDay2Condition</label>
        <font>Segoe Light14</font>
        <align>left</align>
        <textcolor>85cffe</textcolor>
    </control>

<!--     Day 4    -->
    
    <control>
        <description>DAY 4 LABEL</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1065</posX>
        <posY>470</posY>
        <align>left</align>
        <label>#WorldWeather.ForecastDay3Day</label>
        <font>Segoe Light16</font>
        <textcolor>White</textcolor>
    </control>

    <control>
        <description>DAY 4 maxtemp VALUE</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1315</posX>
        <posY>468</posY>
        <align>right</align>
        <label>#WorldWeather.ForecastDay3High</label>
        <font>Segoe Light18</font>
        <textcolor>ffffffff</textcolor>
    </control>
    
    <control>
        <description>DAY 4 mintemp VALUE</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1315</posX>
        <posY>500</posY>
        <align>right</align>
        <label>#WorldWeather.ForecastDay3Low</label>
        <font>Segoe Light18</font>
        <textcolor>85cffe</textcolor>
    </control>
    

    <control>
        <description>DAY 4 WEATHER</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1065</posX>
        <posY>505</posY>
        <width>170</width>
        <height>50</height>
        <label>#WorldWeather.ForecastDay3Condition</label>
        <font>Segoe Light14</font>
        <align>left</align>
        <textcolor>85cffe</textcolor>
    </control>

<!--     Day 5    -->

    <control>
        <description>DAY 5 LABEL</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1065</posX>
        <posY>590</posY>
        <align>left</align>
        <label>#WorldWeather.ForecastDay4Day</label>
        <font>Segoe Light16</font>
        <textcolor>White</textcolor>
    </control>

    <control>
        <description>DAY 5 maxtemp VALUE</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1315</posX>
        <posY>588</posY>
        <align>right</align>
        <label>#WorldWeather.ForecastDay4High</label>
        <font>Segoe Light18</font>
        <textcolor>ffffffff</textcolor>
    </control>
    
    <control>
        <description>DAY 5 mintemp VALUE</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1315</posX>
        <posY>620</posY>
        <align>right</align>
        <label>#WorldWeather.ForecastDay4Low</label>
        <font>Segoe Light18</font>
        <textcolor>85cffe</textcolor>
    </control>

    <control>
        <description>DAY 5 WEATHER</description>
        <type>fadelabel</type>
        <id>0</id>
        <posX>1065</posX>
        <posY>625</posY>
        <width>170</width>
        <height>50</height>
        <label>#WorldWeather.ForecastDay4Condition</label>
        <font>Segoe Light14</font>
        <align>left</align>
        <textcolor>85cffe</textcolor>
    </control>

  </control>
</control>

  </controls>
</window>
 

gurkc006

Portal Member
July 13, 2009
39
3
Home Country
Germany Germany
AW: Maya World Weather

Worked for me :) Perfect! Thanks!

Anyone a WorldWeather plugin page for Maya? Would be great!
:D
 

Dragy

Portal Pro
April 27, 2009
778
333
31
Home Country
Netherlands Netherlands
Sorry, I don't think I will make it for Maya.. I use Avalon now :)
And in a few days (weeks?), with the next MP release, there is no need for the World Weather plugin anymore :)
 

polarie

Retired Team Member
  • Premium Supporter
  • November 20, 2006
    1,252
    152
    51
    Hasloh (near Hamburg)
    Home Country
    Germany Germany
    AW: Maya World Weather

    thx anyway ...
    did i missed somethign - new MePo?
    you mean next release? (1.3.0? )
    not MePo2?

    EDIT:

    and just got a question -
    how do i have to konfigure Maya - that Basichome shows weather forecast?
    what to disable what to enable?
    weather?
    Infoservice?
    worldweather? (for sure that i have to switch THAT "on" :D

    :D
     

    gurkc006

    Portal Member
    July 13, 2009
    39
    3
    Home Country
    Germany Germany
    I tried writing a WorldWeather page for Maya this weekend, but didn't finish. Is my first skinning experience, quite a lot to learn. Maybe I have something next weekend...
     

    Dragy

    Portal Pro
    April 27, 2009
    778
    333
    31
    Home Country
    Netherlands Netherlands
    Yes, I mean the next MP Release (1.2.2?)

    You don't have to configure.. Just copy the lines from the first post to the xml's. Search for "<!--Weather-->" in basichome.xml and replace the lines in the xml with the ones in the topic start.

    Oh ofcourse you have to enable world weather plugin and the weather option in the Maya config.
     

    polarie

    Retired Team Member
  • Premium Supporter
  • November 20, 2006
    1,252
    152
    51
    Hasloh (near Hamburg)
    Home Country
    Germany Germany
    AW: Maya World Weather

    hmm i tried to fix it my own ... quick and dirty
    not perfekt but works so far for me ...

    only problem is - i couldn't get the 5th day and the single day forcast to work -
    but forecast itself is working

    install worldweather plugin install and activeate it
    put in your town (incl. longitude and Atitude <--- Important)!

    than just download the RAR - and copie the extracted files to
    your Maya skin folder ...

    thats all

    have fun
     

    Attachments

    • myWeather-worldweather-maya.rar
      6 KB

    Users who are viewing this thread

    Top Bottom