|
|
 |
| |
| How to send out a HTTP request
from PIXORD server ? |
|
Understanding the HTTP Request
- A simple example of HTTP request,
- It is equivalent to the following command.
GET /index.htm HTTP/1.1
Host: 192.168.0.169
Connection: Keep-Alive
The PTZ CGI command
The PIXORD NVS provide the following CGI functions to perform the PTZ serial communication.
- Set PTZ model,
/cgi/setvideo?save=&VideoID=&ptz_model=&retpage=
example, http://61.220.235.172/cgi/setvideo?save=1&VideoID=1&ptz_model=1
- Send PTZ command,
/cgi/ptz?camid=&cmd=
example, http://211.20.85.205/cgi/ptz?camid=1&cmd=v1_PR_03
- Send Preset Command,
/cgi/preset?camid=&set_presetname=&retpage=
example, http://211.20.85.205/cgi/preset?camid=1&set_presetname=door
Example of PTZ control
Event Script for sending PTZ control CGI of PIXORD 261.
* * * * * RUN:
motion_init
-cam 1
-sensitivity 5;
motion_start
-cam 1;
%
* * * * * M1:
alert
-host 192.168.0.125
-port 80
-message "GET /cgi/ptz?camid=1&cmd=v1_goPreset_01 HTTP/1.0\r\n";
%
Example of Sending HTTP Request
Event Script for sending HTTP request by motion detection trigger.
# Motion Detect on channel 1
* * * * * RUN:
motion_init
-cam 1
-sensitivity 5;
motion_start
-cam 1;
%
* * * * * M1:
alert
-host 192.168.0.120
-port 80
-message "GET /play?oh.mp3 HTTP/1.1 \r\nHost: 192.168.0.120 \r\nConnection: Closed \r\n";
relay -toggle;
%
|
|
 |
|
|