02 Overview (2/2)

- toast: template shown as a popup after success (sleep entry, File Transfer session)
- connect: true = also deliver at sleep entry, turning Wi-Fi on. Implied for sleep.enter.
- require_meta: a sidecar key such as "myservice_id": queue this event only for books whose sidecar has that key (non-empty string or whole number). Other books cost nothing.

Templates in url, headers, body, dest, toast support {token}, {cfg.KEY}, {event.*}, and {meta.KEY} (the book's sidecar, see below).

Watch out: values are not JSON-escaped and there are no _enc forms in events. A book path containing " breaks a JSON body, and one containing & breaks a query string. Send paths in a JSON body, and validate on the server. {event.percent} is a number-like string, so it may go unquoted in JSON.
‹ PreviousReader file (.txt)Next ›