Extract eventcode from inform request

Actually it is possible to extract event codes using declare():

const events = [];

for (const e of declare("Events.*", {value: 1})) {
  if (e.value[0] >= Date.now()) events.push(e.path.slice(7));
}

log(JSON.stringify(events));
3 Likes