Undocumented Temperature Behaviour
#1
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?
Reply
#2
It's based on your country.
Reply
#3
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?
Reply
#4
Yes, XBMC assumes the provided data is in Celsius.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
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.
Reply

Logout Mark Read Team Forum Stats Members Help
Undocumented Temperature Behaviour0