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));
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));