fixed the wind calculation
This commit is contained in:
4
w.py
4
w.py
@@ -74,7 +74,7 @@ for elem, even in events_update:
|
|||||||
condi = even.text
|
condi = even.text
|
||||||
|
|
||||||
if even.tag == 'F':
|
if even.tag == 'F':
|
||||||
wind = even.text
|
windu = even.text
|
||||||
|
|
||||||
if even.tag == 'ftime':
|
if even.tag == 'ftime':
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ for elem, even in events_update:
|
|||||||
if time >= justnow and time < mytime:
|
if time >= justnow and time < mytime:
|
||||||
print "Time:", time, "UTC"
|
print "Time:", time, "UTC"
|
||||||
print "Temperature: ", temp, "°C"
|
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"
|
print "Conditions:", condi, "\n"
|
||||||
#break # the fall
|
#break # the fall
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user