Skip to content

Commit 186305d

Browse files
authored
Merge pull request #7 from brentru/fix-humid-example
Fix humidity example
2 parents 96a5b6b + d854721 commit 186305d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/adafruit_io_simpletest_weather.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@
6464
# Get today's forecast
6565
current_forecast = forecast['current']
6666
print('It is {0} and {1}*F.'.format(current_forecast['summary'], current_forecast['temperature']))
67-
print('with a humidity of {0}%'.format(current_forecast['humidity']))
67+
print('with a humidity of {0}%'.format(current_forecast['humidity'] * 100))
6868

6969
# Get tomorrow's forecast
7070
tom_forecast = forecast['forecast_days_1']
7171
print('\nTomorrow has a low of {0}*F and a high of {1}*F.'.format(
7272
tom_forecast['temperatureLow'], tom_forecast['temperatureHigh']))
73-
print('with a humidity of {0}%'.format(tom_forecast['humidity']))
73+
print('with a humidity of {0}%'.format(tom_forecast['humidity'] * 100))

0 commit comments

Comments
 (0)