Skip to content

Commit

Permalink
Merge pull request #7 from brentru/fix-humid-example
Browse files Browse the repository at this point in the history
Fix humidity example
  • Loading branch information
makermelissa committed Feb 25, 2019
2 parents 96a5b6b + d854721 commit 186305d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/adafruit_io_simpletest_weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 186305d

Please sign in to comment.