Example #1
0
def PingForecast():
    '''Check hourly 2-day forcast and send summary to Slack.'''
    logging.info('Checking hourly forecast')
    forecast = Weather.FetchForecast()
    status = Weather.CheckForecast(forecast)
    message = Weather.ForecastMessage(status)
    # Send status to slack
    Slack.SendMessage(message='2 day Forecast:\n' + message)