Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Story: Home Security #16

Open
1 task
Yoric opened this issue Feb 12, 2016 · 0 comments
Open
1 task

Story: Home Security #16

Yoric opened this issue Feb 12, 2016 · 0 comments

Comments

@Yoric
Copy link
Collaborator

Yoric commented Feb 12, 2016

Meta-bug: #2

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.

Blocked by

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant