Documentation for Intellect 4.9.8. Documentation for other versions of Intellect is available too.

Skip to end of metadata
Go to start of metadata
In the section:
 

Macros  - predefined sequence of responses to certain events. Macros are created on the server and have IDs and names. They are similar to actions with objects, but are not attached to the object.

Getting the list of macros

GET

http://example.com:[port][/somecontext]/secure/actions/

Sample of response:

<actions>
    <action>
        <description>Start recording by all cameras</description>
        <id>macro2</id>
    </action>
    <action>
        <description>Disarm all zones</description>
        <id>1</id>
    </action>
</actions>

 

Getting parameters of macros

Object has no extra parameters. The list of macros is sufficient.

GET

http://example.com:[port][/somecontext]/secure/actions/macro2/ - getting parameters of macro with macro2 id.

Sample of response:

<action>
    <description>Start recording by all cameras</description>
    <id>macro2</id>
</action>

Macros execution on server request

PUT 

http://example.com:[port][/somecontext]/secure/actions/macro2/execute – request to execute macro with id macro2 on the server.

  • No labels