Skip to main content

Module notify

Module notify 

Source
Expand description

Notify block: tells the operator something, as an OS notification (the Drone real-world jobs spec §4.2).

Block config (node.data):

  • title required, the toast’s heading. The graph’s own words: a {{...}} reference is refused, so a value from outside can’t write the heading (§6.2).
  • body optional, the text. The graph’s words stay as written; every {{...}} value is put in as quoted data (one line, markers neutralised, in curly quotes).

Output: { "notified": bool }. false when the router dropped it (notifications are off, paused or in quiet hours); that is not an error, since the person asked not to be told.

Structs§

NoteSpec 🔒
What the block shows.

Constants§

TOAST_BODY_MAX_CHARS 🔒
The longest body a toast carries, in characters.

Functions§

compose 🔒
The title and body the block shows. Pure, so the quoting is testable without a server.
run