Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip

Manage macros using gRPC API methods

Macros configuration is described in the 매크로 구성은 LogicService.proto file파일에 설명되어 있습니다.

Each macro consists of각 매크로는 다음으로 구성됩니다:

  • guid − an id;
  • namea name;이름
  • modeoperation mode;작동 모드
  • conditionslaunch conditions;실행 조건
  • rulesrules.

Operation modes

  • 규칙

작동 모드

 mode는 일반 정보를 포함합니다 mode contains the general information:

  • enabled or 또는 disabled − whether the macro is enabled or disabled;매크로가 활성화되었는지 비활성화되었는지 여부
  • user_role − a role for which the macro will be available in the layout menu;  매크로가 레이아웃 메뉴에서 사용할 수 있는 역할
  • is_add_to_menu − add macros to the layout menu; 매크로를 레이아웃 메뉴에 추가 여부
  • time_zone − time zone id, if the macro should be launched on time 매크로가 시간에 따라 실행되어야 하는 경우의 시간대 ID

    Code Block
    "time_zone": {
                        "timezone_id": "6fb68cf4-ca6a-46a1-b2e3-ab4cfdaa0444"
                    }

     

  • autorule

    Info
    titleNote

    Contains the general information for launching the automatic rules:자동 규칙 실행을 위한 일반 정보를 포함합니다.

    • zone_ap − a camera under which the rule is created; 규칙이 생성된 카메라
    • only_if_armed − operate only in armed mode; 무장 모드에서만 작동
    • timezone_id −  id of the time zone.시간대의 ID
    Code Block
    "autorule": {
                        "zone_ap": "hosts/Server1/DeviceIpint.30/SourceEndpoint.video:0:0",
                        "only_if_armed": false,
                        "timezone_id": "00000000-0000-0000-0000-000000000000"
                    }



  • continuous

    Info
    titleNote

    Contains the general information for launching the continuous macros:

    • server − a Server;
    • timezone_id − id of the time zone;
    • heartbeat_ms − launch cycle in millisecond;
    • random − random launch of a macro.
    Code Block
     "continuous": {
                        "server": "Server1",
                        "timezone_id": "00000000-0000-0000-0000-000000000000",
                        "heartbeat_ms": 3600000,
                        "random": true
                    }



...