From d854721bbb4431a5cf49a0be1fd997cfe5a4f01c Mon Sep 17 00:00:00 2001 From: brentru Date: Mon, 25 Feb 2019 12:36:25 -0500 Subject: [PATCH] multiply humidity by 100 --- examples/adafruit_io_simpletest_weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/adafruit_io_simpletest_weather.py b/examples/adafruit_io_simpletest_weather.py index 4706313..7d0cfa7 100644 --- a/examples/adafruit_io_simpletest_weather.py +++ b/examples/adafruit_io_simpletest_weather.py @@ -64,10 +64,10 @@ # Get today's forecast current_forecast = forecast['current'] print('It is {0} and {1}*F.'.format(current_forecast['summary'], current_forecast['temperature'])) -print('with a humidity of {0}%'.format(current_forecast['humidity'])) +print('with a humidity of {0}%'.format(current_forecast['humidity'] * 100)) # Get tomorrow's forecast tom_forecast = forecast['forecast_days_1'] print('\nTomorrow has a low of {0}*F and a high of {1}*F.'.format( tom_forecast['temperatureLow'], tom_forecast['temperatureHigh'])) -print('with a humidity of {0}%'.format(tom_forecast['humidity'])) +print('with a humidity of {0}%'.format(tom_forecast['humidity'] * 100))