add sleep time, end day at different time
refresh every second
tidy up
use times to specify segments