Learn > Events and book sidecars > The events THE EVENTS (1/2) - reader.open Fires when: a book (EPUB/TXT/XTC) opens {event.*} variables: book (SD path) - reader.exit Fires when: the reader is left (Home, sleep, other screen) {event.*} variables: book, percent, end_percent - reader.session Fires when: an active-reading summary is flushed (before sleep / on exit) {event.*} variables: book, document, start_time, end_time, duration_seconds, start_progress_bp, end_progress_bp, progress_scale - book.downloaded Fires when: an on-device catalog download (or bundle install) finished {event.*} variables: path, title, plugin - sleep.enter Fires when: the device starts going to sleep {event.*} variables: book, percent, end_percent if sleeping from a book; otherwise none Always available: {event.ts} (Unix time the event fired, 0 if the clock was never set) and {event.id} (unique, stable across retries). Progress values (all strings): - percent: whole-book %, 0-100, measured at the top of the page (it can stay at 99 on the last page). - end_percent: measured at the bottom of the page. It is 100 only on the last page or the end screen. A book is finished when end_percent is 100. - *_progress_bp: basis points, 0-10000 (progress_scale is always 10000). Next: 02 The events (2/2)