Go to documentation repository
Page History
...
Note | ||
---|---|---|
| ||
Requests for creating and changing a macro should contain its entire structure. |
Creating:
Code Block |
---|
{ "method": "axxonsoft.bl.logic.LogicService.ChangeMacros", "data": { "added_macros": :{ "guid": "9cd9be6c3303abb2-99e7181e-47a24183-9e2f8987-03463d30a99f8a06c309a741", "name": "sikeTEST_MACRO", "mode": { "enabled": true, "user_role": "", "is_add_to_menu": falsetrue, "continuouscommon": {} }, "conditions": {}, "rules0": {} } } } |
Changing:
Code Block |
---|
{ "methodpath":"axxonsoft.bl.logic.LogicService.ChangeMacros "/C:0", "archive_write": { "camera": "hosts/SERVER1/DeviceIpint.1/SourceEndpoint.video:0:0", "state": "ON" } }, "1": { "path": "/C:0", "archive_write": { "camera": "hosts/SERVER1/DeviceIpint.1/SourceEndpoint.video:0:0", "state": "ON" } } }, "rules": { "0": { "path": "/E:0", "action": { "timeout_ms": 60000, "cancel_conditions": {}, "action": { "raise_alert": { "zone": "", "archive": "", "offset_ms": 0, "mode": "RAM_AlwaysIfNoActiveAlert" } } } }, "1": { "path": "/E:0", "action": { "timeout_ms": 60000, "cancel_conditions": {}, "action": { "raise_alert": { "zone": "", "archive": "", "offset_ms": 0, "mode": "RAM_AlwaysIfNoActiveAlert" } } } } } } } } |
Changing (removing conditions and rules):
Code Block |
---|
{ "method": "axxonsoft.bl.logic.LogicService.ChangeMacros", "data": { "data":{ "modified_macros" : "modified_macros": { "guid": "9cd9be6c3303abb2-99e7181e-47a24183-9e2f8987-03463d30a99f8a06c309a741", "namemode": "sike2",{ "common": {} "mode": { }, "enabledconditions": true,{ "user_role0": "", {} }, "is_add_to_menu": false, "continuousrules": {} }, "conditions1": {}, "rules": {} } } } |
Removing:
Code Block |
---|
{ "method":"axxonsoft.bl.logic.LogicService.ChangeMacros", "data":{ "removed_macros" : ["cfd41b183303abb2-c983181e-4a484183-aaa18987-ca7e666e6e498a06c309a741"] } } |
Launch a macro
Code Block |
---|
{ "method":"axxonsoft.bl.logic.LogicService.LaunchMacro", "data":{ "macro_id" : "caef76f0-37e9-43b0-aba6-c2a2f32ccd2f" } } |
...
Overview
Content Tools