Go to documentation repository
Page History
...
| Section | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| Tip |
|---|
...
Utwórz/Usuń/Zmień makro
| Note | ||
|---|---|---|
| ||
Żądania tworzenia oraz zmiany makr powinny zawierać całą ich strukturę. |
CreatingTworzenie:
| Code Block |
|---|
{
"method": "axxonsoft.bl.logic.LogicService.ChangeMacros",
"data": {
"added_macros": {
"guid": "3303abb2-181e-4183-8987-8a06c309a741",
"name": "TEST_MACRO",
"mode": {
"enabled": true,
"user_role": "",
"is_add_to_menu": true,
"common": {}
},
"conditions": {
"0": {
"path": "/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"
}
}
}
}
}
}
}
} |
Zmiana (usunięcie warunków i zasad):
| Info | ||
|---|---|---|
| ||
Pozostaw puste nawiasy { } w grupach conditions oraz rules. |
...
| Expand | |||||||
|---|---|---|---|---|---|---|---|
|
...
Overview
Content Tools