Kodi Community Forum

Full Version: Undocumented Temperature Behaviour
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've noticed that the Weather Window Properties Current.Temperature, Day[0-6].HighTemp, Day[0-6].LowTemp are auto converted into the units set by System.TemperatureUnits, ['°C', '°F']

In order to make the conversion how did XBMC know that the original data was provided in Celsius?
It's based on your country.
Hmm that doesn't seem to be how it works. If I change my country to USA (Fahrenheit) then it auto converts the data I provide (Celsius) into Fahrenheit. But how did it know I was providing data in Celsius?
Yes, XBMC assumes the provided data is in Celsius.
OK I'll edit the wiki.

As a suggestion it feels to me like it would be better to be explicit, and perhaps have some kind of wrapper that can be applied arbitrarily to any field.