bassethound
04-12-10, 16:58
plugin.py line 276 to 288
Normaly the plugin can switch Celsius to Fahrenheit
If not try to change code in plugin.py or inverse C & F
elif items.tag == "unit_system":
if getData(items) == "SI":
unit = "C"
else:
unit = "F"
elif childs.tag == "current_conditions":
for items in childs:
if items.tag == "condition":
self['condition'].text = _('Current ') + getData(items)
elif items.tag == "temp_c" and unit == "C":
self['currentTemp'].text = getData(items) + ' °C'
elif items.tag == 'temp_f' and unit == 'F':
self['currentTemp'].text = getData(items) + ' °F'Also there is similar weather plugin that works fine with Celsius
see down Similar Threads
Normaly the plugin can switch Celsius to Fahrenheit
If not try to change code in plugin.py or inverse C & F
elif items.tag == "unit_system":
if getData(items) == "SI":
unit = "C"
else:
unit = "F"
elif childs.tag == "current_conditions":
for items in childs:
if items.tag == "condition":
self['condition'].text = _('Current ') + getData(items)
elif items.tag == "temp_c" and unit == "C":
self['currentTemp'].text = getData(items) + ' °C'
elif items.tag == 'temp_f' and unit == 'F':
self['currentTemp'].text = getData(items) + ' °F'Also there is similar weather plugin that works fine with Celsius
see down Similar Threads