fixed the wind calculation

This commit is contained in:
phm3
2015-11-30 20:33:03 +00:00
parent ee2b49b0a3
commit 461734a2ff

4
w.py
View File

@@ -74,7 +74,7 @@ for elem, even in events_update:
condi = even.text
if even.tag == 'F':
wind = even.text
windu = even.text
if even.tag == 'ftime':
@@ -83,7 +83,7 @@ for elem, even in events_update:
if time >= justnow and time < mytime:
print "Time:", time, "UTC"
print "Temperature: ", temp, "°C"
print "Wind: ", wind, "m/s", " » " ,int(wind) * 3.6, "km/h"
print "Wind: ", windu, "m/s", " » " ,int(windu) * 3.6, "km/h"
print "Conditions:", condi, "\n"
#break # the fall