Weather plugin for Vuo+ by_webkurier

oasisngn

Vu+ Newbie
I installed the plug-in and its quite fast and simple. Thanks.
Is there any hidden option or future plan to select unit type (fahrenheit/celsius)? mine just shows fahrenheit and I am so lazzy to convert it by my head.
 

sandery

Vu+ Newbie
I installed the plug-in and its quite fast and simple. Thanks.
Is there any hidden option or future plan to select unit type (fahrenheit/celsius)? mine just shows fahrenheit and I am so lazzy to convert it by my head.

--- plugin.py Thu Oct 28 20:12:43 2010
+++ plugin.py.org Thu Oct 28 19:39:11 2010
@@ -198,7 +198,7 @@
if items2.tag == "city":
self["caption"].text = items2.attrib.get("data").encode("utf-8", 'ignore')
elif items2.tag == "unit_system":
- if items2.attrib.get("data").encode("utf-8", 'ignore') == "US":
+ if items2.attrib.get("data").encode("utf-8", 'ignore') == "SI":
metric = 1
UnitSystemText = "C"
elif items.tag == "current_conditions":
@@ -223,12 +223,8 @@
self["weekday%s" % index].text = items2.attrib.get("data").encode("utf-8", 'ignore')
elif items2.tag == "low":
lowTemp = items2.attrib.get("data").encode("utf-8", 'ignore')
- if metric == 1 and UnitSystemText == "C":
- lowTemp = (((int(lowTemp)-32)/9)*5)
elif items2.tag == "high":
highTemp = items2.attrib.get("data").encode("utf-8", 'ignore')
- if metric == 1 and UnitSystemText == "C":
- highTemp = (((int(highTemp)-32)/9)*5)
self["weekday%s_temp" % index].text = "%s °%s | %s °%s" % (highTemp, UnitSystemText, lowTemp, UnitSystemText)
elif items2.tag == "icon":
url = "http://www.google.com%s" % items2.attrib.get("data").encode("utf-8", 'ignore')
 

oasisngn

Vu+ Newbie
thanks sandery but the org file you used is not the one posted in this topic (line numbers does not match the one I have).
instead I installed the PLI > extensions > WeatherPlugin which gives option to select the language and by default it shows celcius.
 
Top