[Finished] Weather - Temperature in Celsius (2 Viewers)

octessence

Portal Pro
May 8, 2012
76
10
Germany
Home Country
United Kingdom United Kingdom
The weather plugin supplied by default does not provide a configuration option to show the temperature in Celsius. It would be nice for us non-Americans.
 

chefkoch

Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    The weather plugin supplied by default does not provide a configuration option to show the temperature in Celsius. It would be nice for us non-Americans.
    This is already working, but:

    It depends on your localization settings in windows, whether it is displayed in Celsius or Fahrenheit.
    Please check you system's control panel: (the screenshots are from German OS, hope it still helps)
    20130621_002506.png

    Without changing anything in the system's control panel you should configure you Culture / Region within the MP2 settings by setting the correct language, see my example:
    • My system's default culture is German (Germany)
      Weather is display in °C
      20130621_002946.png
    • MP2 uses by default the system's culture:
      20130621_003516.png
    • Now let's change the culture to English (USA)
      20130621_003540.png
    • Tada, what a magic.
      20130621_003555.png
    This is a great example that it is not necessary to reinvent the wheel over and over again and having a setting for every small part of an application.
    This is the MP2 way of doing things :) ;)
    The locale defined in MP2 is reused for the language / translations and for the measuring units. :)
    If this is a non-US, metric culture you'll get Celsius.

    I assume for 99.98 % of all users this is perfectly fine. And for the other 0.02% we have to say sorry, but this simplifies the configuration and the code for a default plugin. Nevertheless, if a developer would like to implement such additional customizations, it is no problem to fork the weather plugin and release it as an additional community plugin Weather++ or something like that ;)


    For the relevant code see:
    https://github.com/MediaPortal/Medi...er/Grabbers/WorldWeatherOnlineCatcher.cs#L238
    https://github.com/MediaPortal/Medi...er/Grabbers/WorldWeatherOnlineCatcher.cs#L317

    I added this to the todo list for documentation in wiki.
     
    Last edited:

    octessence

    Portal Pro
    May 8, 2012
    76
    10
    Germany
    Home Country
    United Kingdom United Kingdom
    Thanks. My locale setting were already set to Metric and I still saw Fahrenheit. Only changing the language to English (United Kingdom) made it change to Celsius.

    Associating what is seen to the system locale makes perfect sense however associating it to the language setting makes no sense at all. In the UK there are plenty of people who still think in imperial but that has nothing to do with the language they speak.

    EDIT:
    If the "Language" page in the MP2 settings was called something more general like "Locale" it would be obvious but having a language option that also controls other things is misleading.
     
    Last edited:

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    EDIT:
    If the "Language" page in the MP2 settings was called something more general like "Locale" it would be obvious but having a language option that also controls other things is misleading.
    I fully agree with you and will add this to the todo list as well. I'll report the link here when I added it to the issue tracker. This also might needs some general planning / discussion for what the locale is / could be used as well.

    Nevertheless thanks for reporting this :)
     

    jpichie

    Portal Pro
    May 12, 2011
    102
    8
    Home Country
    Canada Canada
    Sorry to bring this back up, I was looking for an answer for this today.
    I will make that change, but why not just have a celsius/fahrenheit changer under the weather module config?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Sorry to bring this back up, I was looking for an answer for this today.
    I will make that change, but why not just have a celsius/fahrenheit changer under the weather module config?
    There are many places where a regional setting is used inside MP2. It would not be consistent to change only °C/°F for this special case.
    So selecting your region is all you need actually.
     

    octessence

    Portal Pro
    May 8, 2012
    76
    10
    Germany
    Home Country
    United Kingdom United Kingdom
    My only issue was that the option said it was for language only and it wasn't clear that this also controlled region.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Ok, we consider a clearer message. Thanks for your input!
     

    jpichie

    Portal Pro
    May 12, 2011
    102
    8
    Home Country
    Canada Canada
    Thanks for the info @morpheus_xx I am just thinking back to other weather apps, and they all have the option to change from celcius to fahrenheit and vice-versa regardless of region.
     

    Users who are viewing this thread

    Similar threads

    Works also, removed the "section" entry from MediaPortal.xml ;) (y)
    Works also, removed the "section" entry from MediaPortal.xml ;) (y)
    This plugin is alternate version to the original World Weather plugin developed by @Micropolis. Is compatible with MediaPortal...
    Replies
    33
    Views
    7K
    Well, currently the plugin shows the sun/moon times in user's local time. As you said, It would require to add time zone parameter to the profile. I'll try to add this option in the next version. PS: please use official thread
    Well, currently the plugin shows the sun/moon times in user's local time. As you said, It would require to add time zone parameter...
    I have the current (1.0.2.0 level) World Weather Lite plugins installed on x86 and x64 different MP1 copies. When Location is...
    Replies
    7
    Views
    1K
    Hi, it looks like the Client's server connection settings got corrupted somehow and were reset, hopefully this is an easy fix. Open MP2-Client, navigate to Settings->General->Connectivity->Home server. In the menu on the left there may be an option Detach from home server, if there is click it and acknowledge the dialog that pops up...
    Hi, it looks like the Client's server connection settings got corrupted somehow and were reset, hopefully this is an easy fix...
    Help Please: MP doesnt display any of my previouse recordings or TV programs It seems like the Server isnt running? MP was working...
    Replies
    3
    Views
    679
    MP1 MP2 [solved] Basic audio question... DE
    Yes, works, thanks. Deselecting "Prefer multichannel audio streams" under "Video Player" (under "Players") gives me the stereo stream, by default, in television also. Thanks for your help. N.
    Yes, works, thanks. Deselecting "Prefer multichannel audio streams" under "Video Player" (under "Players") gives me the stereo...
    Is there a way to set the default audio stream for live TV? The default default, so to speak, for me seems to be English...
    Replies
    4
    Views
    1K
    • Sticky
    Software Developer C# The MediaPortal 2 team is seeking committed people to strengthen its developer basis Are you interested in driving the development of an advanced HTPC software? Would you like new features get implemented faster? Well, then join us! What we offer: Almost unlimited creative leeway The possibility to closely...
    Software Developer C# The MediaPortal 2 team is seeking committed people to strengthen its developer basis Are you interested in...
    Software Developer C# The MediaPortal 2 team is seeking committed people to strengthen its developer basis Are you interested in...
    Replies
    0
    Views
    6K
    Top Bottom