When getting such commands, standard events and reactions will be generated in Intellect Axxon PSIM – they can be used in scripts and macros (see Creating and using macros section of Administrator’s Guide as well as Programming Guide (JScript)).
| Info |
|---|
|
Create and configure the Web server object in order to use these requests – see Creating the Web-server object. |
GET http://IP-address:port/intellectAxxon PSIM_core/React?command="{react}"
GET http://IP-address:port/intellectAxxon PSIM_core/Event?command="{event}"
or (with the same result)
POST http://IP-address:port/intellectAxxon PSIM_core/React HTTP/1.1
| Code Block |
|---|
|
{
"command" : "{react}"
} |
POST http://IP-address:port/intellectAxxon PSIM_core/Event HTTP/1.1
| Code Block |
|---|
|
{
"command" : "{event}"
} |
Request parameters:
| Parameter | Is required | Description |
|---|
| command | Yes | React – a reaction in the Intellect Axxon PSIM format
Event – an event in the Intellect Axxon PSIM format |
Request example:
Add captions to video from camera 2 via HTTP request:
| Code Block |
|---|
|
GET http://127.0.0.1:80/intellectAxxon PSIM_core/React?command="CAM|2|ADD_SUBTITLES|command<Some text\n!>" |
...
| Code Block |
|---|
|
GET http://127.0.0.1:80/intellectAxxon PSIM_core/Event?command="CAM|2|MD_START" |
...
| Code Block |
|---|
|
POST http://127.0.0.1:80/intellectAxxon PSIM_core/Event HTTP/1.1
{
"command" : "CAM|2|MD_START"
} |
...
| Code Block |
|---|
|
GET http://127.0.0.1:80/intellectAxxon PSIM_core/React?command="MACRO|1|RUN" |
...
| Code Block |
|---|
|
POST http://127.0.0.1:80/intellectAxxon PSIM_core/React HTTP/1.1
{
"command" : "CAM|1|REC"
} |