scheduler

startup
  good morning
    var s = "";
    for (var i = 1; i < 10; i++) {
      s += i + " ";
      }
    console.log ("startup: " + s + ".");
everySecond
  tick tock
    storage.ct++
everyHour
  just checking in
    console.log ("top of the hour: " + clock.now ())
overnight
  new day dawns
    console.log ("it's a new day: " + clock.now () + ", " + storage.ctOvernight++)
expand
  echo type
    var type = op.attributes.getOne ("type");
    if (type === undefined) {
      console.log ("no type");
      }
    else {
      console.log (type)
      }
  echo text
    console.log (op.getLineText ())