Go to documentation repository
When getting such commands, standard events and reactions will be generated in Axxon PSIM. They can be used in scripts and macros (see Creating and using macros and The Script object. Programming using the JScript language).
Note.
Create and configure the Web server object in order to use these requests – see Creating the Web-server object. In the requests, it is necessary to specify the port set up in the Web server settings.
GET http://IP-address:port/psim_core/React?command="{react}"
GET http://IP-address:port/psim_core/Event?command="{event}"
or (with the same result)
POST http://IP-address:port/psim_core/React HTTP/1.1
{ "command" : "{react}" }
POST http://IP-address:port/psim_core/Event HTTP/1.1
{ "command" : "{event}" }
Parameter | Required | Description |
---|---|---|
command | Yes | React – a reaction in the Axxon PSIM format Event – an event in the Axxon PSIM format |
Add captions to video from camera 2 via HTTP request:
GET http://127.0.0.1:80/psim_core/React?command="CAM|2|ADD_SUBTITLES|command<Some text\n!>"
Generate alarm on camera 2 via HTTP request:
GET http://127.0.0.1:80/psim_core/Event?command="CAM|2|MD_START"
OR (with the same result)
POST http://127.0.0.1:80/psim_core/Event HTTP/1.1 { "command" : "CAM|2|MD_START" }
Run Macro 1 via HTTP request:
GET http://127.0.0.1:80/psim_core/React?command="MACRO|1|RUN"
Start recording on Camera 1:
POST http://127.0.0.1:80/psim_core/React HTTP/1.1 { "command" : "CAM|1|REC" }