from datetime import datetime,timedelta
from threading import Timer

from simulation_modules.ev_module.real_time_data import real_time_data_start
from simulation_modules.ev_module.historical_data import historical_data

def ev_simulation_init(sio):
    sio.sleep(1)

    @sio.on('Generate Ev')
    def generate_ev(interval, paramters_dict):
        real_time_data_start(paramters_dict, sio)
        historical_data(interval, paramters_dict, sio)
