You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am on vacation, if my bedroom door opens, I want to receive a
picture of whatever happened in my bedroom.
Can be expressed as
I need:
- a `door opening detector` with property `door is opened`;
- a `camera` with property `image`;
- a `communication channel to user` to `send text message` and `send image`.
1. When `door is opened` of `door opening detector` switches to true
do `send text message` with `communication channel with user`:
"Someone entered your bedroom"
do `send image` with `communication channel with user`:
`image` of `camera`.
Input devices
door opening detector, with property door is opened;
camera, with property image
The camera is a weird case, since property image can typically weigh several Mb.
Output devices
communication channel with user with capability send image
Values
The image is most likely a blob (binary data + mime type). The
rules engine doesn't know what to do with it.
Regardless of how many times we access the value image of camera
during the evaluation of the trigger, this value is cached.
Behind-the-scenes, requesting the image of camera is async. The
interpreter hides this from the user.
Meta-bug: #2
Can be expressed as
Input devices
door opening detector
, with propertydoor is opened
;camera
, with propertyimage
The camera is a weird case, since property
image
can typically weigh several Mb.Output devices
communication channel with user
with capabilitysend image
Values
image
is most likely a blob (binary data + mime type). Therules engine doesn't know what to do with it.
image
ofcamera
during the evaluation of the trigger, this value is cached.
image
ofcamera
is async. Theinterpreter hides this from the user.
Blocked by
The text was updated successfully, but these errors were encountered: