Motion
Get Motion

ReferenceScripting APIMotionEvent

MotionEvent

interface

One of the calendar's events: its title, start and end (ms since 1970, local time), and whether it lasts all day.

NameMotionEvent
Kindinterface
Script reaches it asMotionScene.calendar · MotionEvents.calendar
Since0.3

Syntax

interface MotionEvent { … }

Properties

NameTypeDescription
titlepropertyreadonly stringWhat the calendar calls it.
startpropertyreadonly numberWhen it starts, in milliseconds since 1970 (as Date.now()).
endpropertyreadonly numberWhen it ends, in milliseconds since 1970.
allDaypropertyreadonly booleanWhether it lasts all day, with no time of its own.