Merge pull request #997 from ashafq/feature/render_condition_int

Add single line output code for WeatherCode #995
pull/1052/head
Igor Chubin 3 weeks ago committed by GitHub
commit f707e76570
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -128,6 +128,12 @@ def render_condition_plain(data, query):
return weather_condition
def render_condition_int(data, query):
"""Weather condition code as integer (i)
"""
return data['weatherCode']
def render_humidity(data, query):
"""
humidity (h)
@ -284,6 +290,7 @@ FORMAT_SYMBOL = {
'c': render_condition,
'C': render_condition_fullname,
'x': render_condition_plain,
'i': render_condition_int,
'h': render_humidity,
't': render_temperature,
'f': render_feel_like_temperature,

Loading…
Cancel
Save