Some issues with the weather background overlay (1 Viewer)

fischy667

Super User
  • Team MediaPortal
  • Super User
  • May 5, 2010
    958
    283
    41
    Rostock
    Home Country
    Germany Germany
    I had the same problem.

    I changed
    <visible>string.equals(#WorldWeather.Action,Condition)</visible>
    to
    <visible>string.equals(#WorldWeather.View,Condition)</visible>
    in the WorldWeather.xml on all positions and now all is fine.

    And for all who have problems with lat/long in this plugin, use comma instead of point as decimal sign.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    Is #WorldWeather.View the official property now? According to the Docs its #WorldWeather.Action:

    #WorldWeather.Action
    Current action
    (e.g. “Condition”, “Satellite images”)

    Wonder why one would work for some, but not others...are you all using the latest version of World Weather?
     

    fischy667

    Super User
  • Team MediaPortal
  • Super User
  • May 5, 2010
    958
    283
    41
    Rostock
    Home Country
    Germany Germany
    Is #WorldWeather.View the official property now? According to the Docs its #WorldWeather.Action:

    #WorldWeather.Action
    Current action
    (e.g. “Condition”, “Satellite images”)

    Wonder why one would work for some, but not others...are you all using the latest version of World Weather?

    Yes, the latest (0.2.7).

    But you are using it yourself, e.g. for the "Provider Logo".
     

    powermarcel10

    Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    35
    Groningen
    Home Country
    Netherlands Netherlands
    I hat the same problem.

    I changed
    <visible>string.equals(#WorldWeather.Action,Condition)</visible>
    to
    <visible>string.equals(#WorldWeather.View,Condition)</visible>
    in the WorldWeather.xml on all positions and now all is fine.

    And for all who have problems with lat/long in this plugin, use comma instead of point as decimal sign.

    Thanks man!! It works now..
     

    D3ltoroxp

    MP Donator
  • Premium Supporter
  • June 1, 2008
    3,308
    205
    Home Country
    Germany Germany
    AW: Some issues with the weather background overlay

    Hm why we must do this and others not ?
     

    fischy667

    Super User
  • Team MediaPortal
  • Super User
  • May 5, 2010
    958
    283
    41
    Rostock
    Home Country
    Germany Germany
    Please check in your new WorldWeather.xml the part for the wind. I think this part is not correct.

    Code:
    <!-- *** Current wind label *** -->
        <control>
          <description>current wind static label</description>
          <type>label</type>
          <id>0</id>
          <posX>372</posX>
          <posY>161</posY>
          [COLOR="Red"][B]<label>#(L(383))</label>[/B][/COLOR]
          <font>mediastream12tc</font>
          <textcolor>ffFFFFFF</textcolor>
          <visible>string.equals(#WorldWeather.View,Condition)</visible>
          <animation effect="fade" time="250">WindowOpen</animation>
          <animation effect="fade" time="250">WindowClose</animation>
        </control>
        <control>
          <description>current wind label</description>
          <type>label</type>
          <id>0</id>
          <posX>650</posX>
          <posY>161</posY>
          [COLOR="Red"][B]<label>#WorldWeather.TranslationWind</label>[/B][/COLOR]
          <font>mediastream12c</font>
          <visible>string.equals(#WorldWeather.View,Condition)</visible>
          <animation effect="fade" time="250">WindowOpen</animation>
          <animation effect="fade" time="250">WindowClose</animation>
        </control>

    Should be:

    Code:
    <!-- *** Current wind label *** -->
        <control>
          <description>current wind static label</description>
          <type>label</type>
          <id>0</id>
          <posX>372</posX>
          <posY>161</posY>
         [COLOR="Red"] [B]<label>#WorldWeather.TranslationWind</label>[/B][/COLOR]
          <font>mediastream12tc</font>
          <textcolor>ffFFFFFF</textcolor>
          <visible>string.equals(#WorldWeather.View,Condition)</visible>
           <animation effect="fade" time="250">WindowOpen</animation>
          <animation effect="fade" time="250">WindowClose</animation>
        </control>
        <control>
          <description>current wind label</description>
          <type>label</type>
          <id>0</id>
          <posX>650</posX>
          <posY>161</posY>
          [COLOR="Red"][B]<label>#WorldWeather.TodayWind</label>[/B][/COLOR]
          <font>mediastream12c</font>
          <visible>string.equals(#WorldWeather.View,Condition)</visible>
          <animation effect="fade" time="250">WindowOpen</animation>
          <animation effect="fade" time="250">WindowClose</animation>
        </control>

    And think you have to change all labels from the condition on the middle (temperature, conditions,wind, ... ) to fadelabel and set a width, because e.g. in German the wind line is longer than the width of the table.
     

    Marduk65

    Portal Pro
    November 28, 2011
    190
    244
    59
    Home Country
    Italy Italy
    ...the issue happen when you use a different language string file.
    I had the same problem using Italian strings and I resolved it changing the visible condition in this one -> <visible>control.isvisible(23)</visible> (I have set with ID 23 current temperature label)

    ...if you are interested I have done an alternative layout for StreamedMP WorldWeather plugin; take a look here -> https://forum.team-mediaportal.com/...layout-worldweather-plugin-103449/#post820357

    Regards
     

    Users who are viewing this thread

    Top Bottom