Skip to content

Commit

Permalink
Fix: accuweather wind
Browse files Browse the repository at this point in the history
  • Loading branch information
RingOV committed Oct 25, 2015
1 parent 01e2d7d commit 6701960
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gis-weather.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python3
#
# gis_weather.py
v = '0.7.8.19'
v = '0.7.8.20'
# Copyright (C) 2013-2015 Alexander Koltsov <ringov@mail.ru>
#
# This program is free software: you can redistribute it and/or modify
Expand Down
4 changes: 2 additions & 2 deletions services/accuweather.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ def get_weather():
t_now[0] = t_now[0]+'°;'+t_now[0]+'°;'+C_to_F(t_now[0])+'°;'+C_to_F(t_now[0])+'°;'+C_to_K(t_now[0])+';'+C_to_K(t_now[0])

# wind
wind_speed_now = re.findall("var s = '(\d*)", source)
wind_speed_now = re.findall("<div style=\".+\">(\d*).*</div>", source)
if wind_speed_now:
wind_speed_now[0] = convert_from_kmh(wind_speed_now[0])
wind_direct_now = re.findall("var d = '(.*)'", source)
wind_direct_now = re.findall("arrow-lg-(.*)\.png", source)

# icon
icon_now = re.findall('<div class="forecast">\s*<div class="icon (.*)"></div>', source)
Expand Down

0 comments on commit 6701960

Please sign in to comment.