Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width50%
Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
titleIn the section:
borderStylesolid
Table of Contents
Column
 

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]/web2/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]/web2/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]/web2/secure/actions/macro2/execute – request to execute macro with id macro2 on the server.