Set up a function to set the schedule data from SchedulerService