def update_files():
    forecast = fetch.load_tomorrows_forecast(os.environ.get('FMIAPIKEY'))
    fetch.write_to_file('data/clean/forecasts', forecast)
    write_to_file('data/clean/predictions', tomorrows_prediction_with_past(forecast))
    write_to_file('data/clean/labels', yesterdays_cyclists())
    fetch.write_to_file('data/clean/data', fetch.yesterdays_actual_weather(os.environ.get('FMIAPIKEY')))
    create_history_plot()
Beispiel #2
0
def update_files():
    forecast = fetch.load_tomorrows_forecast(os.environ.get('FMIAPIKEY'))
    fetch.write_to_file('data/clean/forecasts', forecast)
    write_to_file('data/clean/predictions',
                  tomorrows_prediction_with_past(forecast))
    write_to_file('data/clean/labels', yesterdays_cyclists())
    fetch.write_to_file(
        'data/clean/data',
        fetch.yesterdays_actual_weather(os.environ.get('FMIAPIKEY')))
    create_history_plot()
def tomorrows_prediction():
    forecast = fetch.load_tomorrows_forecast(os.environ.get('FMIAPIKEY'))
    print('fmi apikey:', os.environ.get('FMIAPIKEY'))
    day = (datetime.today()+timedelta(1)).weekday()
    return lc.predict_for(forecast, day)
Beispiel #4
0
def tomorrows_prediction():
    forecast = fetch.load_tomorrows_forecast(os.environ.get('FMIAPIKEY'))
    print('fmi apikey:', os.environ.get('FMIAPIKEY'))
    day = (datetime.today() + timedelta(1)).weekday()
    return lc.predict_for(forecast, day)