Handbook · Reference · Blockly · System
Blockly: System
Where in the UI. Scripts tab toolbox.
Reminders, timers, display refresh, script log, evaluate expression.
| Block id | Read as | Purpose |
|---|---|---|
containd_evaluate_expression | evaluate expression | requires scripts.invoke |
containd_schedule_reminder | schedule reminder | Creates a reminder and returns reminderId (string). Store it to update or delete later. |
containd_list_item_reminders | list item reminders | List of reminderId strings for the current item. |
containd_list_item_reminders_on_item | list item reminders on item | List of reminderId strings for that item. Returns [] when none. Requires notifications.read. |
containd_get_reminder | get reminder | Loads ReminderView for an id. Plug into “reminder … property” to read title, wasFired, etc. |
containd_reminder_property | reminder property | Read one field from a ReminderView (from “get reminder”). |
containd_update_reminder | update reminder | Change an existing reminder. “unchanged” leaves that field alone (no value plug). |
containd_cancel_reminder | cancel reminder | Cancels the OS notification and deletes the reminder by reminderId. |
containd_start_countdown_timer | start countdown timer | Starts a countdown on an item. |
containd_start_stopwatch | start stopwatch | Starts a stopwatch on an item (counts up). |
containd_get_timer | get timer | Loads one timer’s live state (TimerView object). |
containd_list_item_timers | list item timers | All timers on the item running this script. |
containd_list_item_timers_on_item | list item timers on item | All timers on another item. |
containd_item_has_timer | item has timer | Quick check for timers on the item running this script. |
containd_item_has_timer_on_item | item has timer on item | Same as “this item has timer”, for another item. |
containd_timer_property | timer property | Read one field from a TimerView (from get timer or list/for-each). |
containd_get_reminder_id_for_timer | get reminder id for timer | Looks up the OS reminder linked when the countdown was started with create reminder = true. |
containd_get_timer_id_for_reminder | get timer id for reminder | Reverse link: which timer created this reminder (if any). |
containd_pause_timer | pause timer | Pauses a running countdown or stopwatch (chip/modal stay; time freezes). |
containd_resume_timer | resume timer | Continues a paused countdown or stopwatch. |
containd_stop_timer | stop timer | Stops and deletes the timer (UI closes). Also cancels a linked reminder if create reminder was used. |
containd_lap_stopwatch | lap stopwatch | Records a lap on a running stopwatch (no-op / error on countdowns). |
containd_request_display_refresh | request display refresh | callHost(requestDisplayRefresh) |
containd_log_script | log script | callHost(logScript) |