[Finished] Weather - Temperature in Celsius (1 Viewer)

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
    10K
    In the UK, the EPG transmitted in the DVB-T datastream allows each programme to have two genres -- a primary genre, and a secondary genre (i.e. a subgenre). The primary genre might be something like Film (or Movie in the USA). The secondary genre for Film might be something like: Action, Comedy, Crime, Fantasy, Romance, Science...
    In the UK, the EPG transmitted in the DVB-T datastream allows each programme to have two genres -- a primary genre, and a secondary...
    In the UK, the EPG transmitted in the DVB-T datastream allows each programme to have two genres -- a primary genre, and a secondary...
    Replies
    0
    Views
    427
    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
    2K
    I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is missing in my Titan skin. This only applies to my .TS files, my .MKV files are OK. I believe the difference is likely to be because .MKV files embed the runtime in the file unlike .TS files. I have done...
    I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is...
    I have recently installed MediaPortal 1.37 (x64) and MP-TVSeries v4.5.1.697 and unfortunately the TV episode runtime duration is...
    Replies
    0
    Views
    140
    Pushed to Github https :// github.com / MPExtended / Skins / commit / 541cd57a89b85e1971d0a6086e3dc650cb9ab60f
    Pushed to Github https :// github.com / MPExtended / Skins / commit / 541cd57a89b85e1971d0a6086e3dc650cb9ab60f
    Hi there I've recently tried to get the Bootstrap 0.7.255 skins working in a new WebMediaPortal environment but ran into several...
    Replies
    6
    Views
    1K
    Top Bottom