Documentation for Axxon PSIM 2.0. Documentation for other versions of Axxon PSIM is available too.

Previous page Next page


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

When you get such commands, standard events and reactions are generated in Axxon PSIM. You can use them in scripts and macros (see Creating and using macros and The Script object. Programming using the JScript language).

General request format:

Note

Create and configure the Web server object to use these requests, see Creating the Web-server object. In the requests, you must specify the port number specified in the Web server settings.

GET http://login:password@IP address:port/psim_core/React?command="{react}"
GET http://login:password@IP address:port/psim_core/Event?command="{event}"

or (in the same way)

POST http://login:password@IP address:port/psim_core/React HTTP

{
	"command" : "{react}"
}

POST http://login:password@IP address:port/psim_core/Event HTTP

{
	"command" : "{event}"
}

Request parameters:

ParameterRequiredDescription
commandYes

Reacta reaction in the Axxon PSIM format

Event—an event in the Axxon PSIM format

Examples of requests:

Add captions to the video from camera 2 using the HTTP request:

GET http://1:1@127.0.0.1:80/psim_core/React?command="CAM|2|ADD_SUBTITLES|command<Some text\n!>"

Generate an alarm on camera 2 using the HTTP request:

GET http://1:1@127.0.0.1:80/psim_core/Event?command="CAM|2|MD_START"

OR (in the same way)

POST http://1:1@127.0.0.1:80/psim_core/Event HTTP
{
"command" : "CAM|2|MD_START"
}

Run Macro 1 using the HTTP request:

GET http://1:1@127.0.0.1:80/psim_core/React?command="MACRO|1|RUN"

Start recording on Camera 1:

POST http://1:1@127.0.0.1:80/psim_core/React HTTP
{
"command" : "CAM|1|REC"
}

Request for grabber configuration with id=6 using the HTTP request via the Web server:

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:

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:

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: 

GET http://1:1@127.0.0.1:8085/web2/secure/video/intellect_core/React?command=CORE||GET_QUEUE_INFO

  • No labels