yrWeather Plugin 1.3.0.0 (2 Viewers)

Dadeo

Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Re: yrWeather Plugin

    I believe its possible to show the current weather in the background but you have to remember that when for example the time is 18:01 the first weather data that will be available is from 00:00 to 06:00 the next day, so it will be the first available data, not the current.
    Yes, yr.no provides forecasts, not exactly 'current' weather as you point out.
    note: theese properties is updated each hour and is the first available data, always about 1-6 hours into the future, maybe it's useful to know which timeperiod?
    Yes! +1 from me. I think the time period is essential data for yr.no.
    In fact, this is the only thing I find confusing in the yr.no data. The Night data is 23:00–05:00. So whenever you select a future day it is correct. BUT for the current day the plugin Night data displays data forecasted for later than the PM data because it does apply to the period 23:00-0:00 for that day. I am not sure what the best solution for that is. Any ideas?
    I can't find thoose weather backdrops, i only use the default wide skin?
    Yes, sorry, Default skins don't provide them, but most other skins do.
    Can you post the skin files for aMped so i can release it togheter with everything else?
    I could do that, but aMPed users can easily grab the latest versions from aMPed SVN. As ysmp pointed out, most skins will include the skin files for plugins they support in the skin installer, like I included yrweather.xml with aMPed 3.3.2 :)
    The current weather in Home screen is this something that is only available in aMped?
    No it is available in most skins as ysmp said. There are actually 3 'levels' of support depending on the skin:
    1. Location, Icon, condition and temp on Basic Home - most skins support that
    2. Icon and temp on almost all windows (like the date/time is displayed) - many skins support that but not Default skins
    3. Current weather data - many skins display 5 day weather on Basic Home (see PureVision screenshot for example) - I believe catavolt has even added this to Default skin files when World Weather plugin is installed and enabled.
    I agree with everything ysmp has posted ;)
     

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Re: yrWeather Plugin

    OK, I tested adding the new skin properties (#yrWeather.temperature #yrWeather.precipitation #yrWeather.windSpeed #yrWeather.windDir ):

    1. They display only data for the default location, not the currently selected location in the plugin
    2. They do not display the next time period - for example it is currently 11:30 am here, but the properties display the night conditions (which are actually for 23:00 tonight to 5:00 tomorrow)
    3. #yrWeather.precipitation #yrWeather.windSpeed #yrWeather.windDir all display '°C' (when using control ID 0) instead of 'mm' or 'm/s from' as in the yrweather window.
    Did you get the same results ysmp? Or am I doing something wrong? ;)
     

    burr

    MP Donator
  • Premium Supporter
  • May 13, 2006
    175
    47
    Home Country
    Sweden Sweden
    Re: yrWeather Plugin

    I have implemented hour by hour forecast, could ysmp please help with the skin your work have been much appreciated before,
    as you see the buttons for select next, previous day is in the upper left corner i can't get a stacklayout to go inside the first one?

    If its possible to get another hour to fit please just add and i will fix the id's for the controls.

    Properties is now the first data from "hour by hour" forecast and it's always the default location and i feel it should be this way?
    #yrWeather.temperature
    #yrWeather.precipitation
    #yrWeather.windDir
    #yrWeather.windSpeed
    #yrWeather.weatherIcon
    #yrWeather.weatherDescription
    #yrWeather.location
     

    ysmp

    Design Group
  • Team MediaPortal
  • May 17, 2008
    1,863
    744
    Seoul.
    Home Country
    South Korea South Korea
    Re: yrWeather Plugin

    Hi Burr, thanks for update ... i did not Understand you complitly ,please see in red some Questions ...


    I have implemented hour by hour forecast, could ysmp please help with the skin your work have been much appreciated before,
    as you see the buttons for select next, previous day is in the upper left corner i can't get a stacklayout to go inside the first one?

    If its possible to get another hour to fit please just add and i will fix the id's for the controls.

    Properties is now the first data from "hour by hour" forecast and it's always the default location and i feel it should be this way?
    #yrWeather.temperature
    #yrWeather.precipitation
    #yrWeather.windDir
    #yrWeather.windSpeed
    #yrWeather.weatherIcon
    #yrWeather.weatherDescription
    #yrWeather.location
    This global properties for like basichome ?

    EDIT: O.K I SEE ABUT NEXT/PREVIOUS DAY BUTTON , THEY CANOT GO IN stacklayout , THEY WILL HAVE TO BE UPER OR UNDER .... I WILL FIX SOMETHING ... :)
    2- SURE CAN ADD 1 MORE HOUR, SO TOTAL 7 HOURS (NOW HAVE 6 HOURS)
    3- ABUT PROPERTIES SO IT GIVE US INFO FOR 1 DAY HOUR BY HOUR ,BUT ONLY FOR 1 DAY ... YES ?

    NOTE : I THINK BETTER CHANGE THE NAME IN BUTTON FORCAST - AFTER CLICKING THE BUTTON SHOW "FORCAST HOUR BY HOUR" TO BE text "Forcast by hour" only, Beceuse the text is to long buttons wide... :)

    I WILL WORK ON THAT ....

    LOOK GOOD ... :)
     

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Re: yrWeather Plugin

    burr - Nice work! I love the hour by hour forecast, and the new skin properties, thanks!

    I can confirm all the skin properties work here on Basic Home or any window. The only minor issue I noticed is that#yrWeather.windSpeed does not have a space before the m/s like it does in all the wind speeds within yrWeather window.
    If its possible to get another hour to fit please just add and i will fix the id's for the controls.
    LOL I can only fit four hours on aMPed 4x3 because it supports large fonts. But if ysmp can fit them on Default 4x3, go for it!

    I figured out my confusion about the Night Time period - it is due to time zones. yr.no is set for Norway (CET) so when you check the website, night is 0:00-6:00. But if you change to Canada it is 01:00–07:00; India: 23:00–05:00 So in India the 'Night' data actually spans two days. I think it will work well for most locations though.

    Backdrops - now that you have #yrWeather.weatherIcon - all we need is a property such as #yrWeather.weatherIcon.no to expose the icon number to the skin. Then any skin can use <texture>\animations\Weather\#yrWeather.weatherIcon.no.jpg</texture> to display a backdrop that applies to the current hourly weather condition if they wish.

    @ysmp- about the 'Forecast Hour by Hour' - yes I agree 'Forecast by Hour' is nicer/shorter and it is a 'simple' change in the language strings files (if someone can translate them all!). BUT - the problem is that you can never predict how long translated strings are on buttons, so it is probably best to add:
    Code:
            <scrollStartDelaySec>1</scrollStartDelaySec>
            <scrollWrapString> | </scrollWrapString>
    to the button controls anyway so if translated text is too long it will scroll. Default skin does not have that in references.xml for the default button so you will have to add it to any button control you want text to scroll on.
     

    ysmp

    Design Group
  • Team MediaPortal
  • May 17, 2008
    1,863
    744
    Seoul.
    Home Country
    South Korea South Korea
    Re: yrWeather Plugin

    Hi Dadeo , wow that was fast... :) , i did not start yet ...wall this time the skinnig will be slow for me ...
    1- great you confirm all pops' work .
    2- one more hour ... my first thout is 16x9 ...;) (will try in 4x3)...
    3- thanks for button scrolling tip .

    burr +1 for weather condition backdrop # Tag...
    Find some bug in error log :"Tramslation file for language: English (United States) was not found"
    i think Dadeo explain to us in the youtube.fm plugin .... need Language file 1 as now (en) and also (en-US)(all dou most plugin also missing the (en-US file)...:mad: , Dadeo can you help with that ... :)

    :D
     

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Re: yrWeather Plugin

    It wasn't fast! I had a hard time because all the controls are hard coded, even dividers, labels etc and if one is missing the visibility/switch between Day and Hourly Forecast doesn't work! :p

    re the language file - I don't think it is the exact same issue as in youtube.fm ysmp. I don't get that error. The default language for MP is English (not English (US)), and MP should fall back to en.xml if en-us.xml is not there. burr has provided the correct default language file (en.xml) but if you have selected English US for MP language settings, then you may need to copy it to en-us.xml in the ...\MediaPortal\language\yrWeather folder? I suspect MP only 'falls back' for the MP language string files, not those provided by plugins?
     

    ysmp

    Design Group
  • Team MediaPortal
  • May 17, 2008
    1,863
    744
    Seoul.
    Home Country
    South Korea South Korea
    Re: yrWeather Plugin

    re the language file - I don't think it is the exact same issue as in youtube.fm ysmp. I don't get that error. The default language for MP is English (not English (US)), and MP should fall back to en.xml if en-us.xml is not there. burr has provided the correct default language file (en.xml) but if you have selected English US for MP language settings, then you may need to copy it to en-us.xml in the ...\MediaPortal\language\yrWeather folder? I suspect MP only 'falls back' for the MP language string files, not those provided by plugins?

    Hi Deado , so you saying in MP configration we need to set lang' English , and not English US ... ? so way MP give the option of English US (as for me the lang' EN US come as default ,during install a new MP ... ?
    thats strange MP give EN-US option as default but not compltly support that ...:confused:

    if you set the lang' to EN-US in MP configartaion ,you will get the error in Log folder file "yrWeatherLog.Text" .
    wall i gusse need to change Language in MP config' ....
     

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Re: yrWeather Plugin

    You're right ysmp! I just moved my MediaPortal.xml so I could start with a 'clean' config to check the default setttings, and it was set to English US. I don't know when that happened (it was never documented) - as you can see in Mantis Issue 3164 strings_en.xml (i.e. English) was the default as of 1.2.0 beta!

    When I changed my language to English US - all the English strings still display correctly in yrweather, right? It is only that you get a message in yrWeatherLog.log. But it seems the plugin correctly falls back to the en.xml strings file, so maybe just the logging is the issue?
     

    ysmp

    Design Group
  • Team MediaPortal
  • May 17, 2008
    1,863
    744
    Seoul.
    Home Country
    South Korea South Korea
    Re: yrWeather Plugin

    You're right ysmp! I just moved my MediaPortal.xml so I could start with a 'clean' config to check the default setttings, and it was set to English US. I don't know when that happened (it was never documented) - as you can see in Mantis Issue 3164 strings_en.xml (i.e. English) was the default as of 1.2.0 beta!

    When I changed my language to English US - all the English strings still display correctly in yrweather, right? It is only that you get a message in yrWeatherLog.log. But it seems the plugin correctly falls back to the en.xml strings file, so maybe just the logging is the issue?

    Hi Dadeo , yes string display corectly as far as i see in all plugin's ( the error only view in yrWeatherLog.log. )
    that strange , as far as i remmber it was all time like that .. or as you say from v1.2.0 beta .... :)
     

    Users who are viewing this thread

    Top Bottom