When getting you get such commands, standard events and reactions will be are generated in Intellect – they can be used Axxon PSIM. You can use them in scripts and macros (see see Creating and using macros section of Administrator’s Guide as well as Programming Guide (JScript) and The Script object. Programming using the JScript language).
General request format:
| Info |
|---|
|
Create and configure the Web server object in order to use these requests – see , see Creating the Web-server object. In the requests, you must specify the port number specified in the Web server settings. |
GET http://IP-login:password@IP address:port/intellectpsim_core/React?command="{react}"
GET http://IP-login:password@IP address:port/intellectpsim_core/Event?command="{event}"
or
or (with in the same resultway)
POST http://IP-login:password@IP address:port/intellectpsim_core/React HTTP/1.1
| Code Block |
|---|
|
{
"command" : "{react}"
} |
POST http://IP-login:password@IP address:port/intellectpsim_core/Event HTTP/1.1
| Code Block |
|---|
|
{
"command" : "{event}"
} |
Request parameters:
| Parameter | Is requiredRequired | Description |
|---|
| command | Yes | React – React—a reaction in the Intellect the Axxon PSIM format
Event – an Event—an event in the Intellect Axxon PSIM format |
...
Examples of requests:
Add captions to the video from camera 2 via using the HTTP request:
| Code Block |
|---|
|
GET http://1271:1@127.0.0.1:80/intellectpsim_core/React?command="CAM|2|ADD_SUBTITLES|command<Some text\n!>" |
Generate an alarm on camera 2 via using the HTTP request:
| Code Block |
|---|
|
GET http://1271:1@127.0.0.1:80/intellectpsim_core/Event?command="CAM|2|MD_START" |
OR (with in the same resultway)
| Code Block |
|---|
|
POST http://1271:1@127.0.0.1:80/intellectpsim_core/Event HTTP/1.1
{
"command" : "CAM|2|MD_START"
} |
Run Macro 1 via using the HTTP request:
| Code Block |
|---|
|
GET http://1271:1@127.0.0.1:80/intellectpsim_core/React?command="MACRO|1|RUN" |
...
| Code Block |
|---|
|
POST http://1271:1@127.0.0.1:80/intellectpsim_core/React HTTP/1.1
{
"command" : "CAM|1|REC"
} |
Request for grabber configuration with id=6 using the HTTP request via the Web server:
| Code Block |
|---|
GET http://1:1@127.0.0.1:80/psim_core/React?command="CORE||GET_CONFIG|objtype<GRABBER>,objid<6>" |
Request for grabber configuration with id=6 using the HTTP request via the Web server 2.0:
| Code Block |
|---|
GET http://1:1@127.0.0.1:8085/web2/secure/video/psim_core/React?command=CORE||GET_CONFIG|objtype<GRABBER>,objid<6> |
Request for the information about kernel queues using the HTTP request via the Web server:
| Code Block |
|---|
GET http://1:1@127.0.0.1:80/psim_core/React?command="CORE||GET_QUEUE_INFO" |
Request for the information about kernel queues using the HTTP request via the Web server 2.0:
| Code Block |
|---|
GET http://1:1@127.0.0.1:8085/web2/secure/video/psim_core/React?command=CORE||GET_QUEUE_INFO |