Skip to content

Commit

Permalink
Removed snow report
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Meyer committed Jan 24, 2020
1 parent 02179ef commit 8a517e3
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions snow_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,15 @@



snow_request = requests.get(config.snow_url)
snow_report = snow_request.json()
print(snow_report)
print("Lower snow report:",snow_report['lowersnow_in'],"inches.")
if snow_report['newsnow_in'] >= 3:
forecast_request = requests.get(config.forecast_url)
forecast_report = forecast_request.json()
print(forecast_report)
print("Lower snow report:",forecast_report['lowersnow_in'],"inches.")
if forecast_report['newsnow_in'] >= 3:
print('You got Snow!')
print('The last snowfall size was',snow_report['lastsnow_in'],'inches.')
print('The snow type is',snow_report['conditions'],'.')
print('The last snowfall size was',forecast_report['lastsnow_in'],'inches.')
print('The snow type is',forecast_report['conditions'],'.')
else:
print('Hopefully soon!')
print('The last snowfall size was',snow_report['lastsnow_in'],'inches on',snow_report['lastsnow'])
print('The last snowfall size was',forecast_report['lastsnow_in'],'inches on',forecast_report['lastsnow'])

forecast_request = requests.get(config.forecast_url)
forecast_report = forecast_request.json()
print(forecast_report)

0 comments on commit 8a517e3

Please sign in to comment.