Adding API for schedule json

Signed-off-by: Jason Myers <jason@jasonamyers.com>
Fixing duration logic

Signed-off-by: Jason Myers <jason@jasonamyers.com>
Opening API

Signed-off-by: Jason Myers <jason@jasonamyers.com>