Sends osc actions on a schedule. Used to create a daily repeating show (eg. Christmas Lights Display)
oscscheduler works by reading a schedule file written in json. This file specifies a start time and end time for the show which will be run each day.
The show itself is a series of osc actions that will be run in a loop until then end time.
var ShowScheduler = require"oscscheduler";//Load Show Filevar show = require"./show.json"; // The Show File to Load - More details below//set up showvar thisSchedule = show;thisScheduleon"beforeStart"//If there are things that need be done before the show startsthisScheduleon"afterEnd"var currentTime = ;currentTimesetHours19 59 55 0//Schedule the show to start - Optionally pass the current time for testing purposes//This line schedules the show to startthisScheduleactivatecurrentTime;
`Format for Show File' - Comments are Not Allowed in Real JSON File show.json