|
|
@ -167,6 +167,14 @@ def render_pressure(data, query):
|
|
|
|
answer += 'hPa'
|
|
|
|
answer += 'hPa'
|
|
|
|
return answer
|
|
|
|
return answer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def render_uv_index(data, query):
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
UV Index (u)
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
answer = data.get('uvIndex', '')
|
|
|
|
|
|
|
|
return answer
|
|
|
|
|
|
|
|
|
|
|
|
def render_wind(data, query):
|
|
|
|
def render_wind(data, query):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
wind (w)
|
|
|
|
wind (w)
|
|
|
@ -284,6 +292,7 @@ FORMAT_SYMBOL = {
|
|
|
|
'p': render_precipitation,
|
|
|
|
'p': render_precipitation,
|
|
|
|
'o': render_precipitation_chance,
|
|
|
|
'o': render_precipitation_chance,
|
|
|
|
'P': render_pressure,
|
|
|
|
'P': render_pressure,
|
|
|
|
|
|
|
|
"u": render_uv_index,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FORMAT_SYMBOL_ASTRO = {
|
|
|
|
FORMAT_SYMBOL_ASTRO = {
|
|
|
|