BasicHome weather through InfoService

Discussion in 'Black & White 1080p' started by mironto, October 1, 2010.

  1. mironto

    mironto Portal Pro

    Joined:
    March 15, 2010
    Messages:
    71
    Likes Received:
    3
    Ratings:
    +6 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    I noticed a problem with InfoService displaying 5 day forecest on BasicHome screen. Second day title is wrongly set to first day.

    Code (Text):
    1.  
    2. common.weather.xml
    3. <control>
    4.     <description>Day 2 title</description>
    5.     <type>label</type>
    6.     <id>111122</id>
    7.     <posX>496</posX>
    8.     <posY>80</posY>
    9.     <width>276</width>
    10.     <font>font11</font>
    11.     <textcolor>ffffffff</textcolor>
    12.     <label>#infoservice.weather.forecast1.weekday</label> <== should be forecast2
    13.     <shadowAngle>45</shadowAngle>
    14.     <shadowDistance>2</shadowDistance>
    15.     <shadowColor>FF000000</shadowColor>
    16. </control>
    [​IMG]



    After I changed it to <label>#infoservice.weather.forecast2.weekday</label>, everything's fine.

    Also, I noticed that if I switch away from the weather button too fast (before the animation drawing 5-day forecast ends), the 5-day forecast stays half-rendered on the screen (or looks like only the shadow is left).

    [​IMG]

    Can this be addressed?

    Thanks.
     

    Attached Files:

  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. aj1405

    aj1405 Portal Pro

    Joined:
    September 30, 2007
    Messages:
    443
    Likes Received:
    151
    Gender:
    Male
    Ratings:
    +154 / 0
    Home Country:
    Norway Norway
    Thanks for letting me know; the day 2 label will be fixed in the next version, I’ve also attached the corrected file in this post.

    “Also, I noticed that if I switch away from the weather button too fast (before the animation drawing 5-day forecast ends), the 5-day forecast stays half-rendered on the screen (or looks like only the shadow is left).”

    This I think you have to ask the plugin/mediaportal developers about. The conditional visibility in the skin file looks okay so I think it a plugin/mediaportal bug.
     

    Attached Files:

    • Like Like x 1
  4. mironto

    mironto Portal Pro

    Joined:
    March 15, 2010
    Messages:
    71
    Likes Received:
    3
    Ratings:
    +6 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    Yes, found out this really is a bug with MP skin engine.
    0002826: Fade animations are not applied to text shadows (when using the <shadow*> tags) - MediaPortal Bugtracker

    I was able to fix it by adding <animation effect="fade" reversible="false" time="300">VisibleChange</animation> in the Group: Full Weather. This will cause that the weather will not be faded out when you move away from weather icon. It's a win-win fix, since the reverse animation is broken, anyway
    0002866: Visiblechange animations do not process reverse animations correctly - MediaPortal Bugtracker
    The weather will only be faded out when you move from the icon before the 5day weather is fully drawn.

    You could fix it by using both fade-in and fade-out animations like this:
    <animation effect="fade" start="0" end="100" time="300">Visible</animation>
    <animation effect="fade" Start="100" end="0" time="300">Hidden</animation>
    But then there is another bug with animation, that the hidden controls (our 5day weather forecast) fade out even when they are not visible (thus the weather is shown each time you enter basichome screen and only then starts to fade out until it vanishes).
    0002867: Hidden animations all execute on windowopen - MediaPortal Bugtracker

    Yes, I know, three bugs in the skin engine ni one place?!? Give me a break!

    So I would suggest that when you use <shadow*> tag together with <animation fade> you better stick with the good old method of creating overlayed and shifted text (black+white+1px shift in my case). This way the shadow is faded in as well and you don't have to disable the reverse animation with reversible=false (so if the VisibleChange is fixed in the future, you will get the fade in/out working great).

    Attached is my xml.

    Edit: Oh, just found another bug, the second day does not have an image displayed.
    <texture>#infoservice.weather.day2.day.img.big.fullpath</texture>
    needs to be replaced with
    <texture>#infoservice.weather.forecast2.day.img.big.fullpath</texture>
     

    Attached Files:

Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!